我正在尝试用PyInstaller创建exe文件。
该程序是来自股份公司网站的硒的汽车库存订单程序。
在启用--windowed
构建选项的情况下关闭应用程序时,执行脚本错误引发失败
如果不是,则不会提高。
我无法调查错误原因,因为当--windowed选项仅启用时错误会增加。
如何解决此错误?
(我的老板不允许将源代码公开,因此我无法上传源代码,抱歉)
我的环境:
warngetn225okasan.txt:应用名称为getn225okasan.py
missing module named 'win32com.gen_py' - imported by win32com, c:\users\username\programming\pyworks\project\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_win32comgenpy.py
missing module named pyimod03_importers - imported by c:\users\username\programming\pyworks\project\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py
missing module named StringIO - imported by selenium.webdriver.remote.webelement, pkg_resources._vendor.six
missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.markers, pkg_resources._vendor.packaging.requirements
missing module named 'com.sun' - imported by pkg_resources._vendor.appdirs
missing module named com - imported by pkg_resources._vendor.appdirs
missing module named __builtin__ - imported by pkg_resources._vendor.pyparsing
missing module named ordereddict - imported by pkg_resources._vendor.pyparsing
missing module named __main__ - imported by pkg_resources
missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern, pkg_resources
missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern, pkg_resources
missing module named 'pkg_resources.extern.six.moves' - imported by pkg_resources, pkg_resources._vendor.packaging.requirements
missing module named pkg_resources.extern.six - imported by pkg_resources.extern, pkg_resources
missing module named 'multiprocessing.forking' - imported by c:\users\username\programming\pyworks\project\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_multiprocessing.py
missing module named multiprocessing.get_context - imported by multiprocessing, multiprocessing.pool, multiprocessing.managers, multiprocessing.sharedctypes
missing module named multiprocessing.TimeoutError - imported by multiprocessing, multiprocessing.pool
missing module named multiprocessing.BufferTooShort - imported by multiprocessing, multiprocessing.connection
missing module named multiprocessing.AuthenticationError - imported by multiprocessing, multiprocessing.connection
missing module named multiprocessing.set_start_method - imported by multiprocessing, multiprocessing.spawn
missing module named multiprocessing.get_start_method - imported by multiprocessing, multiprocessing.spawn
missing module named resource - imported by posix, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named posix - imported by os, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named _posixsubprocess - imported by subprocess, multiprocessing.util, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named org - imported by pickle, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named readline - imported by cmd, code, pdb, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
excluded module named _frozen_importlib - imported by importlib, importlib.abc, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named _frozen_importlib_external - imported by importlib._bootstrap, importlib, importlib.abc, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named _winreg - imported by platform, selenium.webdriver.firefox.firefox_binary, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py, pkg_resources._vendor.appdirs
missing module named _scproxy - imported by urllib.request
missing module named java - imported by platform, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named 'java.lang' - imported by platform, xml.sax._exceptions, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named vms_lib - imported by platform, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named termios - imported by tty, getpass, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named grp - imported by shutil, tarfile, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named pwd - imported by posixpath, shutil, tarfile, http.server, webbrowser, netrc, getpass, distutils.util, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named _dummy_threading - imported by dummy_threading, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named 'org.python' - imported by copy, xml.sax, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named multiprocessing.freeze_support - imported by multiprocessing, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named multiprocessing.Manager - imported by multiprocessing, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named multiprocessing.Process - imported by multiprocessing, C:\Users\username\Programming\pyworks\project\src\getn225okasan.py
missing module named urllib2 - imported by selenium.webdriver.common.utils, selenium.webdriver.remote.remote_connection, selenium.webdriver.common.service
missing module named urlparse - imported by selenium.webdriver.remote.remote_connection
missing module named httplib - imported by selenium.webdriver.firefox.webdriver, selenium.webdriver.remote.remote_connection, selenium.webdriver.safari.webdriver, selenium.webdriver.blackberry.webdriver, selenium.webdriver.webkitgtk.webdriver
missing module named sets - imported by pytz.tzinfo
missing module named UserDict - imported by pytz.lazy
missing module named cStringIO - imported by selenium.webdriver.firefox.firefox_profile
missing module named copy_reg - imported by cStringIO
答案 0 :(得分:1)
您是否尝试从命令提示符运行.exe以查看错误?