You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Graham Dumpleton (JIRA)" <ji...@apache.org> on 2006/03/07 10:27:39 UTC

[jira] Resolved: (MODPYTHON-56) Error 404 importing module from the same folder

     [ http://issues.apache.org/jira/browse/MODPYTHON-56?page=all ]
     
Graham Dumpleton resolved MODPYTHON-56:
---------------------------------------

    Resolution: Incomplete

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.

> Error 404 importing module from the same folder
> -----------------------------------------------
>
>          Key: MODPYTHON-56
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-56
>      Project: mod_python
>         Type: Bug
>   Components: importer
>     Versions: 3.1.3, 3.1.4
>  Environment: Red Hat 9 + Apache 2.0.48
> Debian Sarge + Apache 2.0.54
>     Reporter: Humberto Diogenes

>
> 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...".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira