By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,551 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,551 IT Pros & Developers. It's quick & easy.

Mod_python psp import module problem

P: n/a
Hi folks...

I'm getting a weird problem while loading psp module from mod_python.
It only happen somethimes, and I just can't figure out why.
I saw other threads in other lists over the net, but none of them
solved the problem.
My last hope is this last thread before been forced to change my
project language.

This is the output that I got:


Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

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

File "/usr/lib/python2.4/site-packages/mod_python/", line
136, in handler
result = util.apply_fs_data(object, req.form, req=req)

File "/usr/lib/python2.4/site-packages/mod_python/", line 361,
in apply_fs_data
return object(**args)

File "/var/www/quiron/core/", line 37, in
login = mod_python.psp.PSP (req, raiz+'FormCadastraUsuario.psp')

AttributeError: 'module' object has no attribute 'psp'


Does anybody here can give some hope about this matter??

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
May be related to this bug:

Where you have:

import mod_python.psp

change it to:

psp = apache.import_module("mod_python.psp")

Access the PSP object then as:


and not:


It will happen where somewhere else within the same document tree
there is a PythonHandler specified as mod_python.psp as well as
the explicit import of mod_python.psp. Depending on which ones gets
triggered first, it will screw up.


Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.