whatnick / demo_qgis_app

Barebones QGIS Stand-alone app to demonstrate using PyQGIS to build custom GIS applications
5 stars 3 forks source link

Error in launch build_exe.bat #5

Open kanetpb opened 1 year ago

kanetpb commented 1 year ago

After launch build_exe.bat python message error

260 INFO: PyInstaller: 5.8.0 260 INFO: Python: 3.9.5 319 INFO: Platform: Windows-10-10.0.19045-SP0

option(s) not allowed: --onedir/--onefile --debug makespec options not valid when a .spec file is given

How to continue?

Thanks

zlonghofer commented 8 months ago

See this stackoverflow question. You will need to edit AirportViewer.spec, adding exclude_binaries to the EXE call and adding the correct COLLECT call. Then edit the call to PyInstaller in build_exe.bat: python3 -m pyinstaller --clean AirportViewer.spec.