
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Python --without-threads
|
|
| Resolution Date: |
15/Oct/05 05:03 PM
|
|
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
|
|
Description
|
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
|
Show » |
made changes - 15/Oct/05 05:03 PM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Assignee
|
|
Nicolas Lehuen
[ nlehuen
]
|
|
Fix Version/s
|
|
3.2.0
[ 11060
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
made changes - 05/Mar/06 02:31 PM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|