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
All the time
Steps to Reproduce:
1. Update a box to the latest from rawhide
2. Install slingshot
3. Try to run the game
[jsmith@localhost ~]$ slingshot
Traceback (most recent call last):
File "slingshot.py", line 31, in <module>
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>
File "/usr/lib/python2.6/site-packages/numpy/__init__.py", line 130, in <module>
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'
The game should run.
numpy-1.3.0-1.fc11.i586 was the previous package I had installed, and it worked fine.
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.
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
Awesome. I'll modify pygame to require numpy-f2py. Thanks for your help!
Built in rawhide and F-11, Freeze Exception ticket:
Tagged for F-11.