mdrubin / ironclad

Automatically exported from code.google.com/p/ironclad
Other
0 stars 0 forks source link

Could not load library 'multiarray.pyd'. Error code: 126. Parallels #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. After importing ironclad, import numpy throws the following error:

A Window's System Error Dialog pops up->
 ipy.exe - System Error
The program can't start because MSVCR90.dll is missing from your computer. Try 
reinstalling the program to fix this problem.

Then the following error shows in the ipy.exe console window:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> sys,path.append('C:\\Python26\\DLLs')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'path' is not defined
>>> sys.path.append('C:\\Python26\\DLLs')
>>> sys.path.append('C:\\Python26\\Lib')
>>> sys.path.append('C:\\Python26\\Lib\\site-packages')
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\site-packages\numpy\__init__.py", line 138, in <module>
  File "C:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in <module>

  File "C:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in <module
>
  File "C:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in <modu
le>
  File "C:\Python26\Lib\site-packages\numpy\core\__init__.py", line 5, in <modul
e>
  File "<string>", line 21, in load_module
Exception: Could not load library 'multiarray.pyd' . Error code:126
>>>

I've looked around and noticed this issue:
http://bugs.python.org/issue7511

I also reinstalled the visual studio 2008 runtime library, and installed the 
visual studio 2010 service pack updates. Neither of these fixed the issue. I 
also tried placing the MSVCR90.dll in windows/system32 and the 
ironclad-v.2.6.0rc1-bin folder with its manifest.

What version of the product are you using? On what operating system?
Windows 7. I'm running Visual Studio 2010 Professional *which may be part of 
the particular bug*
IronPython 2.6.2(2.6.10920.0) on .NET 4.0.30319.488

My Cpython is :
Enthought Python Distribution -- http://www.enthought.com Version: 6.3-2 
(32-bit)
Python 2.6.6 |EPD 6.3-2 (32-bit)| (r266:84292, Sep 20 2010, 11:26:16) [MSC 
v.1500 32 bit (Intel)] on win32

Numpy works fine in CPython.

Original issue reported on code.google.com by rin...@gmail.com on 16 Dec 2011 at 7:42

GoogleCodeExporter commented 8 years ago
Uninstalled Enthought Python Distribution, reinstalled Python 2.6.6 and numpy 
1.6.1. This error went away. You can close this ticket.

Now I'm getting the same error as shown in  'Issue 23: import numpy fails with 
IronPython 2.6.1 for .NET 4.0'

Original comment by rin...@gmail.com on 16 Dec 2011 at 9:59

GoogleCodeExporter commented 8 years ago
Went for the Experimental release for IronPython 2.6 on .Net 4.0... got past 
issue 23.

My current issue is :
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\site-packages\numpy\__init__.py", line 137, in <module>
  File "C:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in <module>

  File "C:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 17, in <modul
e>
  File "C:\Python26\Lib\site-packages\numpy\lib\npyio.py", line 6, in <module>
  File "C:\Python26\Lib\site-packages\numpy\lib\format.py", line 145, in <module
>
UnicodeDecodeError: ('unknown', u'\x93', 0, 1, '')

getting close... so close...

Original comment by rin...@gmail.com on 16 Dec 2011 at 10:11

GoogleCodeExporter commented 8 years ago
Boom. Solved.
I downloaded the source and noticed it was built with numpy 1.3.0
with that version I was able to successfully import numpy with Python 2.6.6 / 
numpy 1.3.0 / IronPython 2.6.2

Original comment by rin...@gmail.com on 16 Dec 2011 at 10:52