[MacPorts] #39147: py27-game +portmidi fails silently on case-sensitive file system
#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
#39147: py27-game +portmidi fails silently on case-sensitive file system ------------------------+---------------------- Reporter: cr@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: haspatch Port: py27-game | ------------------------+---------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => jmr@… * cc: cr@… (removed) * keywords: => haspatch -- Ticket URL: <https://trac.macports.org/ticket/39147#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39147: py27-game +portmidi fails silently on case-sensitive file system ----------------------+---------------------- Reporter: cr@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: haspatch Port: py-game | ----------------------+---------------------- Changes (by macsforever2000@…): * port: py27-game => py-game -- Ticket URL: <https://trac.macports.org/ticket/39147#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39147: py27-game +portmidi fails silently on case-sensitive file system ----------------------+---------------------- Reporter: cr@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: haspatch Port: py-game | ----------------------+---------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Thanks. r106220 -- Ticket URL: <https://trac.macports.org/ticket/39147#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts