Closed zhangdongkun98 closed 2 years ago
It seems the libudev.so.0
file is missing.
Could you please check if you have the following file instead: /usr/lib/x86_64-linux-gnu/libudev.so.1
?
If so, you can create a symbolic link between that file and the missing file:
ln -s /usr/lib/x86_64-linux-gnu/libudev.so.1 /usr/lib/x86_64-linux-gnu/libudev.so.0
Then the error should be gone. If it still doesn't find the file, try adding /usr/lib/x86_64-linux-gnu/
to the LD_LIBRARY_PATH
.
Note: the library path /usr/lib/x86_64-linux-gnu/
might differ based on your system.
(ref: ImportError: libudev.so.0: cannot open shared object file)
@nathanlct That works! Thanks a lot!
For more details, I installed libudev
by running
sudo apt-get install -y libudev-dev
and libudev.so.1
is installed at /lib/x86_64-linux-gnu/
, then link
ln -s /lib/x86_64-linux-gnu/libudev.so.1 /usr/lib/x86_64-linux-gnu/libudev.so.0
Thanks for bringing this issue up! We're going to work on seeing if there's a way to prevent this from happening again but in the meantime I'll close this issue if it's resolved. Feel free to re-open it if further issues arise.
Running
python setup.py develop
failed and here's the error message:I'm using
cmake 3.24.0-rc1
andsfml 2.5.1
.