Forums

ImportError at / No module named signed_cookies

Hello,

I am having trouble getting an existing webapp started on pythonanywhere. First, I was getting the No module named RequireDebugFalse error, but I just changed my settings to match the one that you guys are set up for, as suggested at https://www.pythonanywhere.com/forums/topic/135/ but now I get this error when I try to access the site ImportError at / No module named signed_cookies. Has anyone seen this before?

That's strange. Could you post the traceback here, please?

ImportError at /

No module named signed_cookies

Request Method: GET Request URL: http://samson91787.pythonanywhere.com/ Django Version: 1.3.4 Exception Type: ImportError Exception Value:

No module named signed_cookies

Exception Location: /usr/local/lib/python2.7/site-packages/django/utils/importlib.py in import_module, line 35 Python Executable: /usr/local/bin/uwsgi Python Version: 2.7.3 Python Path:

['/var/www', '.', '', '/usr/local/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg',

'/usr/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg',

'/usr/local/lib/python2.7/site-packages/pyzmq-2.2.0-py2.7-linux-x86_64.egg',

'/usr/local/lib/python2.7/site-packages/pyhdf-0.8.3-py2.7-linux-x86_64.egg',

'/usr/local/lib/python2.7/site-packages/texcaller-0-py2.7-linux-x86_64.egg',

'/usr/local/lib/python2.7/site-packages/openopt-0.42-py2.7.egg',

'/usr/local/lib/python2.7/site-packages/setproctitle-1.1.6-py2.7-linux-x86_64.egg',

'/usr/local/lib/python2.7/site-packages/uWSGI-1.4.2-py2.7.egg',

'/usr/local/lib/python27.zip',

'/usr/local/lib/python2.7',

'/usr/local/lib/python2.7/plat-linux2',

'/usr/local/lib/python2.7/lib-tk',

'/usr/local/lib/python2.7/lib-old',

'/usr/local/lib/python2.7/lib-dynload',

'/usr/local/lib/python2.7/site-packages',

'/usr/local/lib/python2.7/site-packages/Orange/orng',

'/usr/local/lib/python2.7/site-packages/PIL',

u'/home/samson91787/Dropbox/service/project']

Server time: Wed, 12 Dec 2012 08:49:08 -0600

And I have SESSION_ENGINE='django.contrib.sessions.backends.signed_cookies' in my settings

You're using Django 1.3 with a settings.py that's meant for Django 1.4. Have a look at this forum thread for instructions on how to use Django 1.4 on PythonAnywhere.

When I try to do that I get this error: -bash: virtualenvwrapper.sh: No such file or directory

Nvm up and running thanks for the help