* bug#49979: Duplicity BackendException: No module named 'paramiko'
@ 2021-08-10 10:15 Cayetano Santos
2021-08-10 22:28 ` Leo Famulari
0 siblings, 1 reply; 5+ messages in thread
From: Cayetano Santos @ 2021-08-10 10:15 UTC (permalink / raw)
To: 49979
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49979: Duplicity BackendException: No module named 'paramiko'
2021-08-10 10:15 bug#49979: Duplicity BackendException: No module named 'paramiko' Cayetano Santos
@ 2021-08-10 22:28 ` Leo Famulari
2021-08-11 9:49 ` Cayetano Santos
0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2021-08-10 22:28 UTC (permalink / raw)
To: Cayetano Santos; +Cc: 49979
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49979: Duplicity BackendException: No module named 'paramiko'
2021-08-10 22:28 ` Leo Famulari
@ 2021-08-11 9:49 ` Cayetano Santos
2021-08-11 16:25 ` Leo Famulari
0 siblings, 1 reply; 5+ messages in thread
From: Cayetano Santos @ 2021-08-11 9:49 UTC (permalink / raw)
To: Leo Famulari; +Cc: 49979, Cayetano Santos
>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@sftp.server/dummy_backup
you’ll get a
BackendException: Could not initialize backend: No module named
'paramiko'
message.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49979: Duplicity BackendException: No module named 'paramiko'
2021-08-11 9:49 ` Cayetano Santos
@ 2021-08-11 16:25 ` Leo Famulari
2021-08-11 18:22 ` Cayetano Santos
0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2021-08-11 16:25 UTC (permalink / raw)
To: Cayetano Santos; +Cc: 49979-done
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@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@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49979: Duplicity BackendException: No module named 'paramiko'
2021-08-11 16:25 ` Leo Famulari
@ 2021-08-11 18:22 ` Cayetano Santos
0 siblings, 0 replies; 5+ messages in thread
From: Cayetano Santos @ 2021-08-11 18:22 UTC (permalink / raw)
To: Leo Famulari; +Cc: 49979-done
>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@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@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 !
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-11 18:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 10:15 bug#49979: Duplicity BackendException: No module named 'paramiko' Cayetano Santos
2021-08-10 22:28 ` Leo Famulari
2021-08-11 9:49 ` Cayetano Santos
2021-08-11 16:25 ` Leo Famulari
2021-08-11 18:22 ` Cayetano Santos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.