sunjerry019 / nanosquared

Open Source M-Squared Measurement Automation using Dataray WinCamD and Ophir NanoScan. WinCamD and NanoScan code may be used independently
GNU General Public License v3.0
6 stars 1 forks source link

NS2_Interop.dll, System.DllNotFoundException #53

Open kallpreb opened 6 months ago

kallpreb commented 6 months ago

Same problem as in issue #48

ConnectionTimeoutError: Timeout after 10.0 seconds. Could not connect to 127.0.0.1:49520 Instantiating 'NanoScanServer' raised the following exception:

Traceback (most recent call last): File "start_server32.py", line 183, in main File "C:\Users\entwicklung\AppData\Local\Programs\Python\Python311\base\Lib\site-packages\nanosquared\cameras\nanoscan_server.py", line 41, in init assert self.NS.InitNS() == 1, "Failed to start NanoScan" ^^^^^^^^^^^^^^^^ System.DllNotFoundException: Die DLL "NS2_Interop.dll": The specified module could not be found. (Exception from HRESULT: 0x8007007E) in NanoScanLibrary.NanoScan.InitNsInterop() in NanoScanLibrary.NanoScan.InitNS()

Cannot start the 32-bit server.

I have to use a new computer now and got the same problem as in 2022. Solution to take an older computer is not possible now.

sunjerry019 commented 6 months ago

Hi, honestly it has been a while since I've touched this project, but I see that you using Python 3.11, which I have not tested against (nor do I have the ability to test with anymore as I no longer have access to a NanoScan device).

Some things you could try:

For testing purposes, I suggest using a 32-bit Python environment (e.g. here) and using nanoscan_32_dotnet.py to test.

Hope this helps, if not, don't hesitate to write back :)

sunjerry019 commented 6 months ago

Hi @kallpreb, were you able to solve your problem?

kallpreb commented 5 months ago

Hello,

I was very busy the last 2 weeks and had no time to deal with this issue. When I had this issue two years ago I had two computers with exactly the same python environment. With one computer it works with the other not. I also tried with anaconda and the same package versions you use without success. My solution the last time was to use the older computer.

I will check the 32-bit python as you suggested.

Best regards

Von: Sun Yudong @.> Gesendet: Mittwoch, 8. Mai 2024 16:50 An: sunjerry019/nanosquared @.> Cc: Frank Kallmeyer @.>; Mention @.> Betreff: [EXTERNAL]: Re: [sunjerry019/nanosquared] NS2_Interop.dll, System.DllNotFoundException (Issue #53)

Hi @kallpreb [github.com]https://urldefense.com/v3/__https:/github.com/kallpreb__;!!BEJPKrpf!5CsEZONCLNDmV2t6_fslmaLRswqqEguMqiBqFPG4_90R3LIMqNngUWlE8UaS_XB2RJ1vgEbMpkam70E6ELu4pEZN8GnRiGc$, were you able to solve your problem?

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/sunjerry019/nanosquared/issues/53*issuecomment-2100766975__;Iw!!BEJPKrpf!5CsEZONCLNDmV2t6_fslmaLRswqqEguMqiBqFPG4_90R3LIMqNngUWlE8UaS_XB2RJ1vgEbMpkam70E6ELu4pEZN7WIIVyE$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AZ2T43B6OQRQCFPUMGDF7F3ZBI3RRAVCNFSM6AAAAABG6NR4GKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQG43DMOJXGU__;!!BEJPKrpf!5CsEZONCLNDmV2t6_fslmaLRswqqEguMqiBqFPG4_90R3LIMqNngUWlE8UaS_XB2RJ1vgEbMpkam70E6ELu4pEZNBOdS7kU$. You are receiving this because you were mentioned.Message ID: @.***>


This email is from Coherent Corp. or a Coherent group company. The contents of this email, including any attachments, are intended solely for the intended recipient and may contain Coherent proprietary and/or confidential information and material. Any review, use, disclosure, re-transmission, dissemination, distribution, retention, or copying of this email and any of its contents by any person other than the intended recipient is strictly prohibited. If you received this email in error, please immediately notify the sender and destroy any and all copies of this email and any attachments. To contact us directly, please email @.*** Privacy: For information about how Coherent processes personal information, please review our privacy policy at https://www.coherent.com/legal/privacy-statement.