Comments (4)
Hi @hassanhaija,
thank you for reporting this error. I put your message in a new issue as it is not exactly the same error message as in issue #2.
But, as in issue #2, this is most likely a problem in the configuration of your python virtual env (venv in short). The error is thrown by Pybind11 and is described here.
For some reason, various versions of Python, pytorch and gcc co-exist in your venv. Doing a fresh install of the venv should do the trick.
from keops.
Hi @bcharlier. I got the same error with the testing script for PyTorch (https://www.kernel-operations.io/keops/python/installation.html). I think I've met all the requirement listed on the installation page and started with a new virtual environment.
At the bottom of the error message, the source of this error seems to be somewhere in importlib.
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 906, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: dynamic module does not define module export function (PyInit_libKeOpstorch91c92bd508)
Markdown didn't show the file path in previous posts as they were wrapped by a pair of '<>'
from keops.
Hi @thelittlekid,
unfortunately, I will give you the same answer as before. I guess that your environment is, for some reasons, not set as you think it is. By the way, posting an issue without any detail on your system, a completed error message, etc... prevent me writing a specific answer
So again, remove the keops cache dir, restart from a fresh install &nd check with the which
command if everything is as you think it should.
Good luck.
b.
from keops.
Thanks for the quick reply. I did a fresh install with anaconda and it works now.
The system info and error messages were almost identical to the post on the top, except that I was using pip virtualenv. My guess is that there might be some issue with the base interpreter in the previous virtualenv as I was using the system interpreter /usr/bin/python3.5
from keops.
Related Issues (20)
- Docs out of date HOT 1
- Question about KMin and ArgKMin reduction in pykeops HOT 4
- pykeops.test_torch_bindings() results in Fatal Python error in PyThreadState_Get HOT 1
- Issue when install pykeops HOT 1
- KeOps cannot find GPU, but the cuda toolkit has been downloaded HOT 4
- KeOps error: ld cannot find -lnvrtc HOT 7
- Modern Gradient Functionality? HOT 2
- Calculating an efficient differentiable version of Chamfer Distance? HOT 1
- Formula Compilation Error HOT 3
- openMP conflict with numba HOT 1
- FileNotFoundErrors on parallel execution.
- GenredAutogradBackward returned an incorrect number of gradients (expected 14, got 13) HOT 3
- CUDA_ERROR_ILLEGAL_ADDRESS with Genred HOT 1
- [KeOps] Error Aborted (core dumped) HOT 2
- Error: incompatible dimensions in Kmin_argKmin HOT 1
- Openmp import from conda HOT 9
- Use of -use_fast_math CUDA compiler option HOT 2
- munmap_chunk(): invalid pointer *** Break *** abort HOT 2
- CUDA_ERROR_ILLEGAL_ADDRESS when doing batch matrix-matrix multiplication.
- pykeops.config.gpu_available is broken if PyTorch is available with GPU support, but without nvcc HOT 1
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 keops.