Ich kann Py2App nicht richtig ausführen lassen, wenn der Python -Code "Pygame importieren" enthält. Beachten Sie, dass, wenn ich die Zeile "PyGame importieren" importieren kann, wie erwartet.
#!/usr/bin/python3
import pygame
import time
for i in range(0,100) :
time.sleep(0.1)
< /code>
und < /p>
rm -r dist build setup.py
py2applet --make-setup test.py
python3 setup.py py2app
< /code>
Py2Applet scheint in Ordnung zu laufen, und erzeugt setup.py:
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['test.py']
DATA_FILES = []
OPTIONS = {}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
< /code>
Nichts Ungewöhnliches dort. Die nächste Zeile verursacht viel Ausgabe und mehrere Fehler. (Siehe unten für Stderr-Ausgabe.)
Die Datei Pyinstaller /Hooks /Hook-Pyqt6.qtwidgets existiert.Traceback (most recent call last):
File "/Users/reimer/Desktop/WiFi/setup.py", line 14, in
setup(
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 987, in run
self._run()
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1217, in _run
self.run_normal()
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1314, in run_normal
self.process_recipes(mf, filters, flatpackages, loader_files)
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1178, in process_recipes
find_needed_modules(mf, packages=rval["packages"])
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/find_modules.py", line 266, in find_needed_modules
m = mf.import_hook(package, None, ["*"])
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1162, in import_hook
for s in self._ensure_fromlist(m, fromlist):
File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1292, in _ensure_fromlist
raise ImportError("No module named " + fullname)
ImportError: No module named PyInstaller.hooks.hook-PySide6.QtGraphsWidgets
Ich kann Py2App nicht richtig ausführen lassen, wenn der Python -Code "Pygame importieren" enthält. Beachten Sie, dass, wenn ich die Zeile "PyGame importieren" [url=viewtopic.php?t=8986]importieren[/url] kann, wie erwartet.[code]#!/usr/bin/python3
import pygame import time
for i in range(0,100) : time.sleep(0.1) < /code> und < /p> rm -r dist build setup.py py2applet --make-setup test.py python3 setup.py py2app < /code> Py2Applet scheint in Ordnung zu laufen, und erzeugt setup.py: """ This is a setup.py script generated by py2applet
Usage: python setup.py py2app """
from setuptools import setup
APP = ['test.py'] DATA_FILES = [] OPTIONS = {}
setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) < /code> Nichts Ungewöhnliches dort. Die nächste Zeile verursacht viel Ausgabe und mehrere Fehler. (Siehe unten für Stderr-Ausgabe.) Die Datei Pyinstaller /Hooks /Hook-Pyqt6.qtwidgets existiert.Traceback (most recent call last): File "/Users/reimer/Desktop/WiFi/setup.py", line 14, in setup( File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 987, in run self._run() File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1217, in _run self.run_normal() File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1314, in run_normal self.process_recipes(mf, filters, flatpackages, loader_files) File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1178, in process_recipes find_needed_modules(mf, packages=rval["packages"]) File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/find_modules.py", line 266, in find_needed_modules m = mf.import_hook(package, None, ["*"]) File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1162, in import_hook for s in self._ensure_fromlist(m, fromlist): File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1292, in _ensure_fromlist raise ImportError("No module named " + fullname) ImportError: No module named PyInstaller.hooks.hook-PySide6.QtGraphsWidgets [/code]
Ich habe Anfang dieser Woche gerade angefangen, den Umgang mit Pygame zu erlernen. Während ich damit herumspielte, stellte ich fest, dass, wenn ich ein Vollbildfenster erstelle, es etwa 10 Sekunden...
Ich arbeite aus dem Crashkurs Python -Buch und versucht, Pygame für eines der Projekte zu verwenden, und sowohl Python Pygame als auch PIP werden alle auf die neuesten Versionen aktualisiert, aber...
Ich versuche, QueryDSL zu verwenden. > Aber es hat nicht funktioniert.
Hier habe ich in pom.xml
hinzugefügt
com.querydsl
querydsl-apt
5.0.0
provided
jakarta
Ich versuche, QueryDSL zu verwenden. > Aber es hat nicht funktioniert.
Hier habe ich in pom.xml
hinzugefügt
com.querydsl
querydsl-apt
5.0.0
provided
jakarta
Ich versuche, QueryDSL zu verwenden. > Aber es hat nicht funktioniert.
Hier habe ich in pom.xml
hinzugefügt
com.querydsl
querydsl-apt
5.0.0
provided
jakarta