Forums

Cant upload my blog to pythonanywhere // Error cant find module tinymce

Hi guys,

i hope that anybody can help me. I have a problem with uploading my blog to pythonanywhere.

The Errorlog says:

> 2019-05-16 12:24:14,263: Error running WSGI application
2019-05-16 12:24:14,264: ImportError: No module named 'tinymce'
2019-05-16 12:24:14,264:   File "/var/www/urosdobricic_pythonanywhere_com_wsgi.py", line 15, in <module>
2019-05-16 12:24:14,264:     application = get_wsgi_application()
2019-05-16 12:24:14,264: 
2019-05-16 12:24:14,265:   File "/home/UrosDobricic/.virtualenvs/urosdobricic.pythonanywhere.com/lib/python3.5/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2019-05-16 12:24:14,265:     django.setup(set_prefix=False)
2019-05-16 12:24:14,265: 
2019-05-16 12:24:14,265:   File "/home/UrosDobricic/.virtualenvs/urosdobricic.pythonanywhere.com/lib/python3.5/site-packages/django/__init__.py", line 24, in setup
2019-05-16 12:24:14,265:     apps.populate(settings.INSTALLED_APPS)
2019-05-16 12:24:14,266: 
2019-05-16 12:24:14,266:   File "/home/UrosDobricic/.virtualenvs/urosdobricic.pythonanywhere.com/lib/python3.5/site-packages/django/apps/registry.py", line 91, in populate
2019-05-16 12:24:14,266:     app_config = AppConfig.create(entry)
2019-05-16 12:24:14,266: 
2019-05-16 12:24:14,266:   File "/home/UrosDobricic/.virtualenvs/urosdobricic.pythonanywhere.com/lib/python3.5/site-packages/django/apps/config.py", line 90, in create
2019-05-16 12:24:14,266:     module = import_module(entry)

I have installed Tinymce with pip3 install django-tinymce --user, like i did on my localhost. CanĀ“t figure out what is happening.

If i go to the .virtualenvs and try to install it then it says:

10:50 ~/.virtualenvs $ pip3 install django-tinymce --user
Looking in links: /usr/share/pip-wheels
Requirement already satisfied: django-tinymce in /home/UrosDobricic/.local/lib/python3.7/site-packages (2.8.0)

So everything is installed fine.

cding into the ~/.virtualenvs directory does nothing about where the package is installed. Use the link on the web app page to open a console with the virtualenv activated and don't use the "--user" parameter when you install it.