Ticket #24135 (closed defect: fixed)
py26-game extended image format support disabled
| Reported by: | macports@… | Owned by: | jmr@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | ||
| Port: | py26-game |
Description
The problem occurred recently after reinstalling py26-game:
>>> import pygame >>> pygame.image.get_extended() 0
It is a bit puzzling as in the versions before, there was no problem at all.
Debug log attached.
Attachments
Change History
Changed 3 years ago by macports@…
- Attachment py26-game_debug.log added
comment:1 Changed 3 years ago by jmr@…
- Status changed from new to assigned
- Owner changed from macports-tickets@… to jmr@…
- Type changed from enhancement to defect
- Keywords py26-game, pygame, extended image format removed
comment:2 Changed 3 years ago by macports@…
The problem occurs on Leopard as well as on Snow Leopard here.
comment:3 Changed 3 years ago by macports@…
For pygame to work with extended image formats, it is necessary to have the SDL Image framework installed. However, in my case the framework is installed via MacPorts, but it is not recognized during the setup of pygame. To fix this, you can just install the most recent version by hand. http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.dmg and drag the SDL_image.framework folder to the /Library/Framework folder. Reinstall pygame with
sudo port uninstall -f py26-game @1.9.1_2 && sudo port install pyg26-game
and it works again.
>>> import pygame >>> pygame.image.get_extended() 1
However, it is not clear to me, why the the initial pygame install did not work with the libsdl_image package from MacPorts. Could somebody test whether this issue is mine alone or if it is a general problem?
comment:4 Changed 3 years ago by macsforever2000@…
FYI, works fine for me on Snow Leopard.
In [1]: import pygame In [2]: pygame.image.get_extended() Out[2]: 1
$ port installed py26-game The following ports are currently installed: py26-game @1.9.1_2 (active)
comment:5 Changed 3 years ago by macsforever2000@…
And i should mention that I just installed py26-game for first time to test this.
comment:6 Changed 3 years ago by jmr@…
- Status changed from assigned to closed
- Resolution set to fixed
Rev bumped in r65130. The libsdl_image port is picked up just fine, and py26-game will not link against the framework installed in /Library. Rebuilding fixed it, not installing the framework.


py26-game debug log with issue of extended image format