google app engine - nosetests 'cannot import name mkdir' -
im trying use nose (nosegae) test gae app fails import error. cant understand why because fails import python builtin stuff. im testing simple wsgi app 1 handler writes out 'hello world'.
does understand whats going on? im on mac osx snow leopard
this traceback:
traceback (most recent call last): file "/library/python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py", line 382, in loadtestsfromname addr.filename, addr.module) file "/library/python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/importer.py", line 39, in importfrompath return self.importfromdir(dir_path, fqname) file "/library/python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/importer.py", line 86, in importfromdir mod = load_module(part_fqname, fh, filename, desc) file "/users/pepe/dev/nosetests/tornado/testing.py", line 21, in <module> tornado.httpclient import asynchttpclient file "build/bdist.macosx-10.6-universal/egg/nosegae.py", line 204, in load_module return super(hookmixin, self).load_module(fullname) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1939, in load_module return self.findandloadmodule(submodule, fullname, search_path) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1841, in findandloadmodule description) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1792, in loadmodulerestricted description) file "/users/pepe/dev/nosetests/tornado/httpclient.py", line 28, in <module> import pycurl file "build/bdist.macosx-10.6-universal/egg/nosegae.py", line 204, in load_module return super(hookmixin, self).load_module(fullname) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1939, in load_module return self.findandloadmodule(submodule, fullname, search_path) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1841, in findandloadmodule description) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1785, in loadmodulerestricted return source_file.load_module(submodule_fullname) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/dist/py_zipimport.py", line 213, in load_module exec code in mod.__dict__ file "/library/python/2.6/site-packages/pycurl-7.19.0-py2.6-macosx-10.6-universal.egg/pycurl.py", line 7, in <module> __bootstrap__() file "/library/python/2.6/site-packages/pycurl-7.19.0-py2.6-macosx-10.6-universal.egg/pycurl.py", line 3, in __bootstrap__ import sys, pkg_resources, imp file "build/bdist.macosx-10.6-universal/egg/nosegae.py", line 204, in load_module return super(hookmixin, self).load_module(fullname) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1939, in load_module return self.findandloadmodule(submodule, fullname, search_path) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1841, in findandloadmodule description) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1289, in decorate return func(self, *args, **kwargs) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1785, in loadmodulerestricted return source_file.load_module(submodule_fullname) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/dist/py_zipimport.py", line 213, in load_module exec code in mod.__dict__ file "/library/python/2.6/site-packages/setuptools-0.6c12dev_r85381-py2.6.egg/pkg_resources.py", line 24, in <module> os import utime, rename, unlink, mkdir importerror: cannot import name mkdir
google app engine doesn't provide mkdir
, there's no writeable filesystem.
http://code.google.com/p/appengine-monkey/issues/detail?id=25 else same problem.
Comments
Post a Comment