Forums

ModuleNotFoundError: No module named 'allauth'

my error is below : i have installed allauth in virtual , i install allauth in my pc ubuntu ,then it can works ;but when i install allauth in Pythonanywhere , i can't workd !!!! which step i lost ????

: Error running WSGI application 2017-06-12 08:14:00,783: ModuleNotFoundError: No module named 'allauth' 2017-06-12 08:14:00,783: File "/var/www/ianchen0311_pythonanywhere_com_wsgi.py", line 12, in <module> 2017-06-12 08:14:00,783: application=get_wsgi_application() 2017-06-12 08:14:00,783: 2017-06-12 08:14:00,783: File "/usr/local/lib/python3.6/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application 2017-06-12 08:14:00,783: django.setup(set_prefix=False) 2017-06-12 08:14:00,783: 2017-06-12 08:14:00,784: File "/usr/local/lib/python3.6/dist-packages/django/init.py", line 27, in setup 2017-06-12 08:14:00,784: apps.populate(settings.INSTALLED_APPS) 2017-06-12 08:14:00,784: 2017-06-12 08:14:00,784: File "/usr/local/lib/python3.6/dist-packages/django/apps/registry.py", line 85, in populate 2017-06-12 08:14:00,784: app_config = AppConfig.create(entry) 2017-06-12 08:14:00,784: 2017-06-12 08:14:00,784: File "/usr/local/lib/python3.6/dist-packages/django/apps/config.py", line 94, in create 2017-06-12 08:14:00,784: module = import_module(entry) 2017-06-12 08:14:00,785: ********* 2017-06-12 08:14:00,785: If you're seeing an import error and don't know why, 2017-06-12 08:14:00,785: we have a dedicated help page to help you debug: 2017-06-12 08:14:00,785: https://help.pythonanywhere.com/pages/DebuggingImportEr

when i install allauth , i open admin , i can see all table in admin ; but I install in Pythonanywhere , it oops !! it can't work !!! help me ! i cannot look for where my error ~

hi there- a couple quick things to check:

  1. what version of python did you install your packages to? did you use pip3.6 install?
  2. are you using a virtualenv? if so did you set up your webapp to use your virtualenv?
  3. did you reload your webapp?
  4. is your webapp python version the correct python version?

4: i dont understand the mean : webapp python version the correct python version ? what mean is it ??? what shoul I do it ??

On the "Web" tab, you can specify which specific version of Python your web app uses -- 2.7, 3.3, 3.4, 3.5 or 3.6. The version you choose there needs to match the version of Python that you've installed the package for. For example, if you've installed allauth using

pip3.6 install --user allauth

...then you need to make sure your web app is using Python 3.6. On the other hand, if you installed allauth into a virtualenv by running

mkvirtualenv myenv --python=`which python3.5`
pip install allauth

...then you need to make sure your web app is using the virtualenv that you created (myenv, in this case) and that it's using the virtualenv's Python version (3.5 in this case).

i dont understand how to make sure your web app is using the virtualenv ~~~;

On the "Web" tab, there's a section called "Virtualenv". You need to specify your virtualenv there.

I got it !! thank you ~ it works ~~ I know how to setting ~~

Hey, I am getting the same error. Can you please explain how did you fix? Thanks in advance

Hey, can you please explain how did you fix? I am getting the same error even if it is installed in my virtual environment.

Is it installed in the environment specified for your web app?