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
Graham Dumpleton added a comment - 27/May/05 03:58 PM
Might be the same problem as MODPYTHON-9. More information
is required about the names of actual files and whether the same
named file is used in multiple directories. Specific instructions
on how to duplicate it, like as described for MODPYTHON-9 would
be required to investigate it further.

Graham Dumpleton added a comment - 07/Mar/06 05:26 PM
This problem may also be because of problems with PythonPath such as described in MODPYTHON-114. The lack of a way to reproduce the problem or a conclusive analysis makes it hard to know for sure which of the various known module importer problems it may be. Assume that it will be resolved by new importer when done.