#1142381 fabric: invoke 3.0 leads to TypeError

Package:
fabric
Source:
fabric
Submitter:
Hefee
Date:
2026-08-11 14:53:01 UTC
Severity:
normal
Tags:
#1142381#5
Date:
2026-07-18 23:25:48 UTC
From:
To:
Hey,

python3-invoke 3.0 is not compatible with fabric. As woraround please
update the dependencies.

With python3-invoke 3.0.3+ds-1:

% fab -H server createCsv
Traceback (most recent call last):
  File "/usr/bin/fab", line 33, in <module>
    sys.exit(load_entry_point('fabric==3.2.2', 'console_scripts', 'fab')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/invoke/program.py", line 398, in run
    self.execute()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/invoke/program.py", line 583, in execute
    executor.execute(*self.tasks)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/invoke/executor.py", line 141, in execute
    context = call.make_context(config, core_parse_result=self.core)
TypeError: ConnectionCall.make_context() got an unexpected keyword argument 'core_parse_result'

Downgrade to python3-invoke 2.2.0-2 resolves the issue. As workaround
until upstream fixed that -  please update the dependencies against
python3-invoke << 3.0 to have a working fabric.

Regards,

hefee

#1142381#10
Date:
2026-07-21 09:38:26 UTC
From:
To:
That won't achieve anything useful.  It will just make fabric
uninstallable and unable to migrate to testing, which would itself be an
RC bug.

While this has been fixed upstream
(https://github.com/fabric/fabric/commit/7fa309db9dd5dac69079c1fb83b6f579555f7d53),
apparently it's "(technically) backwards incompatible"
(https://github.com/fabric/fabric/commit/63f3d9bdadb7bd2c0b9eb67434a6237261e658f8).
I'm not sure what's best for Debian to do here.  Ideally we wouldn't
have upgraded to the new invoke until fabric had a matching release.
It's unfortunate that python-invoke made it to testing despite this; I
guess that's because fabric currently lacks autopkgtests.

CCing bdrung, who uploaded the new python-invoke.

#1142381#15
Date:
2026-07-21 10:51:44 UTC
From:
To:
That's very unfortunately. After looking at the fabric upstream repo I
think the best way forward is:

* package the upstream git main branch as 4.0.0~git$date
* run the upstream tests during build and as autopkgtest to avoid this
(invoke migrating and breaking fabric) to happen again

What do you think?

#1142381#20
Date:
2026-07-21 11:39:11 UTC
From:
To:
Maybe we should consult with upstream (CCed) before doing that.  I
notice that there haven't been any changes to git in a few months; is
there a plan for a 4.0 release soon?

(Another possibility would be to revert python-invoke to 2.x in Debian
for now, I guess.)

Thanks,

#1142381#29
Date:
2026-08-11 13:12:59 UTC
From:
To:
Another possibility, which I will embark on now, is to ship the fix as a
patch in the Debian package directly. A colleague tested it locally and
it seems to Work Fine, so I'm confident this will fix the issue.

The only problem now as I just uploaded 3.2.3 which tweaks the
dependencies to conflict with invoke 3.x, which would have been a fine
idea a while ago as it would have kept users from upgrading to invoke by
mistake, but now will make things more complicated. I will figure this
out.

This is also filed upstream in:

https://github.com/fabric/fabric/issues/2376

I have removed Jeff from CCs. He's granted me maintainer access on the
GitHub repo and I'm trying to reduce noise in his mailbox. I've opened
up a thread about that with him privately and I'm confident I will get a
response within a couple weeks which I will relay here.

A.

#1142381#34
Date:
2026-08-11 14:51:32 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
fabric, 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 1142381@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antoine Beaupré <anarcat@debian.org> (supplier of updated fabric 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: Tue, 11 Aug 2026 10:07:12 -0400
Source: fabric
Architecture: source
Version: 3.2.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Antoine Beaupré <anarcat@debian.org>
Closes: 1142381
Changes:
 fabric (3.2.3-2) unstable; urgency=medium
 .
   * Team upload.
   * add patch to fix compatibility with invoke 3.x (Closes: #1142381)
Checksums-Sha1:
 f7aa16f2380d18da01f444622848af5ac4a84a9d 1518 fabric_3.2.3-2.dsc
 eb8b922db845c7ccd3416eae70b74c4a13f00c7d 9652 fabric_3.2.3-2.debian.tar.xz
 1461c64fc59236d689a3f6a55e4ea55631e9401a 7814 fabric_3.2.3-2_amd64.buildinfo
Checksums-Sha256:
 b4d51e8bbd878375bc0ff8976a2ef075e2c5d2115accde6f0a41e4dbf7e45ba7 1518 fabric_3.2.3-2.dsc
 8c8ff7d34b58488161822b8b9103a3f0f08f79ff509358059cf58ed2a919b7bc 9652 fabric_3.2.3-2.debian.tar.xz
 9f8929b9da7cc85a2c94b2305026be011d5c78dd3d78d39cbb485901b11a53c7 7814 fabric_3.2.3-2_amd64.buildinfo
Files:
 09fbc0a4f9b33389778e2d7c639f5878 1518 net optional fabric_3.2.3-2.dsc
 af437b2063e46b0daeecdd1981455bbf 9652 net optional fabric_3.2.3-2.debian.tar.xz
 9e79dc8ecd11d6a87a36bdcb3b166943 7814 net optional fabric_3.2.3-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS7ts1MmNdOE1inUqYCKTpvpOU0cwUCansyWwAKCRACKTpvpOU0
czrdAP0aiRnsLZtQcN2EgQIheVKMwF5uTq6iIt+uJoxzIlm8rwEAvIFRiabpxBt7
YXsUQuJs1feyEBT29h/5c11SHNXUDQA=
=0dH8
-----END PGP SIGNATURE-----