[SciPy-user] Unit tests for compile_code.py returns ImportError

Louis Luangkesorn lluang at yahoo.com
Wed Jan 16 17:38:04 CST 2002


Hello

When I ran the scipy.test_all() after installing everything, I get
the failure at the bottom of this message. 
[ImportError: DLL load failed: Invalid access to memory location.]
 When I had MINGW installed incorrectly, the compile tests actually
succeded (although it did not compile the code and ran those tests
as straight python), so the problem is probably with how it
interacts with gcc.  I'm using gcc 2.95.3-4 (mingw special) which
is from mingw-1.0-20010608

Am I missing anything?

Thanks
Louis

<'No test suite found' and 'creating test suite' messages snipped>
No test suite found for  scipy.special
No test suite found for  scipy.stats
......................................................................................................
Expression: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] +
b[:-2,1:-1]+ b[1:-1,2:] + b[1:-1,:-2]) / 5.
Run: (10, 10) f
Compiling code.  This may take a few minutes
running build_ext
building 'sc_1184ec2786fc765046a8e2929d8c9a2642' extension
c:\apps\gccmingw\bin\gcc.exe -mno-cygwin -mdll -O2 -w
-IC:\apps\Python\scipy\compiler\blitz-20001213
-IC:\apps\Python\scipy\compiler\scxx -IC:\APPS\Python\Include -c
C:\DOCUME~1\kll560\LOCALS~1\Temp\sc_1184ec2786fc765046a8e2929d8c9a2642.cpp
-o
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a2642.o
writing
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a2642.def
c:\apps\gccmingw\bin\dllwrap.exe --driver-name g++ -mno-cygwin
-mdll -static -s
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a2642.o
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a2642.def
-LC:\APPS\Python\libs -lpython21 -o
C:\DOCUME~1\kll560\LOCALS~1\Temp\sc_1184ec2786fc765046a8e2929d8c9a2642.pyd
finished compiling (sec):  43.7829999924
E.....................................................................................
======================================================================
ERROR: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\apps\Python\scipy\compiler\tests\test_compile_code.py",
line 280, in check_5point_avg_2d
    self.generic_2d(expr)
  File "C:\apps\Python\scipy\compiler\tests\test_compile_code.py",
line 256, in generic_2d
    standard,compiled = self.generic_test(expr,arg_dict,type,size)
  File "C:\apps\Python\scipy\compiler\tests\test_compile_code.py",
line 217, in generic_test
   
scipy.compiler.compile_code.compiled_exec(expr,arg_dict,module_location=None)
  File "C:\apps\Python\scipy\compiler\compile_code.py", line 134,
in compiled_exec
    exec ('import ' + module_name)
  File "<string>", line 1, in ?
ImportError: DLL load failed: Invalid access to memory location.
----------------------------------------------------------------------
Ran 188 tests in 46.688s

FAILED (errors=1)



=====
When I consider your heavens, the work of your fingers,
the moon and the stars, which you have set in place,
what is man that you are mindful of him, the son of man that you care for him?    Psalm 8:3-4
Y!M, AOL, jabber.com: lluang

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



More information about the SciPy-user mailing list