Я сделал скрипт и хочу включить его в исполняемый файл, я использовал bdist_msi, но он запускается без ошибок и вылетает при запуске exe.
Ошибка:
PS C:\Users\Guilherme Mendes\Documents\Projetos\Trello api\Source\build\exe.win-amd64-3.6> .\teste.exe
Traceback (most recent call last):
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
module.run()
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
exec(code, m.__dict__)
File "teste.py", line 1, in <module>
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\__init__.py", line 11, in <module>
from trello.trelloclient import *
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\trelloclient.py", line 4, in <module>
import requests
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\requests\__init__.py", line 43, in <module>
import urllib3
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\urllib3\__init__.py", line 8, in <module>
from .connectionpool import (
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\urllib3\connectionpool.py", line 28, in <module>
from .packages.six.moves import queue
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\urllib3\packages\six.py", line 92, in __get__
result = self._resolve()
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\urllib3\packages\six.py", line 115, in _resolve
return _import_module(self.mod)
File "C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\urllib3\packages\six.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 Serviços",
version = "2.0",
description = "Painel de Exibição de agendamentos realizados no Trello",
options = dict(build_exe = buildOptions),
executables = executables
)
Я пробовал другие инструменты, такие как py2exe и pyinstaller, но происходит то же самое.