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

eric eric at scipy.org
Wed Jan 16 18:38:31 CST 2002


Yes.

The scipy.compiler code had some hard coded stuff on windows that doesn't
work with newer version.  Kinda funny cause the new versions have a much
saner set of commands.

FYI, compiler has been renamed to weave, and the weave package is much more
powerful than compiler and should work with your newer compiler (although I
occasionally get some strange errors when testing with multiple versions of
gcc + MSVC on a machine).

Thanks for putting the note on the installation page.

eric

----- Original Message -----
From: "Louis Luangkesorn" <lluang at yahoo.com>
To: <scipy-user at scipy.net>
Sent: Wednesday, January 16, 2002 6:38 PM
Subject: [SciPy-user] Unit tests for compile_code.py returns ImportError


> 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_1184ec2786fc765046a8e2929d8c9a26
42.o
> writing
>
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a26
42.def
> c:\apps\gccmingw\bin\dllwrap.exe --driver-name g++ -mno-cygwin
> -mdll -static -s
>
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a26
42.o
>
C:\DOCUME~1\kll560\LOCALS~1\Temp\Release\sc_1184ec2786fc765046a8e2929d8c9a26
42.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/
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>





More information about the SciPy-user mailing list