awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.18k stars 1.04k forks source link

No module named 'email_auth' #771

Open zainulabideentt opened 4 years ago

zainulabideentt commented 4 years ago

Hi,

I have installed all the requirement files. But while running it is showing the following error

File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'email_auth'

haricot commented 4 years ago

Which version of shop did you install and how did you install it, with cookiecutter-django-shop ? if so which version?

moellering commented 4 years ago

If you have 'django-shop' installed via pip should be found.

You should have added 'shop' to your INSTALLED_APPS list in settings.py nevertheless (I'm not sure if its is required for email_auth to be found.)

haricot commented 4 years ago

email_auth is required in settings INSTALLED_APPS if we use AUTH_USER_MODEL = 'email_auth.User'. I advise you to read the documentation on this subject : django-shop-specific-settings https://docs.djangoproject.com/en/dev/topics/auth/customizing/#auth-custom-user

agn-7 commented 3 years ago

I have the same problem, isn't there any solution?

I've just cloned the project and installed the requirements.txt but this problem still exists.

agn-7 commented 3 years ago

I copied all of the tests contents into a backward path (django-shop) and then I started the project without the mentioned issue. However, another problem occurred as follow:

  File "/usr/local/lib/python3.6/dist-packages/djangocms_text_ckeditor/models.py", line 4, in <module>
    from django.utils.encoding import force_text, python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible'

Finally, I've found the solution and its cause which was related to the latest version of Django (3.1) via:

pip install djangocms-text-ckeditor==4.0.0