Skip to contentSkip to conversation

New: lockfile module within python-daemon not available

Buildroot bugzilla at busybox.net 2 participants 6 messages May 31, 2017 – Jun 6, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9921

Bug ID: 9921
Summary: lockfile module within python-daemon not available
Product: buildroot
Version: 2017.02.1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: reto.rayen at outlook.com
CC: buildroot at uclibc.org
Target Milestone: ---

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'

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 9921] lockfile module within python-daemon not available

Hi Reto,

Quoted 7 lines · On Wed, May 31, 2017 at 9:39 PM, <[email protected]> wrote:

https://bugs.busybox.net/show_bug.cgi?id=9921

--- Comment #2 from Reto Rayen <[email protected]> --- Hi Thomas

i did find in addition that "thread" is also not included. Which is needed by lockfile.

https://pypi.python.org/pypi/lockfile/0.12.2 is unfortunately deprecated and according to [1] broken as well. According to the new python-daemon version runner.py is going to be deprecated [2]. Can you try to update python-daemon and avoid using runner.py?

[1] https://pagure.io/python-daemon/issue/4
[2] https://pagure.io/python-daemon/c/f25678cacc8cd1fbb8a28c196e8fe2eed291146c?branch=master

Yegor

#4 lore raw

[Buildroot] [Bug 9921] lockfile module within python-daemon not available

Quoted 11 lines · Yegor Yefremov

Hi Reto,

Quoted 7 lines · On Wed, May 31, 2017 at 9:39 PM, <[email protected]> wrote:

https://bugs.busybox.net/show_bug.cgi?id=9921

--- Comment #2 from Reto Rayen <[email protected]> --- Hi Thomas

i did find in addition that "thread" is also not included. Which is needed by lockfile.

Quoted 7 lines

https://pypi.python.org/pypi/lockfile/0.12.2 is unfortunately deprecated and according to [1] broken as well. According to the new python-daemon version runner.py is going to be deprecated [2]. Can you try to update python-daemon and avoid using runner.py?

[1] https://pagure.io/python-daemon/issue/4
[2] https://pagure.io/python-daemon/c/f25678cacc8cd1fbb8a28c196e8fe2eed291146c?branch=master

Adding Reto in CC

#5 lore raw

[Buildroot] [Bug 9921] lockfile module within python-daemon not available

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9921

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Thomas Petazzoni <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.