ImportError: No module named paste.request

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named paste.request

steve@stevehorn.cc
When trying to generate tiles (under WSGI), each request fails with an error 500:

127.0.0.1 - - [24/Nov/2013 08:51:46] "GET /1.0.0/zip4/4/0/7.png HTTP/1.1" 500 59
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/Library/Python/2.7/site-packages/TileCache-2.11-py2.7.egg/TileCache/Service.py", line 397, in wsgiApp
    return wsgiHandler(environ, start_response, theService)
  File "/Library/Python/2.7/site-packages/TileCache-2.11-py2.7.egg/TileCache/Service.py", line 286, in wsgiHandler
    from paste.request import parse_formvars
ImportError: No module named paste.request

I have installed Python Paste via easy_install and it still does not work. Can someone help me understand what is wrong?

FYI - This environment was working a couple months ago before upgrade to OSX Mavericks. Could that have anything to do with this issue?

Thanks for any help!
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named paste.request

manel.clos
Hi Steve,

Standard debug process. If you can't import paste, then check it is in any of the sys.path directories. Maybe it is installed in an older version (python 2.6).

>>> import paste
>>> paste
<module 'paste' from '/usr/lib/python2.7/dist-packages/paste/__init__.pyc'>
>>> import sys
>>> print sys.path
['', ... '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']

 
Manel Clos

-----Mensaje original-----
De: [hidden email] [mailto:[hidden email]] En nombre de [hidden email]
Enviado el: domingo, 24 de noviembre de 2013 15:02
Para: [hidden email]
Asunto: [Tilecache] ImportError: No module named paste.request

When trying to generate tiles (under WSGI), each request fails with an error
500:

127.0.0.1 - - [24/Nov/2013 08:51:46] "GET /1.0.0/zip4/4/0/7.png HTTP/1.1"
500 59
Traceback (most recent call last):
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py",
line 85, in run
    self.result = application(self.environ, self.start_response)
  File
"/Library/Python/2.7/site-packages/TileCache-2.11-py2.7.egg/TileCache/Service.py",
line 397, in wsgiApp
    return wsgiHandler(environ, start_response, theService)
  File
"/Library/Python/2.7/site-packages/TileCache-2.11-py2.7.egg/TileCache/Service.py",
line 286, in wsgiHandler
    from paste.request import parse_formvars
ImportError: No module named paste.request

I have installed Python Paste via easy_install and it still does not work.
Can someone help me understand what is wrong?

FYI - This environment was working a couple months ago before upgrade to OSX
Mavericks. Could that have anything to do with this issue?

Thanks for any help!



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ImportError-No-module-named-paste-request-tp5090872.html
Sent from the TileCache mailing list archive at Nabble.com.
_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache