#1002675 hubic backend: init fails with a type error

Package:
duplicity
Source:
duplicity
Description:
encrypted bandwidth-efficient backup
Submitter:
BertrandB21
Date:
2022-01-19 11:33:06 UTC
Severity:
normal
#1002675#5
Date:
2021-10-15 17:32:11 UTC
From:
To:
Dear Maintainer,

Since the change of stable version i gopt an error on duplicty,
I try wiht last version of pyrax

the error :
File "/usr/lib/python3/dist-packages/duplicity/backends/pyrax_identity/hubic.py", line 35, in <module>
    class HubicIdentity(BaseIdentity):
 NameError: name 'BaseIdentity' is not defined

#1002675#10
Date:
2021-10-16 19:35:53 UTC
From:
To:
This bug has been fixed in f9b5d595322c0f3463cdf6fb2cf168a259b738a9 which
will be released with 0.8,21.

fix:dev:Fixed Catch-22 in pyrax_identity.hubic.  Debian bug #996577

Name error on backend HubiC (Baseidentity).  Cannot avoid importing
pyrax since HubicIdentity requires pyrax.base_identity.BaseIdentity.

#1002675#15
Date:
2021-10-16 19:35:53 UTC
From:
To:
This bug has been fixed in f9b5d595322c0f3463cdf6fb2cf168a259b738a9 which
will be released with 0.8,21.

fix:dev:Fixed Catch-22 in pyrax_identity.hubic.  Debian bug #996577

Name error on backend HubiC (Baseidentity).  Cannot avoid importing
pyrax since HubicIdentity requires pyrax.base_identity.BaseIdentity.

#1002675#20
Date:
2021-12-25 07:33:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
duplicity, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 996577@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Zangerl <az@debian.org> (supplier of updated duplicity package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 25 Dec 2021 16:04:16 +1000
Source: duplicity
Architecture: source
Version: 0.8.21-1
Distribution: unstable
Urgency: medium
Maintainer: Alexander Zangerl <az@debian.org>
Changed-By: Alexander Zangerl <az@debian.org>
Closes: 605878 677215 862005 996577
Changes:
 duplicity (0.8.21-1) unstable; urgency=medium
 .
   * new upstream release (closes: #996577, #677215, #605878, #862005)
     debhelper compat updated, ditto standards version
Checksums-Sha1:
 61e99177789ff86337f7f6602b395ae1266d96f0 2085 duplicity_0.8.21-1.dsc
 2703806f1397a132b7de7eb365c7d79a32efd0f3 1375469 duplicity_0.8.21.orig.tar.gz
 9c1b3952d8bff5c2cf3d8fe2290ef1abf0e88dc0 15868 duplicity_0.8.21-1.debian.tar.xz
 420db366ba62e2e86f3e09dc598ebb0575ed602c 11003 duplicity_0.8.21-1_amd64.buildinfo
Checksums-Sha256:
 2b005e4f095fe8a9e9071157536c8ae64fb60ec72f7e745d2700c43695dbd2d6 2085 duplicity_0.8.21-1.dsc
 57fea6764674718cd6f6d499e6de92c973ba4f5e74dd94fc5e644713355ca451 1375469 duplicity_0.8.21.orig.tar.gz
 51dc04ba05c8606e53b73d76267ef7fefd626d667e0ca3f5beb9135014953a5d 15868 duplicity_0.8.21-1.debian.tar.xz
 f746a43c0577462cad0c397da1c877c578aec7fd4079c40ab27c9f8ccef8d684 11003 duplicity_0.8.21-1_amd64.buildinfo
Files:
 43f29f44bb3c24ac970b1692bb6db4de 2085 utils optional duplicity_0.8.21-1.dsc
 5227dd503c251d8b678ea663b759cb98 1375469 utils optional duplicity_0.8.21.orig.tar.gz
 924d994ac387df69d6ed8cddc5b80519 15868 utils optional duplicity_0.8.21-1.debian.tar.xz
 b010edab19b8a5e644635c710910f949 11003 utils optional duplicity_0.8.21-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJhxsW8AAoJED06g4g30PqNu2QP/A0irnka8Ql19slOPimc0RDS
0Vnw+ZQOMkHltPxm4g2DobZ6qF3UrIPiUEjuLkVtKl81yHo/90Fx3yKU3JV4Bpd4
8knLL8nNJiSO0tO2sqyWutESCMozK0E2bG85Kn+43Gn6EwhxcZkz+jFoY0pfUZ+Q
DYTQd55xSKd4BZt0dFmczY7SXtMh6A+k1UkU9xEtpNUmiMt1OEO9BkFBQDawdmIZ
SsS571ipFay1opW6f8Q1FJmaw2X1wn2wdSSj4/hYHEf6eFc0O5xUfGm8c47xVvp8
toz9ws3dLdEYel4oAgCtWkrrU6RXAPmHB/4+qshK9yBka6x3munmXycLgdvLaEe9
uPEFyrcHJZQ8PHZDZ7iTjukj+gwl0fyH2Yxpi6UotyhNs4AU6Nnhxwkt6OOU+IVQ
PbZTwxuMQPtjcpvQFF/CoUsTDcX5KXjed2vQ53LhFwBnDUHiAZG6P32qWKa5veap
BIZLR6gL179tcomm/EYyAoWKgqCv+P78FH1kw9alVAxhqJ0ydrCJ8/PBm6zLtkVq
kh+gJGcGCatGTQkrbZXJxgbY22C844SvlBOSphjphq0zJ0zw76ecnqQgg1TNgjnz
5rnskcut5iUxiqkXTx1xKfi4v+LmEYOVdi+P6JeU6DEWJetx7Isf4XOqBijwdf0U
RoAov866vLk2G3Z861gE
=c5pk
-----END PGP SIGNATURE-----

#1002675#25
Date:
2021-12-26 15:53:12 UTC
From:
To:
Hello,

I've just installed duplicity (0.8.21-1) from unstable repository. This
solves the 'BaseIdentity' bug.

Unfortunately, the hubic backend does not seem to work yet. I now get
the following error:

Connection failed, please check your credentials: TypeError __init__()
got an unexpected keyword argument 'username'

Thanks.

Fabrice.

On Sat, 25 Dec 2021 07:33:42 +0000 Debian FTP Masters  <ftpmaster@ftp-master.debian.org> wrote:

 > Source: duplicity
 > Source-Version: 0.8.21-1
 > Done: Alexander Zangerl <az@debian.org>
 >
 > We believe that the bug you reported is fixed in the latest version of
 > duplicity, which is due to be installed in the Debian FTP archive.
 >
 > A summary of the changes between this version and the previous one is
 > attached.
 >
 > Thank you for reporting the bug, which will now be closed. If you
 > have further comments please address them to 996577@bugs.debian.org,
 > and the maintainer will reopen the bug report if appropriate.
 >
 > Debian distribution maintenance software
 > pp.
 > Alexander Zangerl <az@debian.org> (supplier of updated duplicity package)
 >
 > (This message was generated automatically at their request; if you
 > believe that there is a problem with it please contact the archive
 > administrators by mailing ftpmaster@ftp-master.debian.org)
 >
 >
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA512
 >
 > Format: 1.8
 > Date: Sat, 25 Dec 2021 16:04:16 +1000
 > Source: duplicity
 > Architecture: source
 > Version: 0.8.21-1
 > Distribution: unstable
 > Urgency: medium
 > Maintainer: Alexander Zangerl <az@debian.org>
 > Changed-By: Alexander Zangerl <az@debian.org>
 > Closes: 605878 677215 862005 996577
 > Changes:
 > duplicity (0.8.21-1) unstable; urgency=medium
 > .
 > * new upstream release (closes: #996577, #677215, #605878, #862005)
 > debhelper compat updated, ditto standards version
 > Checksums-Sha1:
 > 61e99177789ff86337f7f6602b395ae1266d96f0 2085 duplicity_0.8.21-1.dsc
 > 2703806f1397a132b7de7eb365c7d79a32efd0f3 1375469
duplicity_0.8.21.orig.tar.gz
 > 9c1b3952d8bff5c2cf3d8fe2290ef1abf0e88dc0 15868
duplicity_0.8.21-1.debian.tar.xz
 > 420db366ba62e2e86f3e09dc598ebb0575ed602c 11003
duplicity_0.8.21-1_amd64.buildinfo
 > Checksums-Sha256:
 > 2b005e4f095fe8a9e9071157536c8ae64fb60ec72f7e745d2700c43695dbd2d6 2085
duplicity_0.8.21-1.dsc
 > 57fea6764674718cd6f6d499e6de92c973ba4f5e74dd94fc5e644713355ca451
1375469 duplicity_0.8.21.orig.tar.gz
 > 51dc04ba05c8606e53b73d76267ef7fefd626d667e0ca3f5beb9135014953a5d
15868 duplicity_0.8.21-1.debian.tar.xz
 > f746a43c0577462cad0c397da1c877c578aec7fd4079c40ab27c9f8ccef8d684
11003 duplicity_0.8.21-1_amd64.buildinfo
 > Files:
 > 43f29f44bb3c24ac970b1692bb6db4de 2085 utils optional
duplicity_0.8.21-1.dsc
 > 5227dd503c251d8b678ea663b759cb98 1375469 utils optional
duplicity_0.8.21.orig.tar.gz
 > 924d994ac387df69d6ed8cddc5b80519 15868 utils optional
duplicity_0.8.21-1.debian.tar.xz
 > b010edab19b8a5e644635c710910f949 11003 utils optional
duplicity_0.8.21-1_amd64.buildinfo
 >
 > -----BEGIN PGP SIGNATURE-----
 >
 > iQIcBAEBCgAGBQJhxsW8AAoJED06g4g30PqNu2QP/A0irnka8Ql19slOPimc0RDS

#1002675#30
Date:
2021-12-27 04:18:35 UTC
From:
To:
clone 996577 -1
retitle -1 hubic backend: init fails with a type error
thanks

On Sun, 26 Dec 2021 16:53:12 +0100, Fabrice Lamareille writes:

i'll forward your new bug report upstream, but don't hold your breath:
the hubic service seems to be mostly if not quite entirely dead for
multiple years now, so interest in supporting that is not likely to be high.

#1002675#45
Date:
2021-12-30 05:10:31 UTC
From:
To:
fabrice, upstream has reported that the problem you're encountering
is pretty much certainly not coming from duplicity but pyrax - which is
deprecated and no longer being maintained.

upstream requests the log of a duplicity run with full -v9 logging/debugging
on in order to track this down any further. if you can provide such a log
the chances of getting this sorted out will rise a bit.

regards
az

#1002675#50
Date:
2022-01-01 13:33:58 UTC
From:
To:
Hello,

Firstly, the type error can be solved by doing this:

change in hubic.py in class HubicIdentity

def __init__(self)
by
def __init__(self, **kwargs)

However, the connection still fails with the following error:

Connection failed, please check your credentials: TypeError a bytes-like
object is required, not 'str'

The full v9 log is not unfortunattly quite helpful ! Here is the output:

$ duplicity -v9  status cf+hubic://owncloud
Using archive dir:
/data1/hubic/.cache/duplicity/ddc194b0289be77f5dd06ec911d17a78
Using backup name: ddc194b0289be77f5dd06ec911d17a78
GPG binary is gpg, version (2, 2, 27)
Import of duplicity.backends.adbackend Succeeded
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.b2backend Succeeded
Import of duplicity.backends.boxbackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.gdrivebackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.idrivedbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.jottacloudbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.mediafirebackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.megav2backend Succeeded
Import of duplicity.backends.megav3backend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pcabackend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rclonebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.s3_boto3_backend Succeeded
Import of duplicity.backends.s3_boto_backend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Connection failed, please check your credentials: TypeError a bytes-like
object is required, not 'str'
Using temporary directory /tmp/duplicity-xwljyau7-tempdir

Do you know how to get a more useful debug output (i.e. with the
detailed python error and line numbers) ?

Thanks.

#1002675#55
Date:
2022-01-19 09:01:34 UTC
From:
To:
Dear all,

I'll be more than happy to solve this bug by myself, provided that I
knew how to get the relevant informations, i.e. the file and the line
number where the error comes from.

Unfortunately, the duplicity -v9 command does not give me what I am
expecting (see output below).

What am I doing wrong ?

Thanks in advance for your help.

Output of duplicity -v9:

GPG binary is gpg, version (2, 2, 27)
Import of duplicity.backends.adbackend Succeeded
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.b2backend Succeeded
Import of duplicity.backends.boxbackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.gdrivebackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.idrivedbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.jottacloudbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.mediafirebackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.megav2backend Succeeded
Import of duplicity.backends.megav3backend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pcabackend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rclonebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.s3_boto3_backend Succeeded
Import of duplicity.backends.s3_boto_backend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Connection failed, please check your credentials: TypeError a bytes-like
object is required, not 'str'

Le 30/12/2021 à 06:10, Alexander Zangerl a écrit :