Can't get examples to run

77 views
Skip to first unread message

Daniel

unread,
Mar 21, 2012, 10:32:43 AM3/21/12
to Zunzun.com discussion group
Hello everyone, I am trying to get the source code running and I went
to run one of the examples and got the following error message:

C:\Python26\pyeq2\Examples\Simple>CoefficientBounds_2D.py
Traceback (most recent call last):
File "C:\Python26\pyeq2\Examples\Simple\CoefficientBounds_2D.py",
line 8, in <
module>
import pyeq2
File "C:\Python26\pyeq2\__init__.py", line 13, in <module>
import DataCache
File "C:\Python26\pyeq2\DataCache\__init__.py", line 13, in <module>
import DataCache
File "C:\Python26\pyeq2\DataCache\DataCache.py", line 18, in
<module>
import numpy
File "C:\Python26\lib\site-packages\numpy\__init__.py", line 137, in
<module>
import add_newdocs
File "C:\Python26\lib\site-packages\numpy\add_newdocs.py", line 9,
in <module>

from numpy.lib import add_newdoc
File "C:\Python26\lib\site-packages\numpy\lib\__init__.py", line 4,
in <module
>
from type_check import *
File "C:\Python26\lib\site-packages\numpy\lib\type_check.py", line
8, in <modu
le>
import numpy.core.numeric as _nx
File "C:\Python26\lib\site-packages\numpy\core\__init__.py", line 5,
in <modul
e>
import multiarray
ImportError: DLL load failed: %1 is not a valid Win32 application.

C:\Python26\pyeq2\Examples\Simple>


This is my first time using Python, but I have Python v2.6 installed
with numpy v1.6.1 and scipy v 0.10.1 installed running on Windows
7. Thank you for the help.

zunzun.com

unread,
Mar 21, 2012, 11:20:57 AM3/21/12
to zunzun_...@googlegroups.com
Try importing numpy from a python prompt.  The error message looks like a numpy installation problem, and at present does not look like a problem in the example itself.
 
     James

Daniel

unread,
Mar 21, 2012, 11:27:46 AM3/21/12
to Zunzun.com discussion group
Disregard, I had installed the 64 bit version of Python and that
wasn't compatible with the 32 bit Numpy. Thanks for the quick
response, I just got these working.

Daniel

zunzun.com

unread,
Mar 21, 2012, 1:42:42 PM3/21/12
to zunzun_...@googlegroups.com
Excellent.
 
     James
 

On Wednesday, March 21, 2012 9:32:43 AM UTC-5, Daniel wrote:
Reply all
Reply to author
Forward
0 new messages