Closed sakuya9t closed 3 years ago
Thanks for the report.
This is related to the new build system(conan) being used on mac. There was no portmidi package I could find at the time, and forgot about it before the release. This is the conan issue: https://github.com/pygame/pygame/issues/997
is there a solution?
The solution is for someone to package portmidi as a 'conan' package. Unfortunately there isn't one still.
Another option is to compile pygame from source with homebrew on mac.
brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf portmidi
git clone https://github.com/pygame/pygame.git
cd pygame
python setup.py -config -auto -sdl2
python setup.py install
This is fixed in #2187 and will be part of the next dev release.
Hopefully pygame==2.0.0.dev20
fixes this properly.
I am still getting this issue on mac with pygame version 2.0.2.dev1
Is there anything else that I can try to get this fixed?
The same problem for me, but my computer is a Win 10 -PC. The error message is: import pygame.pypm as pypm ImportError: DLL load failed while importing pypm: Le module spécifié est introuvable.
MIDI.py exists in my site-packages\pygame directory, but no PYPM.py at that location. Is there a solution for me ? Is it possible to download this file ? Thanks a lot for your help !
Since my previous comment, I found pypm.cp38-win32.pyd in this directory: Lib > site-packages > pygame Can that file repair my problem ? Thanks for your help.
@Gabriel-522277 What version of pygame/python are you using? I assume you've tried uninstalling pygame, and installing the latest pygame?
It's usually better to open a new issue so people will notice it and be able to help.
Hi René, Thank you for your answer ! Your surname let me think that you could speak French. If it is the case, the next time, it will be easier for me to speak french 😊 ! Anyway, I dont use Pygame a long time age (perhaps 1 month ?). Now, I’m using pygame 2.0.1 (SDL 2.0.12, Python 3.8.1). I had no idea of what to do. According to you, which Pygame version should I install with Python 3.8.1 ?
And what to do to uninstall Pygame 2.0.1 ?
It’s very nice of you to help me, especially on a Sunday ! Thanks a lot.
Gabriel
De : René Dudfield Envoyé le :dimanche 6 février 2022 14:52 À : pygame/pygame Cc : Gabriel-522277; Mention Objet :Re: [pygame/pygame] No module named 'pygame.pypm' when initializingmidi (2.0.0-dev10) (#1931)
@Gabriel-522277 What version of pygame/python are you using? I assume you've tried uninstalling pygame, and installing the latest pygame? — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
Your advice was successful ! I uninstalled pygame, and then installed. With Pygame version 2.1.2, pygame.midi is now accepted. Thanks a lot !
Issue still occurs in pygame 2.1.3 (SDL 2.26.5, Python 3.11.3).
Edit: The issue is resolved by installing pygame 2.4.0 via pip. Is 2.4.0 an unstable preview or something? I ask because I don't see it listed in any common Linux package repos.
Hello, I recent got this error on my Mac when I try to use the midi module.
Steps to reproduce: