0

我正在尝试使用 python 测试 QtDesigner、使用 pipenv 并使用 auto py to exe 构建一个简单的应用程序,我不知道 auto-py-to-exe 有什么问题,没有构建程序,我认为这是因为我的硬盘驱动器没有临时空间或其他东西,有没有办法通过命令提示符更改构建目录或解决我放在上面的问题。提前感谢您的帮助,我附上了终端给出的错误:

Running auto-py-to-exe v2.11.0
Building directory: C:\Users\user\AppData\Local\Temp\tmp47fow_ol
Provided command: pyinstaller --noconfirm --onedir --windowed --add-data "D:/-_SHv_4lM/Lib/site-packages/PySide6/qt.conf;." --add-data "D:/-_SHv_4lM/Lib/site-packages/PySide6/plugins;plugins/" --add-data "D:/-_SHv_4lM/Lib/site-packages/PySide6/translations;translations/"  "D:/Scripts/BuenGiro.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onedir --windowed --add-data D:/-_SHv_4lM/Lib/site-packages/PySide6/qt.conf;. --add-data D:/-_SHv_4lM/Lib/site-packages/PySide6/plugins;plugins/ --add-data D:/-_SHv_4lM/Lib/site-packages/PySide6/translations;translations/ D:/Scripts/BuenGiro.py --distpath C:\Users\user\AppData\Local\Temp\tmp47fow_ol\application --workpath C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build --specpath C:\Users\user\AppData\Local\Temp\tmp47fow_ol

1904393 INFO: PyInstaller: 4.7
1904398 INFO: Python: 3.10.0
1904401 INFO: Platform: Windows-10-10.0.17134-SP0
1904406 INFO: wrote C:\Users\user\AppData\Local\Temp\tmp47fow_ol\BuenGiro.spec
1904413 INFO: UPX is not available.
1904419 INFO: Extending PYTHONPATH with paths
['D:\\Scripts']
1905214 INFO: checking Analysis
1905230 INFO: Building Analysis because Analysis-02.toc is non existent
1905235 INFO: Reusing cached module dependency graph...
1905336 INFO: Caching module graph hooks...
1905552 INFO: running Analysis Analysis-02.toc
1905564 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by D:\Python\python.exe
1905983 INFO: Analyzing D:\Scripts\BuenGiro.py
1906071 INFO: Processing module hooks...
1906075 INFO: Loading module hook 'hook-difflib.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906083 INFO: Loading module hook 'hook-distutils.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906088 INFO: Loading module hook 'hook-distutils.util.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906094 INFO: Loading module hook 'hook-encodings.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906237 INFO: Loading module hook 'hook-heapq.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906242 INFO: Loading module hook 'hook-lib2to3.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906402 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906408 INFO: Loading module hook 'hook-pickle.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906416 INFO: Loading module hook 'hook-PySide6.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906570 INFO: Loading module hook 'hook-PySide6.QtCore.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1906749 INFO: Loading module hook 'hook-PySide6.QtGui.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1907017 INFO: Loading module hook 'hook-PySide6.QtNetwork.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1907536 INFO: Loading module hook 'hook-PySide6.QtWidgets.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1907990 INFO: Loading module hook 'hook-sysconfig.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1908002 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1908008 INFO: Loading module hook 'hook-xml.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1908086 INFO: Loading module hook 'hook-_tkinter.py' from 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks'...
1908337 INFO: checking Tree
1908346 INFO: Building Tree because Tree-06.toc is non existent
1908350 INFO: Building Tree Tree-06.toc
1908459 INFO: checking Tree
1908474 INFO: Building Tree because Tree-07.toc is non existent
1908478 INFO: Building Tree Tree-07.toc
1908622 INFO: checking Tree
1908628 INFO: Building Tree because Tree-08.toc is non existent
1908633 INFO: Building Tree Tree-08.toc
1908669 INFO: Looking for ctypes DLLs
1908701 INFO: Analyzing run-time hooks ...
1908711 INFO: Including run-time hook 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
1908718 INFO: Including run-time hook 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
1908728 INFO: Including run-time hook 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
1908739 INFO: Including run-time hook 'D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyside6.py'
1908756 INFO: Looking for dynamic libraries
1910277 INFO: Looking for eggs
1910292 INFO: Using Python library D:\Python\python310.dll
1910292 INFO: Found binding redirects: 
[]
1910292 INFO: Warnings written to C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\warn-BuenGiro.txt
1910395 INFO: Graph cross-reference written to C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\xref-BuenGiro.html
1910403 INFO: Appending 'datas' from .spec
1910456 INFO: checking PYZ
1910467 INFO: Building PYZ because PYZ-02.toc is non existent
1910472 INFO: Building PYZ (ZlibArchive) C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\PYZ-02.pyz
1911341 INFO: Building PYZ (ZlibArchive) C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\PYZ-02.pyz completed successfully.
1911365 INFO: checking PKG
1911370 INFO: Building PKG because PKG-02.toc is non existent
1911375 INFO: Building PKG (CArchive) BuenGiro.pkg
1911411 INFO: Building PKG (CArchive) BuenGiro.pkg completed successfully.
1911420 INFO: Bootloader D:\-_SHv_4lM\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
1911426 INFO: checking EXE
1911431 INFO: Building EXE because EXE-02.toc is non existent
1911438 INFO: Building EXE from EXE-02.toc
1911445 INFO: Copying bootloader EXE to C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\BuenGiro.exe
1911480 INFO: Copying icon to EXE
1911486 INFO: Copying icons from ['D:\\-_SHv_4lM\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-windowed.ico']
1911496 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
1911504 INFO: Writing RT_ICON 1 resource with 3752 bytes
1911509 INFO: Writing RT_ICON 2 resource with 2216 bytes
1911517 INFO: Writing RT_ICON 3 resource with 1384 bytes
1911522 INFO: Writing RT_ICON 4 resource with 38188 bytes
1911531 INFO: Writing RT_ICON 5 resource with 9640 bytes
1911535 INFO: Writing RT_ICON 6 resource with 4264 bytes
1911544 INFO: Writing RT_ICON 7 resource with 1128 bytes
1911555 INFO: Copying 0 resources to EXE
1911562 INFO: Emedding manifest in EXE
1911572 INFO: Updating manifest in C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\BuenGiro.exe
1911579 INFO: Updating resource type 24 name 1 language 0
1911592 INFO: Appending PKG archive to EXE
An error occurred while packaging
Traceback (most recent call last):
  File "D:\-_SHv_4lM\lib\site-packages\pefile.py", line 2795, in __parse__
    fd = open(fname, "rb")
OSError: [Errno 22] Invalid argument: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmp47fow_ol\\build\\BuenGiro\\BuenGiro.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\-_SHv_4lM\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
    run_pyinstaller()
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\__main__.py", line 124, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\building\build_main.py", line 782, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\building\build_main.py", line 714, in build
    exec(code, spec_namespace)
  File "C:\Users\user\AppData\Local\Temp\tmp47fow_ol\BuenGiro.spec", line 23, in <module>
    exe = EXE(pyz,
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\building\api.py", line 507, in __init__
    self.__postinit__()
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\building\datastruct.py", line 155, in __postinit__
    self.assemble()
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\building\api.py", line 726, in assemble
    set_exe_checksum(self.name)
  File "D:\-_SHv_4lM\lib\site-packages\PyInstaller\utils\win32\winutils.py", line 161, in set_exe_checksum
    pe = pefile.PE(exe_path)
  File "D:\-_SHv_4lM\lib\site-packages\pefile.py", line 2743, in __init__
    self.__parse__(name, data, fast_load)
  File "D:\-_SHv_4lM\lib\site-packages\pefile.py", line 2807, in __parse__
    raise Exception(
Exception: Unable to access file 'C:\Users\user\AppData\Local\Temp\tmp47fow_ol\build\BuenGiro\BuenGiro.exe': [Errno 22] Invalid argument: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmp47fow_ol\\build\\BuenGiro\\BuenGiro.exe'

Project output will not be moved to output folder
Complete.
4

0 回答 0