Bug 9921 - lockfile module within python-daemon not available
Summary: lockfile module within python-daemon not available
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.02.1
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 16:31 UTC by Reto Rayen
Modified: 2018-06-06 19:16 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reto Rayen 2017-05-31 16:31:48 UTC
Hi guys

we found a bug which is encountering when we use the python-daemon to run a script as a daemon. When we want to start the daemon. It always fails because the lockfile within the python-daemon is not available. Can you please add this to the standard buildroot image when the package "python-daemon" gets compiled. We encounter the issue with python2 and python3. In both versions it's not included. Below you can find a error trace:

Traceback (most recent call last):
  File "/usr/local/bin/bender-daemon", line 9, in <module>
    from daemon import runner
  File "/home/deployer/projects/buildroot-2017.02.2/output/target/usr/lib/python3.5/site-packages/daemon/runner.py", line 33, in <module>
ImportError: No module named 'lockfile'
Comment 1 Thomas Petazzoni 2017-05-31 19:10:23 UTC
Thanks for the report, well spotted. I'll see if our most active Python contributor can have a look.
Comment 2 Reto Rayen 2017-05-31 19:39:08 UTC
Hi Thomas

i did find in addition that "thread" is also not included. Which is needed by lockfile.
Comment 3 Thomas Petazzoni 2018-06-06 19:16:40 UTC
I'm closing this bug, because:

 - The runner functionality in the python-daemon project is deprecated

 - The python-lockfile project is deprecated too, and known to be broken

So there is no good way to fix this problem.