Guest User

Untitled

a guest
May 24th, 2015
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  1. Mod_python error: "PythonHandler mod_python.publisher"
  2.  
  3. Traceback (most recent call last):
  4.  
  5.   File "/usr/local/lib/python2.7/dist-packages/mod_python/apache.py", line 398, in HandlerDispatch
  6.     result = obj(req)
  7.  
  8.   File "/usr/local/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
  9.     module = page_cache[req]
  10.  
  11.   File "/usr/local/lib/python2.7/dist-packages/mod_python/cache.py", line 89, in __getitem__
  12.     return self._checkitem(name)[2]
  13.  
  14.   File "/usr/local/lib/python2.7/dist-packages/mod_python/cache.py", line 131, in _checkitem
  15.     value = self.build(key, name, opened, entry)
  16.  
  17.   File "/usr/local/lib/python2.7/dist-packages/mod_python/publisher.py", line 86, in build
  18.     return ModuleCache.build(self, key, req, opened, entry)
  19.  
  20.   File "/usr/local/lib/python2.7/dist-packages/mod_python/cache.py", line 380, in build
  21.     exec(opened_as_str, module.__dict__)
  22.  
  23.   File "<string>", line 7, in <module>
  24.  
  25.   File "/var/www/reshuege/module/mysql_session.py", line 41, in <module>
  26.     tempdir = tempfile.gettempdir()
  27.  
  28.   File "/usr/lib/python2.7/tempfile.py", line 261, in gettempdir
  29.     tempdir = _get_default_tempdir()
  30.  
  31.   File "/usr/lib/python2.7/tempfile.py", line 208, in _get_default_tempdir
  32.     ("No usable temporary directory found in %s" % dirlist))
  33.  
  34. IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Advertisement
Add Comment
Please, Sign In to add comment