Skip to content
Discussion options

You must be logged in to vote

Firstly, you should not be using LoadDLL in your extension modules but LoadDllInExtensionModule. See https://github.com/pyscripter/python4delphi/blob/master/Modules/DemoModule/uMain.pas as a guide.

Regarding runtime packages, is the directory containing them in the path?
Even if it is there was a change in python when searching for dlls. The Windows path is no longer searched.
See
https://docs.python.org/3/library/os.html#os.add_dll_directory
and https://stackoverflow.com/questions/67805339/is-the-function-os-add-dll-directory-adding-directories-permanently.

You can try:

  • copying all runtime packages in the same directory as the pyd file.
  • or use the os.add_dll_directory function before im…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Nesavi
Comment options

@pyscripter
Comment options

@Nesavi
Comment options

@pyscripter
Comment options

Answer selected by pyscripter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants