scrapy/scrapy

Python zipapp .pyz archive - problem with loading scrapy

已关闭

#3,386 创建于 2018年8月14日

 (5 条评论) (0 个反应) (0 位负责人)Python (11,547 个派生)batch import
bughelp wanted

仓库指标

星标
 (61,658 个星标)
PR 合并指标
 (平均合并 42天 12小时) (30 天内合并 76 个 PR)

描述

Get error when trying to run python package *.pyz builded with zipapp.

File "app.pyz/scrapy/__init__.py", line 10, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pkgutil.py", line 619, in get_data
    spec = importlib.util.find_spec(package)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/util.py", line 90, in find_spec
    fullname = resolve_name(name, package) if name.startswith('.') else name
AttributeError: 'NoneType' object has no attribute 'startswith'

Looks like relates to: https://stackoverflow.com/questions/25557693/pyinstaller-scrapy-error

贡献者指南