|[pygame] Pygame midiout not working...||Anthony Palomba||10/17/11 12:03 PM|
I running OSX 6.8 with python 2.7 (from python.org). I installed pygame 1.9.1
and am trying to get MIDI output to work.
When I run the example midi.py, I get the following error:
ImportError: No module named pypm
File "/Developer/Python/pygame/Examples/midi.py", line 820, in <module>
File "/Developer/Python/pygame/Examples/midi.py", line 25, in print_device_info
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/midi.py", line 71, in init
Is there something I am missing here?
|Re: [pygame] Pygame midiout not working...||illume||10/17/11 12:35 PM|
where did you install pygame from? It looks like the pygame.pypm module is not there.
|Re: [pygame] Pygame midiout not working...||Anthony Palomba||10/17/11 1:04 PM|
|Re: [pygame] Pygame midiout not working...||illume||10/17/11 1:12 PM|
doh. it seems that one doesn't have midi working.
I'll see if I can get another one made with midi support in there. It might take a few days though.
|[pygame] Re: Pygame midiout not working...||Russell E. Owen||10/18/11 2:58 PM|
Anthony Palomba <apal...@austin.rr.com>
> I installed it from the installer I downloaded from the gygame website.
I built that binary installer. Unfortunately it does not include midi
|Re: [pygame] Re: Pygame midiout not working...||illume||10/19/11 12:36 AM|
here are the port midi compilation instructions:
c. OS X: - change to PortMidi subdirectory pm_mac
- compile. Type: xcodebuild -project pm_mac.pbproj
- copy newly created libportmidi.a to a lib path
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||10/20/11 12:04 PM|
Is there an ETA on a build of pygame for the mac that has MIDI output?
|Re: [pygame] Re: Pygame midiout not working...||illume||10/21/11 2:59 AM|
Russel, are you able to do a build with midi in there?
I've uploaded the portmidi build directory I made last time. So you should be able to do:
curl -O http://rene.f0o.com/~rene/stuff/portmidi_trunk.zip
make -f pm_mac/Makefile.osx install
Which should install portmidi for you.
The last line might need to be:
sudo make -f pm_mac/Makefile.osx install
|[pygame] Re: Pygame midiout not working...||Russell Owen||10/24/11 3:37 PM|
So far I've had no luck building portmidi--either the current release or the trunk you provided. I get tons of errors that suggest fundamental .h files aren't being found. (And yes, I do have CMake installed and running). I suspect this is because the xcode project file was saved with too recent a version of xcode (as it reports when I open it in XCode).
Also, it has no PPC target (based on opening the project on my main 10.6.8 machine). That will cause trouble with python.org's 32-bit python. I don't use xcode so I'm not sure how easy it would be to add a PPC target. Another option is to try an older version of portmidi, though I doubt users who rely on portmidi would want to go too far back.
If somebody wants to provide me a 32-bit intel+PPC static portmidi library, compatible with 10.4 and later, I'll use it. Or you can try more complete instructions (including minimum version of XCode and MacOS X on which to attempt the build) and I'll see if I can find time to go that route.
On Oct 24, 2011, at 2:31 PM, René Dudfield (by way of "Russell E. Owen" <ro...@uw.edu>) wrote:
> Hi,> <rowen-lf...@public.gmane.org> wrote:
>> In article
>> Anthony Palomba <apalomba-bs+DcK7cjk954TAoqtyWWQ@public.gmane.org>
|Re: [pygame] Re: Pygame midiout not working...||illume||10/28/11 2:56 AM|
I'll try and make a "32-bit intel+PPC static portmidi library, compatible with 10.4 and later" this weekend.
It's a bit hard for me, since I'm on OSX Lion and xcode 4.2 now. Apple removed PPC support in their compiler here. Which means PPC support is impossible without installing xcode 3 too. So I need to install xcode 3 first to a separate directory, then install xcode 4.2 again, then do some symlinking in order to get them both working.
Note, to see the architectures in a dylib
lipo -info /usr/local/lib/libportmidi.dylib
To remove the x64 architecture, and create a new version in /tmp/:
lipo /usr/local/lib/libportmidi.dylib -remove x86_64 -output /tmp/libportmidi.dylib
Then to see what it is linked against...
otool -L /usr/local/lib/libportmidi.dylib
|Re: [pygame] Re: Pygame midiout not working...||illume||10/28/11 3:13 AM|
hrmm. It seems the xcode 4.2 installer moved some stuff into "/Developer-old" folder and the ppc compilers are still in there. So maybe that will work. I'll give it a go later.
Also, this is the guide I plan to use for ppc support on Lion.
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||11/28/11 1:16 PM|
I was wondering if the Mac midi output issue has been resolved.
Any word on a new build?
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||12/8/11 8:51 AM|
|Re: [pygame] Re: Pygame midiout not working...||illume||12/9/11 10:47 AM|
I got stuck trying to get the ppc compilers working on Lion... but I'll try again.
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||12/9/11 11:06 AM|
Thanks for the update. I appreciate all your effort.
Looking forward to doing some MIDI output on the
Mac with pygame.
|Re: [pygame] Pygame midiout not working...||Zack Baker||12/9/11 1:22 PM|
Hey everyone i am having some problems importing sprites into lion, i know this is the wrong thread but could you direct me on how to start a new one
|Re: [pygame] Pygame midiout not working...||Anthony Palomba||12/9/11 1:44 PM|
Use the same address but different subject line.
|[pygame] Starting a new thread||J.B. Nicholson-Owens||12/9/11 5:09 PM|
Zack Baker wrote:
> [...] i know this is the wrong thread but could you direct me on how
Post a new email to the mailing list. Do not reply to any existing post
The subject of the post has nothing to do with proper threading because
As you'll see, this post properly threads below Baker's post as a
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||1/16/12 12:31 PM|
|Re: [pygame] Re: Pygame midiout not working...||Anthony Palomba||1/20/12 1:35 PM|
|Re: [pygame] Re: Pygame midiout not working...||illume||1/30/12 1:46 PM|
just an update...
- I asked the port media mailing list, and figured out a few things*.
- it compiles with home brew (on lion+snow).
- I tried to get a VM working on virtualbox... but that didn't work. Apparently it used to work with OSX server, but OSX server doesn't exist any more; So virtualbox doesn't seem to support it now.
- You can extract architectures, and join them together with `lipo`. So, if I grab an old binary I might be able to extract the ppc stuff.
- people suggest getting an old mac to support old mac platforms.
*basically, I need to get an old mac.
Supporting old platforms on Lion seems too hard; unless you are a level 52 wizard, and have some of Steve Jobses toe nail clippings to do the incantations.