I'm trying to run a python file, but it doesn't allow me to, showing an error:

python3: Relink `/lib/x86_64-linux-gnu/libudev.so.1` with `/lib/x86_64-linux-gnu/librt.so.1` for IFUNC symbol `clock_gettime`
Segmentation fault (core dumped)

Seems to me that this issue is related to some python package, since other python modules run perfectly. How do I fix that?

  • 4
    Copying modules files manually from other systems usually does not end well. I have a hunch you are not telling us the whole story. – Rui F Ribeiro May 18 '18 at 22:40
  • Had a similar problem trying to use cx_Oracle. The root cause was completely unrelated - had to install libaio. Interestingly enough, the misleading relink message shows in Python 3, while in Python 2 it correctly informs the lack of libaio, trying to run the program in Python 2 was the way to discover the error. – epx Dec 4 '19 at 3:22

Apparently the issue was related to the opencv-python library. I tried to open a python session and import that module mannually but it produced the same error. I removed that module from pip and installed it again with apt install python3-opencv. It worked.

Not the answer you're looking for? Browse other questions tagged or ask your own question.