2

フラスコを実行するために2日以来試みていますが、すべてのテンプレートで同じエラーメッセージが表示されます

Windows7 64ビットを使用しています

https://github.com/kamalgill/flask-appengine-template/

OOSError: [Errno 13] パスにアクセスできません: 'c:\python27\dlls'

pkq_resources から、関数: find_on_path

おそらくWindowsのことだと思ったので、GAEアプリにデプロイしたところうまくいきました。

http://kanta3d.appspot.com

しかし、私は毎回それを展開したくありません.これはワークフローを殺します.

このエラーをグーグルで検索しましたが、修正が見つかりませんでした。

私はいくつかの調査を行いましたが、pkq_resources のこの関数はエラーをスローします

for entry in os.listdir(path_item): # this throws the error

.

def find_on_path(importer, path_item, only=False):
    """Yield distributions accessible on a sys.path directory"""
    path_item = _normalize_cached(path_item)

    if os.path.isdir(path_item) and os.access(path_item, os.R_OK):
        if path_item.lower().endswith('.egg'):
            # unpacked egg
            yield Distribution.from_filename(
                path_item, metadata=PathMetadata(
                    path_item, os.path.join(path_item,'EGG-INFO')
                )
            )
        else:
            # scan for .egg and .egg-info in directory
            for entry in os.listdir(path_item):
                lower = entry.lower()
                if lower.endswith('.egg-info'):
                    fullpath = os.path.join(path_item, entry)
                    if os.path.isdir(fullpath):
                        # egg-info directory, allow getting metadata
                        metadata = PathMetadata(path_item, fullpath)
                    else:
                        metadata = FileMetadata(fullpath)
                    yield Distribution.from_location(
                        path_item,entry,metadata,precedence=DEVELOP_DIST
                    )
                elif not only and lower.endswith('.egg'):
                    for dist in find_distributions(os.path.join(path_item, entry)):
                        yield dist
                elif not only and lower.endswith('.egg-link'):
                    for line in open(os.path.join(path_item, entry)):
                        if not line.strip(): continue
                        for item in find_distributions(os.path.join(path_item,line.rstrip())):
                            yield item
                        break

完全なソース:

https://github.com/kamalgill/flask-appengine-template/blob/master/src/pkg_resources.py

4

1 に答える 1