Hi, 

I tried to test Qt6 Hello World with Python 3.9 on macOS 11.4. Here is the 
source code:
----

import sys
from PyQt6.QtWidgets import QMessageBox, QApplication

def main():
app = QApplication(sys.argv)
QMessageBox(text="Hello World").exec()

if __name__ == "__main__":
main()

---
I compiled it and got this result:

--

% pyinstaller helloworld.py --onefile 
211 INFO: PyInstaller: 4.3
212 INFO: Python: 3.9.5
244 INFO: Platform: macOS-10.16-x86_64-i386-64bit
247 INFO: wrote /Users/my_drive/dev/python/Qt63d/helloworld.spec
256 INFO: UPX is not available.
261 INFO: Extending PYTHONPATH with paths
['/Users/my_drive/dev/python/Qt63d',
 '/Users/my_drive/dev/python/Qt63d']
297 INFO: checking Analysis
304 INFO: Building because /Users/my_drive/dev/python/Qt63d/helloworld.py 
changed
305 INFO: Initializing module dependency graph...
313 INFO: Caching module graph hooks...
334 INFO: Analyzing base_library.zip ...
5128 INFO: Processing pre-find module path hook distutils from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
5132 INFO: distutils: retargeting to non-venv dir 
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9'
10894 INFO: Caching module dependency graph...
11284 INFO: running Analysis Analysis-00.toc
11308 INFO: Analyzing /Users/my_drive/dev/python/Qt63d/helloworld.py
11381 INFO: Processing module hooks...
11382 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
11384 INFO: Loading module hook 'hook-lib2to3.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
11577 INFO: Loading module hook 'hook-_tkinter.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12225 INFO: checking Tree
12253 INFO: checking Tree
12459 INFO: checking Tree
12469 INFO: Loading module hook 'hook-encodings.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12687 INFO: Loading module hook 'hook-distutils.util.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12692 INFO: Loading module hook 'hook-pickle.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12696 INFO: Loading module hook 'hook-heapq.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12699 INFO: Loading module hook 'hook-difflib.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12702 INFO: Loading module hook 'hook-multiprocessing.util.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12706 INFO: Loading module hook 'hook-sysconfig.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12722 INFO: Loading module hook 'hook-xml.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12841 INFO: Loading module hook 'hook-distutils.py' from 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks'...
12868 INFO: Looking for ctypes DLLs
12925 INFO: Analyzing run-time hooks ...
12930 INFO: Including run-time hook 
'/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
12947 INFO: Looking for dynamic libraries
13267 INFO: Looking for eggs
13268 INFO: Using Python library 
/Library/Frameworks/Python.framework/Versions/3.9/Python
13274 INFO: Warnings written to 
/Users/my_drive/dev/python/Qt63d/build/helloworld/warn-helloworld.txt
13339 INFO: Graph cross-reference written to 
/Users/my_drive/dev/python/Qt63d/build/helloworld/xref-helloworld.html
13369 INFO: checking PYZ
13376 INFO: Building because toc changed
13376 INFO: Building PYZ (ZlibArchive) 
/Users/my_drive/dev/python/Qt63d/build/helloworld/PYZ-00.pyz
14153 INFO: Building PYZ (ZlibArchive) 
/Users/my_drive/dev/python/Qt63d/build/helloworld/PYZ-00.pyz completed 
successfully.
14171 INFO: checking PKG
14173 INFO: Building because toc changed
14173 INFO: Building PKG (CArchive) PKG-00.pkg
28338 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
28346 INFO: Bootloader 
/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/bootloader/Darwin-64bit/run
28346 INFO: checking EXE
28349 INFO: Building because name changed
28349 INFO: Building EXE from EXE-00.toc
Traceback (most recent call last):
  File "/Users/my_drive/dev/python/Qt63d/venv/bin/pyinstaller", line 8, in 
<module>
    sys.exit(run())
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/__main__.py",
 
line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/__main__.py",
 
line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/building/build_main.py",
 
line 737, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), 
kw.get('clean_build'))
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/building/build_main.py",
 
line 684, in build
    exec(code, spec_namespace)
  File "/Users/my_drive/dev/python/Qt63d/helloworld.spec", line 21, in 
<module>
    exe = EXE(pyz,
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/building/api.py",
 
line 450, in __init__
    self.__postinit__()
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/building/datastruct.py",
 
line 160, in __postinit__
    self.assemble()
  File 
"/Users/my_drive/dev/python/Qt63d/venv/lib/python3.9/site-packages/PyInstaller/building/api.py",
 
line 527, in assemble
    os.remove(self.name)
PermissionError: [Errno 1] Operation not permitted: 
'/Users/my_drive/dev/python/Qt63d/dist/helloworld'

--

Thanks, regards.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/3d259dd0-7cf2-426b-8c89-9ff1c50ea5fan%40googlegroups.com.

Reply via email to