Package: python-lockfile
Version: 1:0.12.2-2~bpo8+1
Severity: important

In a fresh jessie VM, enable jessie-backports and install a package
using python-lockfile (in this case, via python-daemon).

apt -t jessie-backports install lava-coordinator

Mar 27 13:46:10 debian systemd[1]: Starting LSB: LAVA MultiNode Coordinator 
singleton...
Mar 27 13:46:10 debian lava-coordinator[26156]: Starting lava-coordinator : 
lava-coordinatoTraceback (most recent call last):
Mar 27 13:46:10 debian lava-coordinator[26156]: File 
"/usr/bin/lava-coordinator", line 27, in <module>
Mar 27 13:46:10 debian lava-coordinator[26156]: import daemon.pidlockfile
Mar 27 13:46:10 debian lava-coordinator[26156]: File 
"/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 33, in <module>
Mar 27 13:46:10 debian lava-coordinator[26156]: class PIDLockFile(LinkFileLock, 
object):
Mar 27 13:46:10 debian lava-coordinator[26156]: TypeError: Error when calling 
the metaclass bases
Mar 27 13:46:10 debian lava-coordinator[26156]: function() argument 1 must be 
code, not str
Mar 27 13:46:10 debian lava-coordinator[26156]: failed!
Mar 27 13:46:10 debian systemd[1]: lava-coordinator.service: control process 
exited, code=exited status=1
Mar 27 13:46:10 debian systemd[1]: Failed to start LSB: LAVA MultiNode 
Coordinator singleton.
Mar 27 13:46:10 debian systemd[1]: Unit lava-coordinator.service entered failed 
state.


root@debian:/home/neil# lava-coordinator 
Traceback (most recent call last):
  File "/usr/bin/lava-coordinator", line 27, in <module>
    import daemon.pidlockfile
  File "/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 33, in 
<module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str

Downgrade python-lockfile to the version in jessie, with no other
changes, and the bug disappears:

# apt install python-lockfile=1:0.8-2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be DOWNGRADED:
  python-lockfile
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 8,908 B of archives.
After this operation, 3,072 B disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://mirror.bytemark.co.uk/debian/ jessie/main python-lockfile all 
1:0.8-2 [8,908 B]
Fetched 8,908 B in 0s (106 kB/s)           
dpkg: warning: downgrading python-lockfile from 1:0.12.2-2~bpo8+1 to 1:0.8-2
(Reading database ... 56259 files and directories currently installed.)
Preparing to unpack .../python-lockfile_1%3a0.8-2_all.deb ...
Unpacking python-lockfile (1:0.8-2) over (1:0.12.2-2~bpo8+1) ...
Setting up python-lockfile (1:0.8-2) ...
Setting up lava-coordinator (0.1.5-3) ...
Processing triggers for python-support (1.0.15) ...

root@debian:/home/neil# service lava-coordinator status
● lava-coordinator.service - LSB: LAVA MultiNode Coordinator singleton
   Loaded: loaded (/etc/init.d/lava-coordinator)
   Active: active (running) since Mon 2017-03-27 13:49:41 BST; 4min 9s ago
  Process: 26290 ExecStart=/etc/init.d/lava-coordinator start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/lava-coordinator.service
           └─26295 /usr/bin/python /usr/bin/lava-coordinator --loglevel=DEBUG

Mar 27 13:49:41 debian lava-coordinator[26290]: Starting lava-coordinator : 
lava-coordinato.
Mar 27 13:49:41 debian systemd[1]: Started LSB: LAVA MultiNode Coordinator 
singleton.


-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-lockfile depends on:
ii  python          2.7.9-1
ii  python-support  1.0.15

python-lockfile recommends no packages.

python-lockfile suggests no packages.

-- no debconf information



-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: pgpdalEPnES4f.pgp
Description: OpenPGP digital signature

Reply via email to