Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 126] The specified module could not be found #21

Open
DionEngels opened this issue Jul 29, 2020 · 2 comments
Open

OSError: [WinError 126] The specified module could not be found #21

DionEngels opened this issue Jul 29, 2020 · 2 comments

Comments

@DionEngels
Copy link

Hi, after updating to pims_nd2 1.1, an error keeps occurring that did not happen in pims_nd2 1.0. No further changes have been made in my code. The error code is: "OSError: [WinError 126] The specified module could not be found".

I've tracked it down, and the error happens in ctypes_init_.py, line 364. Here, self.handle tries to open '...\pims_nd2\ND2SDK\win\x64\v6_w32_nd2ReadSDK.dll', however, fails. I've noticed that this is different from the approach of pims_nd2 1.0. In pims_nd2 1.0, lines 22 and 23 of ND2SDK.py add the dlldir (which is '...\pims_nd2\ND2SDK\win\x64') to the environment path and then asks ctypes_init.py line 364 to load in simply 'v6_w32_nd2ReadSDK.dll', which is now in the environment path, and it succeeds.

Is this an intentional change? And if so, is there something I can do to fix it.
Thanks in advance?

@WaterKnight1998
Copy link

WaterKnight1998 commented Aug 28, 2020

Hi, after updating to pims_nd2 1.1, an error keeps occurring that did not happen in pims_nd2 1.0. No further changes have been made in my code. The error code is: "OSError: [WinError 126] The specified module could not be found".

I've tracked it down, and the error happens in ctypes__init__.py, line 364. Here, self.handle tries to open '...\pims_nd2\ND2SDK\win\x64\v6_w32_nd2ReadSDK.dll', however, fails. I've noticed that this is different from the approach of pims_nd2 1.0. In pims_nd2 1.0, lines 22 and 23 of ND2SDK.py add the dlldir (which is '...\pims_nd2\ND2SDK\win\x64') to the environment path and then asks ctypes__init_.py line 364 to load in simply 'v6_w32_nd2ReadSDK.dll', which is now in the environment path, and it succeeds.

Is this an intentional change? And if so, is there something I can do to fix it.
Thanks in advance?

I am getting same error. How did you solve it?
Using 1.0 solved it for me @soft-matter, please solve it!

@DionEngels
Copy link
Author

Hi, after updating to pims_nd2 1.1, an error keeps occurring that did not happen in pims_nd2 1.0. No further changes have been made in my code. The error code is: "OSError: [WinError 126] The specified module could not be found".
I've tracked it down, and the error happens in ctypes__init__.py, line 364. Here, self.handle tries to open '...\pims_nd2\ND2SDK\win\x64\v6_w32_nd2ReadSDK.dll', however, fails. I've noticed that this is different from the approach of pims_nd2 1.0. In pims_nd2 1.0, lines 22 and 23 of ND2SDK.py add the dlldir (which is '...\pims_nd2\ND2SDK\win\x64') to the environment path and then asks ctypes__init_.py line 364 to load in simply 'v6_w32_nd2ReadSDK.dll', which is now in the environment path, and it succeeds.
Is this an intentional change? And if so, is there something I can do to fix it.
Thanks in advance?

I am getting same error. How did you solve it?
Using 1.0 solved it for me @soft-matter, please solve it!

Yes, I simply still use 1.0 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants