Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1009101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:52:26+00:00 2026-05-16T08:52:26+00:00

Can someone please tell what this strange error is Mod_python error: PythonHandler django.core.handlers.modpython Traceback

  • 0

Can someone please tell what this strange error is

 Mod_python error: "PythonHandler django.core.handlers.modpython"

 Traceback (most recent call last):

 File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
log=debug)

 File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module
  module = imp.load_module(mname, f, p, d)

 File "/project/django/django/core/handlers/modpython.py", line 4, in ?
  from django import http

File "/project/django/django/http/__init__.py", line 3, in ?
 from Cookie import SimpleCookie, CookieError

 ImportError: No module named Cookie


 Edit:
  Python   
 Python 2.4.3 (#1, Jan 14 2008, 18:32:40) 
 [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from Cookie import SimpleCookie, CookieError
  >>> from http.Cookie import SimpleCookie, CookieError
  Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  ImportError: No module named http.Cookie
 >>> import Cookie
 >>> import http.Cookie
 Traceback (most recent call last):
  File "<stdin>", line 1, in ?
 ImportError: No module named http.Cookie
 >>> import http.Cookie
  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:52:27+00:00Added an answer on May 16, 2026 at 8:52 am

    That you’re missing the Cookie package (which is not part of Django), but it should be Builtin.

    If you’re using Python 3 please note that Cookie has been renamed to http.cookies, and that Django is incompatible with Python not 2.x.

    That is what you’re missing: http://docs.python.org/library/cookie.html.

    Edit

    I see you’re running python 2.4. Consider switch to python 2.6 or 2.7, and check the presence of /usr/lib/python2.4/Cookie.py

    Solution

    The path was missing, so adding

    sys.path.append('/usr/lib/python2.4/')
    

    solves the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please tell me where is the error in this code?, I use
Hi can someone please tell me what wrong with this line (getting an error...)
Can someone please tell me what this means: 07-04 09:54:38.048: I/DetailActivity(15496): Title that is
Can someone please tell me why this doesn't work? I'm trying to show and
Can someone please tell me whats wrong with this code. I'm not getting complete
Can someone please tell me what's wrong with this sp. The logic seems to
I can't seem to get this text to align vertically. Can someone please tell
Can someone please tell me why I'm getting the error object reference is required
Can someone please tell me why this won't work? NSAppleScript* playPause = [[NSAppleScript alloc]
Hi can someone please tell me why this code is incorrect? I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.