So I am trying to upgrade to OSQA SVN-411 (currently I have SVN-332.) I am getting the following error: Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/handlers/modpython.py", line 228, in handler
    return ModPythonHandler()(req)

File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/handlers/modpython.py", line 191, in __call__
    self.load_middleware()

File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/handlers/base.py", line 42, in load_middleware
    raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware forum.middleware.extended_user: "No module named mime.multipart"

I use Red Hat 4.1.2-46 and python 2.4.3 (the default with redhat I tried to install 2.6 but i'm having a hardtime getting modpyhton 2.6) Has anybody seen something simillar before? It puzzled be because the prior version of OSQA works on my machine.

asked 15 Jun '10, 10:07

segfault's gravatar image

segfault
2655913
accept rate: 50%

edited 15 Jun '10, 10:08


The email package was renamed from python 2.4 to 2.5. I encapsulated the imports in a try/except block, that should be enough to run in python 2.4. Update to trunk to get the fix, or apply this patch.

link

answered 15 Jun '10, 12:17

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

After I did that I got another bug, rather than trying to make the whole website backwards compatible with 2.4 i'll see if I can upgrade RedHat to python 2.6

(15 Jun '10, 16:20) segfault
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×113
×33

Asked: 15 Jun '10, 10:07

Seen: 580 times

Last updated: 15 Jun '10, 17:30

powered by OSQA