quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Lehuen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (MODPYTHON-82) mod_python.publisher cache will not work if threading not built into Python
Date Sat, 15 Oct 2005 08:03:44 GMT
     [ http://issues.apache.org/jira/browse/MODPYTHON-82?page=all ]
     
Nicolas Lehuen resolved MODPYTHON-82:
-------------------------------------

    Fix Version: 3.2.0
     Resolution: Fixed
      Assign To: Nicolas Lehuen

Ooops, my bad, sorry !

This is fixed now.

> mod_python.publisher cache will not work if threading not built into Python
> ---------------------------------------------------------------------------
>
>          Key: MODPYTHON-82
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-82
>      Project: mod_python
>         Type: Bug
>   Components: publisher
>     Versions: 3.2.0
>  Environment: Python --without-threads
>     Reporter: Graham Dumpleton
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0

>
> The mod_python.cache module will not work if threads are not built into Python.
> Mod_python error: "PythonHandler mod_python.publisher"
> Traceback (most recent call last):
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
>     log=debug)
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/apache.py", line
461, in import_module
>     module = imp.load_module(mname, f, p, d)
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/publisher.py", line
50, in ?
>     from cache import ModuleCache, NOT_INITIALIZED
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/cache.py", line
23, in ?
>     from threading import Lock
>   File "/home/grahamd/testing/lib/python2.3/threading.py", line 6, in ?
>     import thread
> ImportError: No module named thread
> Instead of the code:
> from threading import Lock
> It should use:
> try:
>   from threading import Lock
> except:
>   class Lock:
>     def acquire(self): pass
>     def release(self): pass

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


Mime
View raw message