Hey all. I'm using Python 2.6.4, Eclipse 3.5, PyGame 1.9.1, SDL 1.2.14, NumPy 1.3.0, and PyDev 1.5.0 to develop a game on the Mac. However, I have run into an odd problem.
If I try these simple lines of test code in the Terminal, after starting the Python interpreter:
I get back numpy.ndarray as the type, as expected.
Trying the same lines in Eclipse gives me 2 error messages:
Something's obviously screwy here in Eclipse, since it works just fine at the command line. I cannot figure out what, though.
If I try these simple lines of test code in the Terminal, after starting the Python interpreter:
Code:
import numpy
test = numpy.zeros((2, 3), numpy.int16)
type(test)
Trying the same lines in Eclipse gives me 2 error messages:
Code:
undefined variable from import: zeros
undefined variable from import: int16
Something's obviously screwy here in Eclipse, since it works just fine at the command line. I cannot figure out what, though.