Dear Sir/Madam, I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory. Traceback (most recent call last): File "<string>", line 1, in ? AttributeError: 'module' object has no attribute 'test'" Could you help me to figure out what's wrong with it? Thanks! Best wishes! Xuemei Tang
On Tue, Jun 12, 2007 at 11:58:28AM -0400, Xuemei Tang wrote:
Dear Sir/Madam,
I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory.
^ don't do that :) Instead, change out of the source directory, and rerun. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
On Fri, Jun 15, 2007 at 03:44:37PM -0400, David M. Cooke wrote:
I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory.
^ don't do that :)
Instead, change out of the source directory, and rerun.
Is there any reason why we can't make that work? Stéfan
Stefan van der Walt wrote:
On Fri, Jun 15, 2007 at 03:44:37PM -0400, David M. Cooke wrote:
I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory. ^ don't do that :)
Instead, change out of the source directory, and rerun.
Is there any reason why we can't make that work?
We have to be able to bootstrap the build process somehow. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Robert Kern wrote:
Stefan van der Walt wrote:
On Fri, Jun 15, 2007 at 03:44:37PM -0400, David M. Cooke wrote:
I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory. ^ don't do that :)
Instead, change out of the source directory, and rerun. Is there any reason why we can't make that work?
We have to be able to bootstrap the build process somehow.
wouldn't it work with the upcoming new import semantics in python 2.6 ? The problem is that you cannot make the difference between $PWD/numpy and $PYTHONPATH/numpy, or is this more subtle ? David
On Tue, Jun 19, 2007 at 05:06:42PM +0900, David Cournapeau wrote:
Robert Kern wrote:
Stefan van der Walt wrote:
On Fri, Jun 15, 2007 at 03:44:37PM -0400, David M. Cooke wrote:
I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory. ^ don't do that :)
Instead, change out of the source directory, and rerun. Is there any reason why we can't make that work?
We have to be able to bootstrap the build process somehow.
wouldn't it work with the upcoming new import semantics in python 2.6 ? The problem is that you cannot make the difference between $PWD/numpy and $PYTHONPATH/numpy, or is this more subtle ?
I think part of the problem is that the extensions are built into some temporary directory (and I don't know of a way to query distutils for its location), which must also appear on the path for the tests to function properly. Cheers Stéfan
participants (5)
-
David Cournapeau
-
David M. Cooke
-
Robert Kern
-
Stefan van der Walt
-
Xuemei Tang