You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mon, May 29, 2017, 9:18 PM EnjoyLeole ***@***.***> wrote:
Environment
- Pythonnet version: 2.3.0
- Python version: 3.5.2
- Operating System: win10 64bit
vs2017 community (15.2)
.net framework 4.5.2
Details
try to call python script from c#, following your introduction, in both
x86 & x64 platform
using(Py.GIL()){}
Then got following error:
System.BadImageFormatException: 'An attempt was made to load a program
with an incorrect format. (HRESULT:0x8007000B)'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#476>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5dmoXxOBkbPG2xIe2Lqky9hz90bWks5r-3xvgaJpZM4Npwgb>
.
@EnjoyLeole you likely used nuget to install pythonnet and we found last week that VS does not switch architecture for Nuget installed package. You have to do it manually:
Environment
vs2017 community (15.2)
.net framework 4.5.2
Details
try to call python script from c#, following your introduction, in both x86 & x64 platform
using(Py.GIL()){}
Then got following error:
System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (HRESULT:0x8007000B)'
The text was updated successfully, but these errors were encountered: