Unable to import cppyy in Pyhon

913 Views Asked by At

Although I have installed cppyy-cling, cppyy-backend, CPyCppyy and cppyy (in that order) using pip3 install, I am unable to do a basic import of cppyy from the Python3 prompt.

Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cppyy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/cppyy/__init__.py", line 74, in <module>
    from ._cpython_cppyy import *
  File "/usr/local/lib/python3.6/dist-packages/cppyy/_cpython_cppyy.py", line 20, in <module>
    c = loader.load_cpp_backend()
  File "/home/<user>/.local/lib/python3.6/site-packages/cppyy_backend/loader.py", line 74, in load_cpp_backend
    raise RuntimeError("could not load cppyy_backend library")
RuntimeError: could not load cppyy_backend library

Please help if you know a way to resolve this. Thank you!

0

There are 0 best solutions below