I am trying to create a one file executable, using the following pyInstaller command:
pyinstaller --noconfirm --onefile --windowed --icon "D:/Work/Python/cfepy310/xl/cfegui/Resources/Conform-e_48_1.ico" --name "Conform-e" --version-file "D:/Work/Python/cfepy310/xl/cfegui/cfe_versionfile.txt" --resource "D:/Work/Python/cfepy310/xl/cfegui/cfe_Resource_rc.py" "D:/Work/Python/cfepy310/xl/cfegui/cfe_MainForm.py"
(cfepy310) D:\Work\Python\cfepy310\xl\cfegui>auto-py-to-exe
137961 ERROR: An error occurred while packaging
Traceback (most recent call last):
File "D:\work\Python\cfepy310\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\__main__.py", line 189, in run
run_build(pyi_config, spec_file, **vars(args))
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\build_main.py", line 1033, in main
build(specfile, distpath, workpath, clean_build)
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\build_main.py", line 973, in build
exec(code, spec_namespace)
File "C:\Users\icnte\AppData\Local\Temp\tmpde053j7h\Conform-e.spec", line 18, in <module>
exe = EXE(
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\api.py", line 625, in __init__
self.__postinit__()
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
self.assemble()
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\api.py", line 746, in assemble
self._retry_operation(self._copy_windows_resource, build_name, resource)
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\api.py", line 992, in _retry_operation
return func(*args)
File "D:\work\Python\cfepy310\lib\site-packages\PyInstaller\building\api.py", line 915, in _copy_windows_resource
raise ValueError(
ValueError: Invalid Windows resource specifier 'D:\\\\Work\\\\Python\\\\cfepy310\\\\xl\\\\cfegui\\\\cfe_Resource_rc.py'! For arbitrary data file, the format is 'filename,type,name,[language]'!
My resource file seems to work because I can run the .py and everything seems to be there icons,pdf files and such.
Any help would be greatly appreciated.
Thank you
Paul