[MacPorts] #39147: py27-game +portmidi fails silently on case-sensitive file system
MacPorts
noreply at macports.org
Sat May 18 17:04:47 PDT 2013
#39147: py27-game +portmidi fails silently on case-sensitive file system
--------------------+--------------------------------
Reporter: cr@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: | Port: py27-game
--------------------+--------------------------------
== Symptoms ==
''pygame.midi.init()'' fails:
{{{
In [3]: pygame.midi.init()
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
<ipython-input-3-51a02ee375ef> in <module>()
----> 1 pygame.midi.init()
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pygame/midi.pyc in init()
69 global _init, _pypm
70 if not _init:
---> 71 import pygame.pypm
72 _pypm = pygame.pypm
73
ImportError: No module named pypm
}}}
''sudo port -s -d install py27-game +portmidi'' compiles without errors,
but the output shows:
{{{
[...]
DEBUG: Executing command line: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
game/py27-game/work/pygame-1.9.1release" &&
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
config.py --prefix=/opt/local
Using Darwin configuration...
Hunting dependencies...
SDL : found
FONT : found
IMAGE : found
MIXER : found
SMPEG : found
PNG : found
JPEG : found
SCRAP : not found
PORTMIDI: found
Framework CoreMidi not found
[...]
}}}
== Analysis ==
The Xcode framework handling MIDI is called ''CoreMIDI'' instead of
CoreMidi, which is why it fails on case-sensitive file systems.
== Workaround ==
The problem must ultimately be fixed upstream in the long run, but until
pygame gets it sorted, we can use attached patch to correct the framework
reference in ''config_darwin.py''.
--
Ticket URL: <https://trac.macports.org/ticket/39147>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list