3

Windows の GAE 開発サーバーでKamal Gill のフラスコアプリエンジン テンプレートを実行しようとしています。ページを取得しようとすると、このエラーが発生します。すでに Python と App Engine の両方を再インストールしようとしました。グーグルで同様の問題を見つけることができませんでした。私を助けてください、StackOverflow、あなたは私の唯一のチャンスです。

2012-06-18 19:36:29 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--admin_console_server=', '--port=8081', 'C:\\Users\\Roman Levin\\Documents\\webapps\\kamalgill-flask-appengine-template-c409e3c\\src']"
C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py:232: UserWarning: DocumentOperationResult._code is deprecated. Use OperationResult._code instead.
  'Use OperationResult.%s instead.' % (name, name))
C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py:232: UserWarning: DocumentOperationResult._CODES is deprecated. Use OperationResult._CODES instead.
  'Use OperationResult.%s instead.' % (name, name))
WARNING  2012-06-18 16:36:31,108 rdbms_mysqldb.py:74] The rdbms API is not available because the MySQLdb library could not be loaded.
WARNING  2012-06-18 16:36:31,325 datastore_file_stub.py:518] Could not read datastore data from c:\users\romanl~1\appdata\local\temp\dev_appserver.datastore
INFO     2012-06-18 16:36:31,421 dev_appserver_multiprocess.py:647] Running application dev~myflaskonappengineapp on port 8081: http://localhost:8081
INFO     2012-06-18 16:36:31,421 dev_appserver_multiprocess.py:649] Admin console is available at: http://localhost:8081/_ah/admin
ERROR    2012-06-18 16:39:41,960 wsgi.py:189] 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 187, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 225, in _LoadHandler
    handler = __import__(path[0])
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\application\__init__.py", line 11, in <module>
    import urls
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\application\urls.py", line 11, in <module>
    from application import views
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\application\views.py", line 20, in <module>
    from forms import ExampleForm
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\application\forms.py", line 11, in <module>
    from flaskext import wtf
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\flaskext\__init__.py", line 1, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1858, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1722, in FindAndLoadModule
    description)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 676, in Decorate
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 1665, in LoadModuleRestricted
    description)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\pkg_resources.py", line 2646, in <module>
    working_set = WorkingSet()
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\pkg_resources.py", line 397, in __init__
    self.add_entry(entry)
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\pkg_resources.py", line 412, in add_entry
    for dist in find_distributions(entry, True):
  File "C:\Users\Roman Levin\Documents\webapps\kamalgill-flask-appengine-template-c409e3c\src\pkg_resources.py", line 1694, in find_on_path
    for entry in os.listdir(path_item):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver_import_hook.py", line 620, in __call__
    raise OSError(errno.EACCES, 'path not accessible', path)
OSError: [Errno 13] path not accessible: 'c:\\python27\\dlls'
INFO     2012-06-18 16:39:42,016 dev_appserver.py:2904] "GET / HTTP/1.1" 500 -
4

3 に答える 3

2

私は Kamal Gill のリポジトリを使用したことはありませんが、通常はBlossom の Flask GAE スケルトンを使用します。使いやすいです。単純に、アプリ識別子を変更し、Google アプリ エンジンを gae フォルダーにポイントするだけで、基本的な設定は完了です。

于 2012-06-19T07:51:57.403 に答える
1

私が狂っていないのを見て良かった。約2週間前、まったく同じテンプレートを使用しようとすると、同じエラーが発生しました。結局、私はPythonを始めたばかりなので、実際には、事前に作成されたテンプレートを使用する代わりに、次のリソースを使用して自分でPythonをつなぎ合わせることに戻りました。たまたまこれをvirtualenv内で実行していますか?私はまだ正式な記事でこれをすべて持っていませんが、次のリソースを使用して、Flask、GAE、およびEclipse/PyDevをWindowsでうまく再生させることができました。

2.6の手順 http://forum.codecall.net/topic/60323-python-on-google-app-engine-creating-blog-engine/

GAEプロジェクトを2.6から2.7に移行する http://blog.notdot.net/2011/10/Migrating-to-Python-2-7-part-1-Threadsafe

于 2012-06-20T19:52:15.533 に答える
1

同じ問題がありました。64ビットのpythonを使用すると修正されました。

于 2012-07-30T05:39:15.683 に答える