You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pyx/pyd file written in cython. Where pyd imports declarations from a .h file.
The implementation is not compiled through the cython step, but using cmake->MSVC compiled dll and lib files in advance.
Here, the lib file is just a declaration of the dll file. So when I write the path to this lib in setup.py, I use library_dirs=os.path.abspath()
To find the absolute path to this lib.(When trying to use a relative path,msvc could not find the lib)
After the sdist and wheel steps:
It can successfully generate wheel files, but after installation by pip install. I use import xxx, which prompts:
ImportError: DLL load failed while importing decode: The specified module could not be found.
I checked the installation directory and found that all the files were in the correct location and there was nothing missing.
So my guess is that when pyx is compiled into pyd, the lib-to-DLL reference path is written as an absolute path.
I don't know much about the compilation process, I would like to find a way to automatically handle the path changes of lib->dll, please let me know if my understanding is wrong!
I have a pyx/pyd file written in cython. Where pyd imports declarations from a .h file.
The implementation is not compiled through the cython step, but using cmake->MSVC compiled dll and lib files in advance.
Here, the lib file is just a declaration of the dll file. So when I write the path to this lib in setup.py, I use
library_dirs=os.path.abspath()
To find the absolute path to this lib.(When trying to use a relative path,msvc could not find the lib)
After the sdist and wheel steps:
It can successfully generate wheel files, but after installation by pip install. I use import xxx, which prompts:
ImportError: DLL load failed while importing decode: The specified module could not be found.
I checked the installation directory and found that all the files were in the correct location and there was nothing missing.
So my guess is that when pyx is compiled into pyd, the lib-to-DLL reference path is written as an absolute path.
I don't know much about the compilation process, I would like to find a way to automatically handle the path changes of lib->dll, please let me know if my understanding is wrong!
The text was updated successfully, but these errors were encountered: