Bug 496218 - Upgrade of numpy to version 1.3.0-2 breaks games
Summary: Upgrade of numpy to version 1.3.0-2 breaks games
Alias: None
Product: Fedora
Classification: Fedora
Component: numpy
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-04-17 11:44 UTC by Jared Smith
Modified: 2009-04-17 14:36 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2009-04-17 14:36:37 UTC

Attachments (Terms of Use)

Description Jared Smith 2009-04-17 11:44:27 UTC
Description of problem:

My son loves to play the "slingshot" game on my rawhide box.  Yesterday, as part of my daily rawhide update, the numpy package got updated.  Now slingshot doesn't work.

Version-Release number of selected component (if applicable):

[root@localhost ~]# rpm -q python python-devel slingshot numpy

How reproducible:

All the time

Steps to Reproduce:
1. Update a box to the latest from rawhide
2. Install slingshot
3. Try to run the game
Actual results:

[jsmith@localhost ~]$ slingshot 
Traceback (most recent call last):
  File "slingshot.py", line 31, in <module>
    import pygame
  File "/usr/lib/python2.6/site-packages/pygame/__init__.py", line 188, in <module>
    try: import pygame.sndarray
  File "/usr/lib/python2.6/site-packages/pygame/sndarray.py", line 73, in <module>
    import pygame._numpysndarray as numpysnd
  File "/usr/lib/python2.6/site-packages/pygame/_numpysndarray.py", line 38, in <module>
    import numpy
  File "/usr/lib/python2.6/site-packages/numpy/__init__.py", line 130, in <module>
    import add_newdocs
  File "/usr/lib/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "/usr/lib/python2.6/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.6/site-packages/numpy/lib/polynomial.py", line 11, in <module>
    import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'

Expected results:

The game should run.

Additional info:

numpy-1.3.0-1.fc11.i586 was the previous package I had installed, and it worked fine.

Comment 1 Gwyn Ciesla 2009-04-17 12:28:42 UTC
I also maintain slingshot :)  Slingshot requires pygame which requires numpy.

The update to numpy was to split off the f2py portion into a subpackage.  Checks were done on all of numpy's dependencies, and I didn't think pygame needed f2py.  I need to determine whether slingshot or pygame was broken by this.  Here's what I'd like you to do:

1. yum install solarwolf, and see if it works.  It also uses pygame.
2. yum install numpy-f2py, and re-test slingshot and solarwolf.
3. Post the results here.


Comment 2 Jared Smith 2009-04-17 13:01:13 UTC
Thanks for your help.

Solarwolf had the exact same problem as slingshot.

Once I installed numpy-f2py, both games worked fine.  Sounds like we have some missing dependencies.  

Solarwolf also printed the following warning to the console, but it didn't seem to have any effect on the game.

[jsmith@localhost /]$ solarwolf
/usr/lib/python2.6/site-packages/pygame/sysfont.py:139: DeprecationWarning: os.popen3 is deprecated.  Use the subprocess module.
  flin, flout, flerr = os.popen3('fc-list : file family style')
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method Popen.__del__ of <subprocess.Popen object at 0x872c10c>> ignored

Comment 3 Gwyn Ciesla 2009-04-17 13:10:30 UTC
Awesome. I'll modify pygame to require numpy-f2py.  Thanks for your help!

Comment 4 Gwyn Ciesla 2009-04-17 13:43:57 UTC
Built in rawhide and F-11, Freeze Exception ticket:


Comment 5 Gwyn Ciesla 2009-04-17 14:36:37 UTC
Tagged for F-11.

Note You need to log in before you can comment on or make changes to this bug.