lame dependency
Verfasst: Montag 24. April 2023, 15:12
Hallo.
Auf meinem iMac lassen sich Pygame und Pygame Zero nicht nutzen.
OSX 10.12.6 (ja, er ist schon etwas älter, aber für mich noch gut genug in Schuss), Python in vielen Versionen versucht, aktuell 3.10.10
Requirement already satisfied: Pygame in ./Library/Python/3.10/lib/python/site-packages (2.3.0)
Requirement already satisfied: pgzero in ./Library/Python/3.10/lib/python/site-packages (1.2.1)
Requirement already satisfied: pygame~=2.0 in ./Library/Python/3.10/lib/python/site-packages (from pgzero) (2.3.0)
Requirement already satisfied: numpy in ./Library/Python/3.10/lib/python/site-packages (from pgzero) (1.24.2)
Mini-Beispielprogramm:
import pgzrun
def draw():
screen.draw.text("Hallo von PyGame Easy", topleft = (10, 10))
pgzrun.go()
aufgerufen per IDLE mit Run/RunModule bringt:
=============================================================================== RESTART: /Users/Ruepelzahl/Entwicklungsprojekte/Python/pgzrun_test.py ===============================================================================
pygame 2.3.0 (SDL 2.24.2, Python 3.10.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
Warning (from warnings module):
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzero/runner.py", line 2
pygame.mixer.pre_init(frequency=22050, size=-16, channels=2)
RuntimeWarning: use mixer: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
(ImportError: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown))
Traceback (most recent call last):
File "/Users/Ruepelzahl/Entwicklungsprojekte/Python/pgzrun_test.py", line 1, in <module>
import pgzrun
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzrun.py", line 13, in <module>
from pgzero.runner import prepare_mod, run_mod
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzero/runner.py", line 2, in <module>
pygame.mixer.pre_init(frequency=22050, size=-16, channels=2)
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/__init__.py", line 70, in __getattr__
raise NotImplementedError(missing_msg)
NotImplementedError: mixer module not available (ImportError: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown))
Was kann man dagegen tun? Und wieso bin ich der Einzige mit diesem Problem?
Thx, Rpz
Auf meinem iMac lassen sich Pygame und Pygame Zero nicht nutzen.
OSX 10.12.6 (ja, er ist schon etwas älter, aber für mich noch gut genug in Schuss), Python in vielen Versionen versucht, aktuell 3.10.10
Requirement already satisfied: Pygame in ./Library/Python/3.10/lib/python/site-packages (2.3.0)
Requirement already satisfied: pgzero in ./Library/Python/3.10/lib/python/site-packages (1.2.1)
Requirement already satisfied: pygame~=2.0 in ./Library/Python/3.10/lib/python/site-packages (from pgzero) (2.3.0)
Requirement already satisfied: numpy in ./Library/Python/3.10/lib/python/site-packages (from pgzero) (1.24.2)
Mini-Beispielprogramm:
import pgzrun
def draw():
screen.draw.text("Hallo von PyGame Easy", topleft = (10, 10))
pgzrun.go()
aufgerufen per IDLE mit Run/RunModule bringt:
=============================================================================== RESTART: /Users/Ruepelzahl/Entwicklungsprojekte/Python/pgzrun_test.py ===============================================================================
pygame 2.3.0 (SDL 2.24.2, Python 3.10.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
Warning (from warnings module):
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzero/runner.py", line 2
pygame.mixer.pre_init(frequency=22050, size=-16, channels=2)
RuntimeWarning: use mixer: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
(ImportError: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown))
Traceback (most recent call last):
File "/Users/Ruepelzahl/Entwicklungsprojekte/Python/pgzrun_test.py", line 1, in <module>
import pgzrun
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzrun.py", line 13, in <module>
from pgzero.runner import prepare_mod, run_mod
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pgzero/runner.py", line 2, in <module>
pygame.mixer.pre_init(frequency=22050, size=-16, channels=2)
File "/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/__init__.py", line 70, in __getattr__
raise NotImplementedError(missing_msg)
NotImplementedError: mixer module not available (ImportError: dlopen(/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/mixer.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libmp3lame.0.dylib
Referenced from: /Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libsndfile.1.0.34.dylib
Reason: no suitable image found. Did find:
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown)
/Users/Ruepelzahl/Library/Python/3.10/lib/python/site-packages/pygame/.dylibs/libmp3lame.0.dylib: cannot load 'libmp3lame.0.dylib' (load command 0x80000034 is unknown))
Was kann man dagegen tun? Und wieso bin ich der Einzige mit diesem Problem?
Thx, Rpz