question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to locate C library

See original GitHub issue

Hej 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjbillingtoncommented, Aug 6, 2020

Cool, well if they ever ship Python 3 we can think about it then.

I’ve released 1.3.5 with the fix

0reactions
letorbicommented, Aug 5, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code unable to detect Standard C++ Libraries
VS Code need to locate the include libraries. First of all locate where g++ is located. You mentioned that it works fine.
Read more >
C/C++ extension FAQ - Visual Studio Code
Frequently asked questions about the C/C++ extension in Visual Studio Code. ... will provide more information about which files it was unable to...
Read more >
The "imcl" command fails with "...unable to locate companion ...
The imcl tool uses a launcher library that is defined in the imcl.ini file. If the path specified for this library does not...
Read more >
Building and Installing ACE and Its Auxiliary Libraries and ...
As you start working with ACE, we suggest you get copies of the C++NPv1, C++NPv2, and APG books to help guide you after...
Read more >
Arm Compiler Errors and Warnings Reference Guide Version ...
The following example fails with Fatal error: L6004U: Missing library member in ... See the following in the Arm C and C++ Libraries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found