Bug 25422 - fwbackups crashes at startup with 'Please install paramiko (python-paramiko)'
Summary: fwbackups crashes at startup with 'Please install paramiko (python-paramiko)'
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: High major
Target Milestone: Mageia 7
Assignee: All Packagers
QA Contact:
Depends on:
Reported: 2019-09-10 01:33 CEST by Frédéric "LpSolit" Buclin
Modified: 2020-02-11 17:10 CET (History)
2 users (show)

See Also:
Source RPM: fwbackups-1.43.7-1.mga7.src.rpm
Status comment:


Description Frédéric "LpSolit" Buclin 2019-09-10 01:33:52 CEST
When starting fwbackups in Mageia 7, it immediately crashes:

Traceback (most recent call last):
  File "/usr/share/fwbackups/fwbackups-runapp.pyw", line 87, in <module>
    raise fwbackups.fwbackupsError(_('Please install paramiko (python-paramiko)'))
fwbackupsError: u"Please install paramiko (python-paramiko)"

But trying to install python-paramiko-2.4.2-2 conflicts with the already installed python-paramiko-2.6.0-1.

Should fwbackups be recompiled to work with paramiko 2.6.0? fwbackups was working fine in Mageia 6. (pretty severe regression as I can no longer backup my system using it.)
Comment 1 Lewis Smith 2019-09-10 21:15:06 CEST
This is curious. I did not have python-paramiko, so installed it - and it came in as 'python-paramiko-2.4.2-2.mga7', which is what is required.
 # urpmq -i python-paramiko
Name        : python-paramiko
Version     : 2.4.2
Release     : 2.mga7

Do you know how you got your 'python-paramiko-2.6.0-1' Frédéric?

 # urpmi --test fwbackups
    $MIRRORLIST: media/core/release/fwbackups-1.43.7-1.mga7.noarch.rpm
wrthi'n gosod fwbackups-1.43.7-1.mga7.noarch.rpm o /var/cache/urpmi/rpms       
Wrthi'n paratoi...               #############################################
Gellir gosod                     = It can be installed
So I suggest re-installing python-paramiko, either:
- If possible, UNinstall the version 2.6.0-1 (but this might take all sorts of other things with it):
 # urpmi -e python-paramiko              [or try first with --test parameter]
then re-install it - and check the version.
- # urpmi --downgrade python-paramiko
and see what version you get. If it is 2.4.2-2, good; if it is older, then you would have to update the system to bring it to this version. fwbackups should then be happy.

Whiteboard: (none) => NEEDINFO
CC: (none) => lewyssmith

Comment 2 Frédéric "LpSolit" Buclin 2019-09-10 21:54:20 CEST
(In reply to Lewis Smith from comment #1)
> Do you know how you got your 'python-paramiko-2.6.0-1' Frédéric?

Probably because bug 25094 updated python-paramiko from 2.4.2 to 2.6.0 one month ago and renamed it to python2-paramiko? See https://advisories.mageia.org/MGAA-2019-0092.html for the advisory.

I do not want to downgrade it, for the reasons described in the advisory. So I think the right fix is to recompile fwbackups to work with the newer version of python-paramiko, and fix the dependency, if needed.

Whiteboard: NEEDINFO => (none)

Comment 3 Lewis Smith 2019-09-11 21:10:26 CEST
Thank you for your explanation.

By chance, I have just been fed the update of python-paramiko to
Re-naming packages like this is confusing; but it has certainly replaced
although the advisory made no mention of the name change.
For the record:
 $ urpmq --whatrequires-recursive python-paramiko
 $ urpmq --whatrequires-recursive python2-paramiko
 $ urpmq --requires fwbackups
 $ urpmq --requires-recursive fwbackups

Have to assign globally for fwbackups; CC'ing philippem for python-paramiko.

Assignee: bugsquad => pkg-bugs
CC: lewyssmith => makowski.mageia

Comment 4 Frédéric "LpSolit" Buclin 2020-01-30 23:32:02 CET
Any news on this? I still cannot do backups due to this issue.
Comment 5 David GEIGER 2020-01-31 07:16:30 CET
I tried to rebuild it locally but it doesn't fix anything :(

Also fwbackups is a dead project and we have dropped it on Cauldron as it is not ported to python3.

CC: (none) => geiger.david68210

Comment 6 David GEIGER 2020-01-31 07:18:54 CET
The real issue is not about paramiko not installed but it is:

$ fwbackups

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 120, in _join_lingering_threads
    for thr in _active_threads:
TypeError: 'NoneType' object is not iterable
Error in sys.exitfunc:
<type 'exceptions.TypeError'>: 'NoneType' object is not iterable
Comment 7 Frédéric "LpSolit" Buclin 2020-02-11 17:10:41 CET
(In reply to David GEIGER from comment #5)
> Also fwbackups is a dead project and we have dropped it on Cauldron as it is
> not ported to python3.

It has been replaced by which alternatives?

Note You need to log in before you can comment on or make changes to this bug.