Skip to content

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

@DionEngels

Description

@DionEngels

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions