Python: Cx_Freeze FileNotFoundError: Ошибка 2 в файле library.zip - PullRequest
1 голос
/ 14 апреля 2020

Я хочу построить мой python скрипт с Cx_Freeze, однако я получаю эту ошибку:

FileNotFoundError: [Errno 2] Файл b 'C: \ Users \ ... \ build \ exe .win323.8 \ lib \ library.zip/table.csv 'не существует: b' C: \ Users \ ... \ build \ exe.win32-3.8 \ lib \ library.zip/table.csv '

Мой setup.py:

from cx_Freeze import setup, Executable
includefiles = ['table.csv']
zipincludes = ['table.csv']
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = [], excludes = [], include_files = includefiles, zip_includes = zipincludes)
include_package_data=True
base = 'Console'

executables = [
    Executable('ReportGenerator.py', base=base, targetName = 'report_generator')
]

setup(
    name='test13',
    version = '1.0',
    description = 'test13',
    options = dict(build_exe = buildOptions),
    executables = executables)

Я использую python 38. pip 19.3.1 Я не понимаю, почему он не может найти мой CSV. У меня есть файл .csv на хорошем zip: file.csv в library.zip

Спасибо

...