ImportError: cannot import name BaseUserProfile
When running this from the cached application image, a Python stacktrace is thrown, yet the application continues to work:
Traceback (most recent call last):
File "/opt/services/ecobasa/src/cosinnus/cosinnus/models/profile.py", line 199, in <module>
post_save.connect(create_user_profile, sender=get_user_model(),
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 127, in get_user_model
user_model = get_model(app_label, model_name)
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 230, in get_model
self._populate()
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 75, in _populate
self.load_app(app_name)
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 96, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/services/ecobasa/ecobasa/models/__init__.py", line 6, in <module>
from .profile import * # noqa
File "/opt/services/ecobasa/ecobasa/models/profile.py", line 16, in <module>
from cosinnus.models import (
ImportError: cannot import name BaseUserProfile
This might be an upstream issue with the dependencies of the Ecobasa.org project itself, and related to #4 (closed).