Unable to locate C library
See original GitHub issueHej Chris,
one of the users of Synoindex Watcher reported the following error in https://github.com/letorbi/synoindexwatcher/issues/38:
root@syno:~# python -m synoindexwatcher 2020-07-30 12:51:08,326 ERROR An uncaught exception occurred Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/synoindexwatcher/__main__.py", line 224, in <module> start() File "/usr/lib/python2.7/site-packages/synoindexwatcher/__main__.py", line 189, in start inotify = INotify() File "/usr/lib/python2.7/site-packages/inotifyrecursive/inotifyrecursive.py", line 31, in __init__ inotify_simple.INotify.__init__(self) File "/usr/lib/python2.7/site-packages/inotify_simple.py", line 84, in __init__ global _libc; _libc = _libc or CDLL(find_library('c'), use_errno=True) File "/usr/lib/python2.7/ctypes/util.py", line 242, in find_library raise RuntimeError("can not find library %s" % name) RuntimeError: can not find library c
After some research I’ve found out that the error only occurs when inotify-simple 1.3.4 is installed. With all previous versions everything works without any problems. Since you’ve recently changed the way to load libc.so (#20), I assume the problem is related to this change.
The affected systems seem to be Synology DiskStations, here’s the uname -a
output of mine:
Linux xxxxxx 3.2.40 #25426 Wed Jul 8 03:15:48 CST 2020 armv7l GNU/Linux synology_armada370_213j
The output of ls -la /usr/lib/libc.*
is:
lrwxrwxrwx 1 root root 20 Jul 31 14:08 /usr/lib/libc.so.6 -> libc-2.20-2014.11.so
I was unable to locate inotify.h on the system.
Please write me, if you need more info to fix the problem.
Bye, Torben
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Cool, well if they ever ship Python 3 we can think about it then.
I’ve released 1.3.5 with the fix
Synology DiskStations do not have Python 3 (yet another weirdness). There are some third-party packages that provide it, but they have to be installed manually. I assume that these packages simply provide a vanilla Python, but I cannot say for sure.