c# - python.net: Unable to load python27.dll with winforms but console application works -


I am using .NET Framework 4.5, but found similar results with 4.0:

If I write a bare bones console application to start Python.net, it works as expected, if I try to do the same thing from a Winforms application, then I need to "DLL" to load "python27" Unable to get: The specified module was not found. (HRESULT: Exception from 0x8007007E) "

If I call the implementation console application and python.net initialize a method from the reference Winforms application, it is the default build settings for both settings.

I was still putting Python 27 directly in the executable folder, but the same error still occurs, so I'm guessing that this 32 bit 64 bit problem can be caused by both projects for any CPU After some more pixeling, I found two things:

After some more pixeling, I found two things: < P> Change the build X86 is the goal of resolving the missing DLL error, although the application crashed cryptically while calling Python Python. I start that pre-execution happens before any other code is executed.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -