intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
61 stars 29 forks source link

Problem loading icsneo40.dll Library #154

Closed xuleixie closed 1 year ago

xuleixie commented 1 year ago

error code is: 193 Problem loading Library Make sure icsneo40.dll is installed and accessable

drebbe-intrepid commented 1 year ago

@xuleixie error 193 is:

ERROR_BAD_EXE_FORMAT
193 (0xC1)
%1 is not a valid Win32 application.

This means your icsneo40.dll architecture is different from your python version (32-bit vs 64-bit)

xuleixie commented 1 year ago

https://cdn.intrepidcs.net/support/neoVIDLL/VCNewneoVI.zip this project can't load library,but my another project load successfully

drebbe-intrepid commented 1 year ago

When you launch python it will give you text that will specify the version with either 32 bit or 64 bit

32-bit python on windows:

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

64-bit python on windows:

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

on 32-bit windows:

on 64-bit windows:

Hopefully this helps

xuleixie commented 1 year ago

I test on a new win10 virtual machine,load successfully, it not have python env image so I guess because OS version too high

xuleixie commented 1 year ago

this version OS load fail, you should focus on image

drebbe-intrepid commented 1 year ago

@xuleixie This looks like a very old version of icsneo40.dll that was pre windows 10. Without seeing SpyContrlServer.exe source code and a more detailed error log I don't really know how to help further.

xuleixie commented 1 year ago

this is my source code https://github.com/xuleixie/SpyContrlServer could you run it and help me? and do you have new version icsneo40.dll?

drebbe-intrepid commented 1 year ago

@xuleixie this looks like its out side the scope of python_ics. Please contact icssupport@intrepidcs.com and our support team will be happy to assist you further! I'm going to go ahead and close this out for now.