Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#24135 closed defect (fixed)

py26-game extended image format support disabled

Reported by: macports@… Owned by: jmroot (Joshua Root)
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 (1)

py26-game_debug.log (186.1 KB) - added by macports@… 15 years ago.
py26-game debug log with issue of extended image format

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by macports@…

Attachment: py26-game_debug.log added

py26-game debug log with issue of extended image format

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Keywords: py26-game pygame extended image format removed
Owner: changed from macports-tickets@… to jmr@…
Status: newassigned
Type: enhancementdefect

comment:2 Changed 15 years ago by macports@…

The problem occurs on Leopard as well as on Snow Leopard here.

comment:3 Changed 15 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 15 years ago by mf2k (Frank Schima)

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 15 years ago by mf2k (Frank Schima)

And i should mention that I just installed py26-game for first time to test this.

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

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.

comment:7 Changed 15 years ago by macports@…

The might have been the case on my Snow Leopard, but rebuilding does not help on the Leopard Machine.

comment:8 Changed 15 years ago by jmroot (Joshua Root)

Works for me on Leopard.

Note: See TracTickets for help on using tickets.