Opened 16 years ago

Closed 14 years ago

#18031 closed defect (invalid)

pygame.py is not in python module directories

Reported by: xl64100@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: py-game

Description

Hello,

when I installed pygame I had no problem but the pygame module wasn't found by my pythons scripts. I had to had the following symbolic link to make it work :

ln -fs System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py /Library/Python/2.5/site-packages

Change History (7)

comment:1 Changed 16 years ago by blb@…

py-game, py25-game, or py26-game? I'm guessing py25-game since you mention 2.5, but note that all the python modules should not be installing into either /System/Library/... or /Library/Python/... but /opt/local/Library/...

Because of that, you need to make sure you are using MacPorts' python in /opt/local/bin/python and not the system one in /usr/bin/python.

comment:2 Changed 16 years ago by xl64100@…

The one I installed was py-game, sorry for forgetting that, I was effectively using wriong /usr/bin/python but with /opt/local/bin/python2.5 (if I remove the link) I still get the same module missing error.

comment:3 Changed 16 years ago by alakazam@…

py-game is for python24 (/opt/local/bin/python2.4 will use it), py25-game is for python25.

comment:4 Changed 16 years ago by xl64100@…

as it was installed in this directory I thought it was for 2.5 : /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py but yes it works with python2.4, I will install it for 2.5 now, thanks

comment:5 Changed 16 years ago by alakazam@…

Is /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/ installed by macports ? Isn't that provided by OS X ?

I also have /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py, but as expected :

% port provides /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py is not provided by a MacPorts port.                                                                           

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 14 years ago by jmroot (Joshua Root)

Port: py-game added
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.