Giter Site home page Giter Site logo

Comments (4)

bcharlier avatar bcharlier commented on July 24, 2024

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.

thelittlekid avatar thelittlekid commented on July 24, 2024

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.

bcharlier avatar bcharlier commented on July 24, 2024

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.

thelittlekid avatar thelittlekid commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.