Tags

Monday, March 2, 2009

[fixed] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging

Error message:
$ ./dev_appserver.py demos/guestbook/
INFO 2009-03-02 23:46:23,119 appengine_rpc.py] Server: appengine.google.com
INFO 2009-03-02 23:46:23,126 appcfg.py] Checking for updates to the SDK.
INFO 2009-03-02 23:46:23,353 appcfg.py] The SDK is up to date.
WARNING 2009-03-02 23:46:23,353 datastore_file_stub.py]
Could not read datastore data from /tmp/dev_appserver.datastore
WARNING 2009-03-02 23:46:23,354 datastore_file_stub.py]
Could not read datastore data from /tmp/dev_appserver.datastore.history
WARNING 2009-03-02 23:46:23,356 dev_appserver.py] Could not initialize
images API; you are likely missing the Python "PIL" module. ImportError:
No module named _imaging
Traceback (most recent call last):
File "./dev_appserver.py", line 60, in
run_file(__file__, globals())
File "./dev_appserver.py", line 57, in run_file
execfile(script_path, globals_)
File "/home/princess/google_appengine/google/appengine/tools/dev_appserver_main.py",
line 463, in
sys.exit(main(sys.argv))
File "/home/princess/google_appengine/google/appengine/tools/dev_appserver_main.py",
line 442, in main
static_caching=static_caching)
File "/home/princess/google_appengine/google/appengine/tools/dev_appserver.py", line 3168,
in CreateServer
return BaseHTTPServer.HTTPServer((serve_address, port), handler_class)
File "/usr/lib64/python2.5/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib64/python2.5/BaseHTTPServer.py", line 101, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib64/python2.5/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "", line 1, in bind
socket.error: (99, 'Cannot assign requested address')
Fix:
Gentoo:
 # emerge dev-python/imaging
Ubuntu:
 $ sudo apt-get install python-imaging

No comments: