Does NumPy import by itself?
C:\Documents and Settings\Lenard>python
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> print (numpy.__file__)
C:\Python26\lib\site-packages\numpy\__init__.pyc
>>>
Lenard Lindstrom
On Sep 28, 2011, Jake b <ninmonk...@gmail.com> wrote:
My previously working pygame , and numpy install is broke. I did install libSDL ( for c++ ) a few days ago.
I'm 95% sure pygame worked after that.
I did a windows update last reboot.
Could either be breaking it? pygame fails in pydev and scite.
I'm not sure what the exception is telling me.
C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\numpy\core does contain python files. Dir appears intact.
if I create a new file:
import pygame
print "oh no!"
output
>pythonw -u "ohno.py"
Traceback (most recent call last):
File "buffer3.py", line 1, in <module>
import pygame
File "C:\Python27\lib\site-packages\pygame\__init__.py", line 257, in <module>
try: import pygame.sndarray
File "C:\Python27\lib\site-packages\pygame\sndarray.py", line 66, in <module>
import pygame._numpysndarray as numpysnd
File "C:\Python27\lib\site-packages\pygame\_numpysndarray.py", line 38, in <module>
import numpy
File "C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\numpy\__init__.py", line 136, in <module>
import add_newdocs
File "C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\numpy\add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\numpy\lib\__init__.py", line 13, in <module>
from polynomial import *
File "C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\numpy\lib\polynomial.py", line 11, in <module>
import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'
thanks,
note: I think I had activestate and regular python, installed. But it always worked fine before. I haven't changed any python installs for months.