[Python.NET] Using numpy/matplotlib - DLL Load Failed
barton at BCDesignsWell.com
Sat Apr 23 22:22:12 CEST 2011
This is NOT what I have suggested. Use python.exe as installed by
python; this gives an unmanaged console app that should be able to
import your cpython extensions. THEN import clr; this activates a
late-binding of the .NET components. I use this technique successfully
to load even the most stubborn (like dynamically manifested wxWindows
for 2.7 which has the exact symptom) libraries. I may have time this
weekend to do the actual numpy test.
On 4/19/2011 6:22 AM, ElMariachi wrote:
> I've tried just this - starting up pythonnet.exe and importing pylab, or
> matplotlib, or numpy as the first import prior to clr. I still get the DLL
> not found errors. Have you found any other solution?
> Barton wrote:
>> I have had tons of issues with python 2.7 and manifest issues that did
>> not occur in 2.6.
>> A short term solution would be to start python from the standard
>> (cpython) python.exe, import your extension libraries that don't play
>> nicely first, then import clr (relying on the late-bound import hook).
>> On 4/14/2011 7:26 AM, ElMariachi wrote:
>>> Has anyone encountered this error before? What DLL is being searched for
>>> not found? Any help is greatly appreciated!
>>>>>> import numpy
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in<module>
>>> File "C:\Python27\lib\site-packages\numpy\__init__.py", line 142, in
>>> import add_newdocs
>>> File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 9, in
>>> from numpy.lib import add_newdoc
>>> File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 4, in
>>> from type_check import *
>>> File "C:\Python27\lib\site-packages\numpy\lib\type_check.py", line 8,
>>> import numpy.core.numeric as _nx
>>> File "C:\Python27\lib\site-packages\numpy\core\__init__.py", line 5,
>>> import multiarray
>>> ImportError: DLL load failed: The specified module could not be found.
>> Python.NET mailing list - PythonDotNet at python.org
More information about the PythonDotNet