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

dcontinpals.dll file issue #1

Open
CollinsJnr-001 opened this issue Jun 4, 2024 · 1 comment
Open

dcontinpals.dll file issue #1

CollinsJnr-001 opened this issue Jun 4, 2024 · 1 comment

Comments

@CollinsJnr-001
Copy link

I have been experiencing this error in these lines of the code, could you tell how to get around it, please?
file_name = 'dcontinpals.dll'
__dllPtr = cdll.LoadLibrary(file_name)

Could not find module 'dcontinpals.dll' (or one of its dependencies). Try using the full path with constructor syntax.

I have also tried to use os to get full path but it didn't work

@wrochadel
Copy link

I have experienced the same problem, even with simpler code, just to load any other .dll. This documentation on ctypes does not show the same error with loading dynamic link libraries
(LoadLibrary()), but there is a way to debug what is going on:

" To resolve this error and determine which DLL is not found, you need to find the list of dependent DLLs and determine which one is not found using Windows debugging and tracing tools."
https://docs.python.org/3/library/ctypes.html#loading-shared-libraries:~:text=return%20int.-,On%20Windows,-creating%20a%20CDLL

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