Issue Details (XML | Word | Printable)

Key: MODPYTHON-56
Type: Bug Bug
Status: Closed Closed
Resolution: Incomplete
Priority: Major Major
Assignee: Unassigned
Reporter: Humberto Diogenes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
mod_python

Error 404 importing module from the same folder

Created: 27/May/05 03:08 PM   Updated: 07/Mar/06 05:34 PM
Return to search
Component/s: importer
Affects Version/s: 3.1.3, 3.1.4
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Red Hat 9 + Apache 2.0.48
Debian Sarge + Apache 2.0.54

Resolution Date: 07/Mar/06 05:26 PM


 Description  « Hide
Using the Publisher handler, if I try to import a module from the same directory as the script, I _sometimes_ get an "Object Not Found - Error 404" message.

It was tricky the discover that the solution was just to append the directory to PythonPath because of two problems:

 1- Sometimes it just worked! You just reloaded the page and it opened. And then you reload it again and get a 404...
 2- ModPython didn't issue _any_ error or warning about this anywhere. It just logged the usual "(re)importing module...".

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicolas Lehuen made changes - 22/Oct/05 04:02 PM
Field Original Value New Value
Component/s importer [ 12310385 ]
Graham Dumpleton made changes - 07/Mar/06 05:26 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Incomplete [ 4 ]
Graham Dumpleton made changes - 07/Mar/06 05:34 PM
Status Resolved [ 5 ] Closed [ 6 ]