-
Notifications
You must be signed in to change notification settings - Fork 42
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
RuntimeError: could not load cppyy_backend library #256
Comments
Common reasons on windows is installing a 32b version in one environment, then trying to import in a 64b version of Python, so recommend to check that first. If any of the listed libraries ( |
I just tried to modify the _load_helper function to load the libcppyy_backend.dll: def _load_helper(bkname):
errors = set()
pkgpath = "C:\\Users\\Pengpei\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\cppyy_backend"
dllpath = os.path.join(pkgpath, 'lib', bkname)
print(dllpath)
print(ctypes.CDLL(dllpath))
exit() And it printed the correct .dll path but just could not link it:
I am sure that path is correct but I have no idea what's going on here (I mean why it's there and the path is correct but ctypes couldn't find it). And I did find that there's a .pyd file named libcppyy.cp39-win_amd64.pyd (instead of libcppyy_backend.pyd) under my \Python39\Lib\site-packages. Is this .pyd file the one we need? There're some other errors but I am not sure whether it's due to the lack of dll and pyd file:
|
I run into this error and don't have a clue how to fix it.
Details:
RuntimeError: could not load cppyy_backend library, details: Could not find module 'libcppyy_backend.dll' (or one of its dependencies). Try using the full path with constructor syntax. [WinError 1114] A dynamic link library (DLL) initialization routine failed Could not find module 'libcppyy_backend.cp311-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax. Could not find module 'D:\miniconda3\envs\turay\Lib\site-packages\cppyy_backend\lib\libcppyy_backend.cp311-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
I found
libcppyy_backend.dll
incppyy_backend\lib
but I don't find thelibcppyy_backend.cp311-win_amd64.pyd
The text was updated successfully, but these errors were encountered: