Comments (7)
(cf https://stackoverflow.com/a/62891703/12430075)
It could be that your C++ python library itself depends on a shared library / DLL. Python 3.7/3.6 would search for DLLs in PATH or the current working directory, but this is no longer the case in Python 3.8:
https://docs.python.org/3.8/whatsnew/3.8.html#ctypes
If this is the problem, you can add use add_dll_directory() to tell Python 3.8 where it should look for the DLLs.
from libkriging.
Is numpy version OK ? >=1.20
from libkriging.
Python 3.7 + Windows : OK
But
Python 3.8 or 3.9 + Windows : fails (same DLL load error).
openblas.dll
is not embedded in python DLL
from libkriging.
NB: when it fails because sub-DLL is missing, the error is ImportError: DLL load failed: The specified module could not be found.
Moreover, using Dependencies, we can see minor differences between .pyd
(dll) file from releases 3.6 (<), 3.7 (#) and 3.8 (>).
- apisets : Same
- apisetsdll : Same
- chain :
< □ pylibkriging.cp36-win_amd64.pyd (ROOT) : G:/python-artifact/pylibkriging-0.4.1-cp36-cp36m-win_amd64/pylibkriging.cp36-win_amd64.pyd
< | □ python36.dll (Environment) : C:\Python36\python36.dll
---
# □ pylibkriging.cp37-win_amd64.pyd (ROOT) : G:/python-artifact/pylibkriging-0.4.1-cp37-cp37m-win_amd64/pylibkriging.cp37-win_amd64.pyd
# | □ python37.dll (Environment) : C:\Python37\python37.dll
---
> □ pylibkriging.cp38-win_amd64.pyd (ROOT) : G:/python-artifact/pylibkriging-0.4.1-cp38-cp38-win_amd64/pylibkriging.cp38-win_amd64.pyd
> | □ python38.dll (Environment) : C:\Python38\python38.dll
- exports :
< Export 1 :
< Name : PyInit_pylibkriging
< VA : 0xE550
---
# Export 1 :
# Name : PyInit_pylibkriging
# VA : 0xE570
---
> Export 1 :
> Name : PyInit_pylibkriging
> VA : 0xE210
- imports :
< Import from module python36.dll:
# Import from module python37.dll:
many Function PyThread_* between 3.6 and 3.7 (not 3.7 and 3.8 except the following)
> Import from module python38.dll :
> Function _Py_Dealloc
- knowndll : Same
- manifest : Same (except DLL name)
- modules :
< [ROOT] pylibkriging.cp36-win_amd64.pyd : G:/python-artifact/pylibkriging-0.4.1-cp36-cp36m-win_amd64/pylibkriging.cp36-win_amd64.pyd
# [ROOT] pylibkriging.cp37-win_amd64.pyd : G:/python-artifact/pylibkriging-0.4.1-cp37-cp37m-win_amd64/pylibkriging.cp37-win_amd64.pyd
> [ROOT] pylibkriging.cp38-win_amd64.pyd : G:/python-artifact/pylibkriging-0.4.1-cp38-cp38-win_amd64/pylibkriging.cp38-win_amd64.pyd
< [Environment] python36.dll : C:\Python36\python36.dll
# [Environment] python37.dll : C:\Python37\python37.dll
> [Environment] python38.dll : C:\Python38\python38.dll
- sxsentries :
< [-] sxs dependencies for executable : G:/python-artifact/pylibkriging-0.4.1-cp36-cp36m-win_amd64/pylibkriging.cp36-win_amd64.pyd
---
# [-] sxs dependencies for executable : G:/python-artifact/pylibkriging-0.4.1-cp37-cp37m-win_amd64/pylibkriging.cp37-win_amd64.pyd
---
> [-] sxs dependencies for executable : G:/python-artifact/pylibkriging-0.4.1-cp38-cp38-win_amd64/pylibkriging.cp38-win_amd64.pyd
from libkriging.
See also #86.
from libkriging.
Is numpy version OK ? >=1.20
Yes, for all configurations:
pip show numpy
Name: numpy
Version: 1.20.3
from libkriging.
Seems to be a common issue between Python 3.7 and 3.8
from libkriging.
Related Issues (20)
- Matrix 'Q' in Kriging::_leaveOneOut
- Switch slapack external project as submodule
- implement pickle in python binding HOT 1
- Disable CacheFunction when C++17 is not available HOT 1
- "Empty" Kriging models in the R API
- Replace Python tests random generator by libK one
- logMargPost.Kriging HOT 2
- Windows 11 DLL not found
- Impossible to set sigma2 in the function Kriging. HOT 1
- Improve loader for dynamically typed languages
- how to call libKriging in C++ HOT 1
- [R] macOS build failure: rlibkriging.so: Symbol not found: _arma_H5T_NATIVE_DOUBLE HOT 4
- [R] Build failure under Ubuntu 22.04 because `../inst/hdf5` missing HOT 2
- Forcing libquadmath linking is wrong
- Build fails on macOS Catalina: error: no viable constructor or deduction guide for deduction of template arguments of 'CacheFunction'
- Build fails on macOS 10.12 and below when Clang is used: various linking errors
- Error in LMP/linear trend HOT 1
- unstable LL when theta to high HOT 2
- What happened to 0.8.0 version? It was there but vanished HOT 1
- how to improve performance of libkriging?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libkriging.