строить успешно, но немедленно закрыть

Я создал сценарий, и я хочу превратить его в исполняемую, я использовал bdist_msi, но он строит без ошибок и сбоев, когда я запускаю exe.

Ошибка:

PS C:UsersGuilherme MendesDocumentsProjetosTrello apiSourceuildexe.win-amd64-3.6> .     este.exe
Traceback (most recent call last):
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagescx_Freezeinitscripts\__startup__.py", line 14, in run
module.run()
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagescx_FreezeinitscriptsConsole.py", line 26, in run
exec(code, m.__dict__)
File "teste.py", line 1, in <module>
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages  rello\__init__.py", line 11, in <module>
from trello.trelloclient import *
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages  rello   relloclient.py", line 4, in <module>
import requests
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages
equests\__init__.py", line 43, in <module>
import urllib3
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3\__init__.py", line 8, in <module>
from .connectionpool import (
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3connectionpool.py", line 28, in <module>
from .packages.six.moves import queue
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 92, in __get__
result = self._resolve()
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 115, in _resolve
return _import_module(self.mod)
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 82, in _import_module
__import__(name)
ModuleNotFoundError: No module named 'queue'

setup.py

import sys
from cx_Freeze import setup, Executable

base = None

executables = [
        Executable("teste.py", base=base)
]

buildOptions = dict(
        packages = ['xlsxwriter', 'iso8601', 'datetime', 'smtplib', 'time', 'os', 'trello', 'email.message'],
        includes = [],
        include_files = ['Parametros.txt', 'Base de Dados.xlsx', 'Cronograma de Servicos.xlsm'],
        excludes = []
)

setup(
    name = "Painel de Servicos",
    version = "2.0",
    description = "Painel de Exibicao de agendamentos realizados no Trello",
    options = dict(build_exe = buildOptions),
    executables = executables
 )

Я пробовал другие инструменты, такие как py2exe и pyinstaller, но происходит то же самое.

python-3.x,build,exe,executable,pyinstaller,

0

Ответов: 0

строить успешно, но немедленно закрыть

Я создал сценарий, и я хочу превратить его в исполняемую, я использовал bdist_msi, но он строит без ошибок и сбоев, когда я запускаю exe.

Ошибка:

PS C:UsersGuilherme MendesDocumentsProjetosTrello apiSourceuildexe.win-amd64-3.6> .     este.exe
Traceback (most recent call last):
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagescx_Freezeinitscripts\__startup__.py", line 14, in run
module.run()
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagescx_FreezeinitscriptsConsole.py", line 26, in run
exec(code, m.__dict__)
File "teste.py", line 1, in <module>
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages  rello\__init__.py", line 11, in <module>
from trello.trelloclient import *
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages  rello   relloclient.py", line 4, in <module>
import requests
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packages
equests\__init__.py", line 43, in <module>
import urllib3
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3\__init__.py", line 8, in <module>
from .connectionpool import (
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3connectionpool.py", line 28, in <module>
from .packages.six.moves import queue
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 92, in __get__
result = self._resolve()
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 115, in _resolve
return _import_module(self.mod)
File "C:UsersGuilherme MendesAppDataLocalcondacondaenvsvirtualcondalibsite-packagesurllib3packagessix.py", line 82, in _import_module
__import__(name)
ModuleNotFoundError: No module named 'queue'

setup.py

import sys
from cx_Freeze import setup, Executable

base = None

executables = [
        Executable("teste.py", base=base)
]

buildOptions = dict(
        packages = ['xlsxwriter', 'iso8601', 'datetime', 'smtplib', 'time', 'os', 'trello', 'email.message'],
        includes = [],
        include_files = ['Parametros.txt', 'Base de Dados.xlsx', 'Cronograma de Servicos.xlsm'],
        excludes = []
)

setup(
    name = "Painel de Servicos",
    version = "2.0",
    description = "Painel de Exibicao de agendamentos realizados no Trello",
    options = dict(build_exe = buildOptions),
    executables = executables
 )

Я пробовал другие инструменты, такие как py2exe и pyinstaller, но происходит то же самое.

00питон-3.x, строить, EXE, исполняемый, pyinstaller,
Похожие вопросы
Яндекс.Метрика