runesc / ppg Goto Github PK
View Code? Open in Web Editor NEWCreate Powerful Python Apps with Qt5/Qt6
License: GNU General Public License v3.0
Create Powerful Python Apps with Qt5/Qt6
License: GNU General Public License v3.0
ppg freeze
Traceback (most recent call last):
File "/home/johnos/anaconda3/bin/pyinstaller", line 8, in
sys.exit(run())
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/main.py", line 126, in run
run_build(pyi_config, spec_file, **vars(args))
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/main.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 815, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 762, in build
exec(code, spec_namespace)
File "/home/johnos/Lyrical/ProtoTyping/ButtonResize/target/PyInstaller/testapp.spec", line 7, in
a = Analysis(['/home/johnos/Lyrical/ProtoTyping/ButtonResize/src/main/python/main.py'],
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 294, in init
self.postinit()
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/building/datastruct.py", line 159, in postinit
self.assemble()
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 473, in assemble
self.graph.process_post_graph_hooks(self)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py", line 373, in process_post_graph_hooks
module_hook.post_graph(analysis)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/depend/imphook.py", line 451, in post_graph
self._load_hook_module()
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/depend/imphook.py", line 408, in _load_hook_module
self._hook_module = importlib_load_source(
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/compat.py", line 632, in importlib_load_source
return mod_loader.load_module()
File "", line 529, in _check_name_wrapper
File "", line 1029, in load_module
File "", line 854, in load_module
File "", line 274, in _load_module_shim
File "", line 711, in _load
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/hooks/hook-PyQt5.QtGui.py", line 11, in
from PyInstaller.utils.hooks.qt import add_qt5_dependencies
File "/home/johnos/anaconda3/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/utils/hooks/qt.py", line 163, in
pyqt6_library_info = QtLibraryInfo('PyQt6')
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/utils/hooks/qt.py", line 61, in init
if hooks.is_module_satisfies("PyQt6 >= 6.0.3"):
File "/home/johnos/anaconda3/lib/python3.9/site-packages/PyInstaller/utils/hooks/init.py", line 482, in is_module_satisfies
pkg_resources.get_distribution(requirements)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 514, in get_distribution
dist = get_provider(dist)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 386, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 956, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 815, in resolve
dist = self._resolve_dist(
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 844, in _resolve_dist
env = Environment(self.entries)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 1044, in init
self.scan(search_path)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 1077, in scan
self.add(dist)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 1096, in add
dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 2640, in hashcmp
self.parsed_version,
File "/home/johnos/anaconda3/lib/python3.9/site-packages/pkg_resources/init.py", line 2694, in parsed_version
raise packaging.version.InvalidVersion(f"{str(ex)} {info}") from None
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '4.0.0-unsupported' (package: pyodbc)
Traceback (most recent call last):
File "/home/johnos/anaconda3/bin/ppg", line 8, in
sys.exit(_main())
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/main.py", line 17, in _main
ppg.cmdline.main()
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/cmdline.py", line 32, in main
fn(*args)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/builtin_commands/init.py", line 178, in freeze
freeze_ubuntu(debug=debug)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/freeze/ubuntu.py", line 4, in freeze_ubuntu
freeze_linux(debug)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/freeze/linux.py", line 8, in freeze_linux
run_pyinstaller(debug=debug)
File "/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/freeze/init.py", line 48, in run_pyinstaller
run(args, check=True)
File "/home/johnos/anaconda3/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pyinstaller', '--name', 'testapp', '--noupx', '--log-level', 'ERROR', '--noconfirm', '--distpath', '/home/johnos/Lyrical/ProtoTyping/ButtonResize/target', '--specpath', '/home/johnos/Lyrical/ProtoTyping/ButtonResize/target/PyInstaller', '--workpath', '/home/johnos/Lyrical/ProtoTyping/ButtonResize/target/PyInstaller', '--additional-hooks-dir', '/home/johnos/anaconda3/lib/python3.9/site-packages/ppg/freeze/hooks', '--runtime-hook', '/home/johnos/Lyrical/ProtoTyping/ButtonResize/target/PyInstaller/fbs_pyinstaller_hook.py', '/home/johnos/Lyrical/ProtoTyping/ButtonResize/src/main/python/main.py']' returned non-zero exit status 1.
Traceback (most recent call last):
File "main.py", line 2, in
File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
File "ppg_runtime/application_context/PyQt5.py", line 24, in
ImportError: /home/johnos/Lyrical/ProtoTyping/ButtonResize/target/testapp/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/johnos/Lyrical/ProtoTyping/ButtonResize/target/testapp/PyQt5/QtGui.abi3.so)
[1036679] Failed to execute script 'main' due to unhandled exception!
I'm using Python 3.12.2 and PySide6 6.6.3.1 in Ubuntu 22.04, and when I run ppg start
or launch main.py
I got the following error:
Traceback (most recent call last):
File "/home/user/work/BandwidthBuddy/src/main/python/main.py", line 18, in <module>
window = MyApp()
^^^^^^^
File "/home/user/work/BandwidthBuddy/venv/lib/python3.12/site-packages/ppg_runtime/application_context/__init__.py", line 23, in __init__
super().__init__()
File "/home/user/work/BandwidthBuddy/venv/lib/python3.12/site-packages/ppg_runtime/application_context/__init__.py", line 70, in __init__
self.app
File "/home/user/work/BandwidthBuddy/venv/lib/python3.12/site-packages/ppg_runtime/application_context/__init__.py", line 92, in app
result = self._qt_binding.QApplication([])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Please destroy the QApplication singleton before creating a new QApplication instance.
Hi,
I created a new project with ppg init
I then ran ppg start
I get the error
FileNotFoundError: [Errno 2] Could not locate resource: 'Icon.ico'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.