cannot import name SimpleCookie on new Django install

650 views
Skip to first unread message

Wayne Collier

unread,
Oct 17, 2008, 11:51:29 AM10/17/08
to django...@googlegroups.com
Hello.I am new to Django and I am having some trouble installing it. I
running Python 2.5 and mod_python on Apache with RH linux. I installed
Django-0.95. When I go to my mysite directory and run "python
manage.pyrunserver"command, I get the following result:

[root@mingus mysite]# python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/core/management.py",
line 1319, in execute_manager
execute_from_command_line(action_mapping, argv)
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/core/management.py",
line 1271, in execute_from_command_line
action_mapping[action](addr, port, options.use_reloader)
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/core/management.py",
line 1029, in runserver
from django.core.handlers.wsgi import WSGIHandler
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/core/handlers/wsgi.py",
line 1, in <module>
from django.core.handlers.base import BaseHandler
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/core/handlers/base.py",
line 3, in <module>
from django import http
File
"/usr/local/lib/python2.5/site-packages/Django-0.95.4-py2.5.egg/django/http/__init__.py",
line 2, in <module>
from Cookie import SimpleCookie
ImportError: cannot import name SimpleCookie


This also results when I Django-1.0. Any help would be greatly appreciated.

Wayne

Christian Joergensen

unread,
Oct 18, 2008, 3:28:42 AM10/18/08
to django...@googlegroups.com
Wayne Collier wrote:
> from Cookie import SimpleCookie
> ImportError: cannot import name SimpleCookie

It sounds like your python installation is broken. What about when you
fire up a plain python shell and type:

>>> from Cookie import SimpleCookie

Cookie is a bundled module in the standard library for python 2.5 (and 2.4)

Regards,

--
Christian Joergensen
http://www.technobabble.dk

Reply all
Reply to author
Forward
0 new messages