-
Notifications
You must be signed in to change notification settings - Fork 6
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, details: #4
Comments
Is there any |
Yes!
|
This symbol seems to point to the cppyy library itself:
The symbol is undefined in this library:
As it is confirmed here:
Not sure which library this symbol should be defined. |
Was the gcc version with which |
Yes, I was building with my system default version 4.8.5. I switched to gcc/8.3.0 and I can get passed that error. According to README.md, I am also supposed to build PySysC-SC, which I got from: https://git.minres.com/SystemC/PySysC-SC, bu I am having trouble with
Is there a simple test I can do to see if the PySysC build is successful? |
No idea. :) I've never used My assumption is that these packages need to either come from the system packager or from pip. Anyway, if I follow the link you provide above and read the
and a quick search on pypi.org shows that there is also a package called |
I am not sure if this is ready for prime-time use. It seems instructions are lacking or not complete. As part of the setup.py, it already installs conan and I am not sure what it is used for. Thanks for looking into this though.
|
Almost done compiling, but I still get this when running the example: $ python router_example.py
Traceback (most recent call last):
...
raise RuntimeError("could not load cppyy_backend library, details:\n%s" %
RuntimeError: could not load cppyy_backend library, details:
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libcppyy_backend.so: undefined symbol: _ZN11CppyyLegacy10TClassEdit9ShortTypeEPKci
libcppyy_backend.so: cannot open shared object file: No such file or directory
libcppyy_backend.cpython-39-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libcppyy_backend.cpython-39-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory These are installed: $ pip list | grep cppyy
cppyy 2.1.0
cppyy-backend 1.14.6
cppyy-cling 6.25.1 Not sure what is missing for the cppyy-backend. The shared libraries seem to be in order: $ LD_LIBRARY_PATH=.venv/lib/python3.9/site-packages/cppyy_backend/lib ldd .venv/lib/python3.9/site-packages/cppyy_backend/lib/*.so
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libCling.so:
linux-vdso.so.1 => (0x00007ffdb9b65000)
librt.so.1 => /lib64/librt.so.1 (0x00007f6a8e3b8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f6a8e1b4000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6a8df98000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f6a8dc90000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6a8d98e000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6a8d778000)
libc.so.6 => /lib64/libc.so.6 (0x00007f6a8d3aa000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6a9276b000)
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libCoreLegacy.so:
linux-vdso.so.1 => (0x00007ffd7bbe5000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa941674000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa941458000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa941150000)
libm.so.6 => /lib64/libm.so.6 (0x00007fa940e4e000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa940c38000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa94086a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa941b0b000)
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libcppyy_backend.so:
linux-vdso.so.1 => (0x00007ffe2daf8000)
libstdc++.so.6 => python/3.9.6/lib/libstdc++.so.6 (0x00007f9db5675000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9db52e3000)
libgcc_s.so.1 => python/3.9.6/lib/libgcc_s.so.1 (0x00007f9db565f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9db50c7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9db4cf9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9db5625000)
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libRIOLegacy.so:
linux-vdso.so.1 => (0x00007ffe48d5d000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fee6fec5000)
libThreadLegacy.so => .venv/lib/python3.9/site-packages/cppyy_backend/lib/libThreadLegacy.so (0x00007fee7055c000)
libCoreLegacy.so => .venv/lib/python3.9/site-packages/cppyy_backend/lib/libCoreLegacy.so (0x00007fee6fc32000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fee6fa16000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fee6f70e000)
libm.so.6 => /lib64/libm.so.6 (0x00007fee6f40c000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fee6f1f6000)
libc.so.6 => /lib64/libc.so.6 (0x00007fee6ee28000)
/lib64/ld-linux-x86-64.so.2 (0x00007fee703c4000)
.venv/lib/python3.9/site-packages/cppyy_backend/lib/libThreadLegacy.so:
linux-vdso.so.1 => (0x00007ffd284f7000)
libCoreLegacy.so => .venv/lib/python3.9/site-packages/cppyy_backend/lib/libCoreLegacy.so (0x00007efd7f9e2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007efd7f7c6000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007efd7f4be000)
libm.so.6 => /lib64/libm.so.6 (0x00007efd7f1bc000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007efd7efa6000)
libc.so.6 => /lib64/libc.so.6 (0x00007efd7ebd8000)
/lib64/ld-linux-x86-64.so.2 (0x00007efd7fc75000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007efd7e9d4000) |
Using gcc above 5.0 (8.3.0) and doing the following solved this issue: $ python -m pip install CPyCppyy cppyy-backend --no-cache-dir --upgrade --force-reinstall But now to a different problem:
|
I think this is related to the conanfile.txt or artifactory. I am not sure if the artifacts exist in the artifactory. Can I not point to a previously installed systemc location? |
Actually the master branch of https://git.minres.com/SystemC/PySysC-SC/ is out-date with the retirement of the free bintray service. This also honors now the SYSTEMC_HOME setting |
This is probably not PySysC specific issue but my cppyy installation. I followed the procedure to build PySysC and I get this error when cppyy is imported (when I run any of the python files in tests directory):
Any ideas?
The text was updated successfully, but these errors were encountered: