import numpy error with "no module named multiarray" on Win XP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

import numpy error with "no module named multiarray" on Win XP

Parkway
On Win XP SP3, source file test_numpy.py:

import numpy
 
def main():
    print numpy.array([23, 34, 45, 56])
    return
 
if __name__ == '__main__':
    main()

Generate executable with:

> python pyinstaller.py --onefile test_numpy.py

Execute from dist directory with:

> test_numpy

Output is:

ImportError: No module named multiarray

Any ideas?  

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Parkway
Additional data points:

* The (above) Win32 generated executable "test_numpy" failed to run on Windows XP SP3.

* The Win32 generated executable "test_numpy" ran successfully on Windows 7 SP1 64-bit and Windows 8 64-bit.

* A Ubuntu 12.04 64-bit generated executable "test_numpy" ran successfully.


--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Martin Zibricky
dbv píše v So 09. 03. 2013 v 14:05 -0800:
>
> * The (above) Win32 generated executable "test_numpy" failed to run on
> Windows XP SP3.

Is it only this test_numpy that is failing or all generated executables
are failing?

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Parkway
The 32-bit test_numpy executable was generated once on Windows XP SP3 and it failed, BUT the SAME executable ran successfully on Windows 7 and 8 64-bit (as a 32-bit executable).

A different test_numpy executable was generated on Ubuntu 12.04 64-bit and ran successfully. Hth!


--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Parkway
Btw, on Windows XP, the versions are Python 2.7.3 and Numpy 1.7.0.

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Parkway
Uhmm ... Today, the "import numpy" example worked.

Numpy was upgraded to use the MKL version.  To check if that made the difference, the example code was run on an identical Windows XP SP3 machine but installed with the standard Numpy (1.7.0) from the sourceforge site.  PyInstaller-2.0 failed with a SyntaxError get_version() as per http://www.pyinstaller.org/ticket/601.  That is weird!

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: import numpy error with "no module named multiarray" on Win XP

Parkway
Well, no it doesn't work. 

a. Today, the "import numpy" error with "no module named multiarray" returned.  This machine runs the MKL-version of numpy 1.7.0 with Python 2.7.3 (on Windows XP SP3)
b. An identical Win XP machine but running the normal sourceforge Numpy continues to throw the error given by the ticket http://www.pyinstaller.org/ticket/601.

Both the above are using the latest development releases of PyInstaller-2.0.

If anyone has got numpy (preferably 1.7.0) on a Windows XP (SP3) machine working with PyInstaller-2.0 could they please share how to do it?  Thx.

The test.py code is:

import numpy
 
def main():
    print numpy.array([12, 23, 34, 45, 56, 67, 78, 89, 90])
    return
 
if __name__ == '__main__':
    main()

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.