Bug 9921

Summary: lockfile module within python-daemon not available
Product: buildroot Reporter: Reto Rayen <reto.rayen>
Component: OtherAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: normal CC: buildroot
Priority: P5    
Version: 2017.02.1   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.