![]() ValueError: API 'QDate' has already been set to version 1Īlso the warning txt file has several missing modules: missing module named PySide - imported by C:\OSGEO4~1\apps\Python27\lib\site-packages\pyinstaller-3.2.1-py2.7.egg\PyInstaller\loader\rthooks\pyi_rth_qt4plugins. Pyinstaller runs OK too, but when I try to run the app I get the error: Qt: Untested Windows version 10.0 detected!įile "c:\osgeo4~1\apps\python27\lib\site-packages\PyInstaller-3.2.1-py2.7.egg\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module Run.bat which is just running the app using standard python environment works fine. I have put all the code and associated bat files into a repository if anyone wants to clone it to try it out: ![]() I have read from multiple sources that this can bother pyinstaller. EXE From QGIS Python Script Using PyInstaller?Īlso the from xxxxx import * lines have been replaced and code updated accordingly. The code has been adapted in relation to this answer: Working Windows Standalone. Background Pyinstaller provides a way to capture Windows version data. I have borrowed from the app in the book 'Building Map Applications with QGIS', by Erik Westra and published by PACKT. PyInstaller is tested against Windows, MacOS X, and Linux. PyInstaller supports Python 3.7 and newer, and correctly bundles many major Python packages such as numpy, matplotlib, PyQt, wxPython, and others. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows. The user can run the packaged app without installing a Python interpreter or any modules. I am trying to generate a standalone exe using the pyqgis and related libraries. PyInstaller is tested against Windows, macOS, and GNU/Linux. ![]()
0 Comments
Leave a Reply. |