GNU bug report logs - #49979
Duplicity BackendException: No module named 'paramiko'

Previous Next

Package: guix;

Reported by: csantosb <at> inventati.org

Date: Tue, 10 Aug 2021 14:49:01 UTC

Severity: normal

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49979 in the body.
You can then email your comments to 49979 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#49979; Package guix. (Tue, 10 Aug 2021 14:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to csantosb <at> inventati.org:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 10 Aug 2021 14:49:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Cayetano Santos <cayetano.santos <at> inventati.org>
To: bug-guix <at> gnu.org
Subject: Duplicity BackendException: No module named 'paramiko'
Date: Tue, 10 Aug 2021 12:15:44 +0200
Context:

Using guix as a package manager under a foreign up to date 
archlinux distribution.

The output of guix describe --format=channels is

   https://gitlab.com/csantosb/wikidata/-/blob/master/guix-profiles-backup/guix-channels.scm


Problem:

When using duplicity to backup to a sftp server, I get this error 
message

   BackendException: Could not initialize backend: No module 
   named 'paramiko'

I have installed python-paramiko, but this doesn't fixes the 
problem.




Information forwarded to bug-guix <at> gnu.org:
bug#49979; Package guix. (Tue, 10 Aug 2021 22:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 49979 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Cayetano Santos <cayetano.santos <at> inventati.org>
Cc: 49979 <at> debbugs.gnu.org
Subject: Re: bug#49979: Duplicity BackendException: No module named 'paramiko'
Date: Tue, 10 Aug 2021 18:28:54 -0400
On Tue, Aug 10, 2021 at 12:15:44PM +0200, Cayetano Santos wrote:
> 
> Context:
> 
> Using guix as a package manager under a foreign up to date archlinux
> distribution.
> 
> The output of guix describe --format=channels is
> 
>    https://gitlab.com/csantosb/wikidata/-/blob/master/guix-profiles-backup/guix-channels.scm
> 
> 
> Problem:
> 
> When using duplicity to backup to a sftp server, I get this error message
> 
>    BackendException: Could not initialize backend: No module    named
> 'paramiko'
> 
> I have installed python-paramiko, but this doesn't fixes the problem.

I don't use Duplicity. Can you give instructions to reproduce this?

It's likely that paramiko needs to be added as a dependency of the
duplicity package, but we should test that first.




Information forwarded to bug-guix <at> gnu.org:
bug#49979; Package guix. (Wed, 11 Aug 2021 11:41:05 GMT) Full text and rfc822 format available.

Message #11 received at 49979 <at> debbugs.gnu.org (full text, mbox):

From: Cayetano Santos <csantosb <at> inventati.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 49979 <at> debbugs.gnu.org, Cayetano Santos <csantosb <at> inventati.org>
Subject: Re: bug#49979: Duplicity BackendException: No module named 'paramiko'
Date: Wed, 11 Aug 2021 11:49:01 +0200

>mer. 11 août 2021 at 00:28, Leo Famulari ...

> On Tue, Aug 10, 2021 at 12:15:44PM +0200, Cayetano Santos wrote:
>>
>> Context:
>>
>> Using guix as a package manager under a foreign up to date 
>> archlinux
>> distribution.
>>
>> The output of guix describe --format=channels is
>>
>>    https://gitlab.com/csantosb/wikidata/-/blob/master/guix-profiles-backup/guix-channels.scm
>>
>>
>> Problem:
>>
>> When using duplicity to backup to a sftp server, I get this 
>> error message
>>
>>    BackendException: Could not initialize backend: No module 
>>    named
>> 'paramiko'
>>
>> I have installed python-paramiko, but this doesn't fixes the 
>> problem.
>
> I don't use Duplicity. Can you give instructions to reproduce 
> this?
>
> It's likely that paramiko needs to be added as a dependency of 
> the
> duplicity package, but we should test that first.

Sure. Just issue a

   guix install duplicity

and then

   duplicity /tmp sftp://dummy_user <at> sftp.server/dummy_backup

you’ll get a

BackendException: Could not initialize backend: No module named 
'paramiko'

message.




Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Wed, 11 Aug 2021 16:26:02 GMT) Full text and rfc822 format available.

Notification sent to csantosb <at> inventati.org:
bug acknowledged by developer. (Wed, 11 Aug 2021 16:26:02 GMT) Full text and rfc822 format available.

Message #16 received at 49979-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Cayetano Santos <csantosb <at> inventati.org>
Cc: 49979-done <at> debbugs.gnu.org
Subject: Re: bug#49979: Duplicity BackendException: No module named 'paramiko'
Date: Wed, 11 Aug 2021 12:25:17 -0400
On Wed, Aug 11, 2021 at 11:49:01AM +0200, Cayetano Santos wrote:
> Sure. Just issue a
> 
>    guix install duplicity
> 
> and then
> 
>    duplicity /tmp sftp://dummy_user <at> sftp.server/dummy_backup
> 
> you’ll get a
> 
> BackendException: Could not initialize backend: No module named 'paramiko'

> message.

Thanks! I tested by adding python-paramiko to native-inputs [0], changed
the dummy values to something meaningful, and tried your command:

------
$ duplicity /tmp sftp://leo <at> domain/dummy_backup 
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
GnuPG passphrase for decryption: %    
------

I didn't go past that point but it seems to fix the specific bug you
reported. So, I pushed the change:

https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b1c97ff60b8ac8205d878fec3af8d02ffdf601fe

You can do `guix pull --commit=b1c97ff60b8 && guix package --upgrade=duplicity`
to get the new version of the package.

[0] It's unusual for run-time dependencies like paramiko to be a
native-input. Typically, native-inputs are just build-time dependencies.
Maybe there is some room for improvement in our Duplicity package...

https://guix.gnu.org/manual/en/html_node/package-Reference.html




Information forwarded to bug-guix <at> gnu.org:
bug#49979; Package guix. (Wed, 11 Aug 2021 18:47:02 GMT) Full text and rfc822 format available.

Message #19 received at 49979-done <at> debbugs.gnu.org (full text, mbox):

From: Cayetano Santos <csantosb <at> inventati.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 49979-done <at> debbugs.gnu.org
Subject: Re: bug#49979: Duplicity BackendException: No module named 'paramiko'
Date: Wed, 11 Aug 2021 20:22:50 +0200

>mer. 11 août 2021 at 18:25, Leo Famulari ...

> On Wed, Aug 11, 2021 at 11:49:01AM +0200, Cayetano Santos wrote:
>> Sure. Just issue a
>>
>>    guix install duplicity
>>
>> and then
>>
>>    duplicity /tmp sftp://dummy_user <at> sftp.server/dummy_backup
>>
>> you’ll get a
>>
>> BackendException: Could not initialize backend: No module named 
>> 'paramiko'
>
>> message.
>
> Thanks! I tested by adding python-paramiko to native-inputs [0], 
> changed
> the dummy values to something meaningful, and tried your 
> command:
>
> ------
> $ duplicity /tmp sftp://leo <at> domain/dummy_backup
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: none
> GnuPG passphrase for decryption: %
> ------
>
> I didn't go past that point but it seems to fix the specific bug 
> you
> reported. So, I pushed the change:
>
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b1c97ff60b8ac8205d878fec3af8d02ffdf601fe
>
> You can do `guix pull --commit=b1c97ff60b8 && guix package 
> --upgrade=duplicity`
> to get the new version of the package.
>
> [0] It's unusual for run-time dependencies like paramiko to be a
> native-input. Typically, native-inputs are just build-time 
> dependencies.
> Maybe there is some room for improvement in our Duplicity 
> package...
>
> https://guix.gnu.org/manual/en/html_node/package-Reference.html

Fixed, thanks !




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Sep 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.