Closed: (MODPYTHON-82) mod_python.publisher cache will not
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Closed: (MODPYTHON-82) mod_python.publisher cache will not




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Closed: (MODPYTHON-82) mod_python.publisher cache will not  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-06 07:45 AM

[ http://issues.apache.org/jira/brows...HON-82?page=all ]

Graham Dumpleton closed MODPYTHON-82:
-------------------------------------


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

>
> The mod_python.cache module will not work if threads are not built into Py
thon.
> Mod_python error: "PythonHandler mod_python.publisher"
> Traceback (most recent call last):
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/apach
e.py", line 287, in HandlerDispatch
>     log=debug)
>   File "/home/grahamd/testing/lib/python2.3/site-packages/mod_python/apach
e.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/publi
sher.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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:41 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register