FS#76888 - [fabric] missing dependency: python-decorator

Attached to Project: Community Packages
Opened by Thomas Jost (Schnouki) - Tuesday, 20 December 2022, 15:02 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 21 December 2022, 11:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



With the latest available version of the fabric package, the fab command fails immediately because of a missing dependency on the decorator module:

❯ fab
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/fabric/connection.py", line 5, in <module>
from invoke.vendor.six import StringIO
ModuleNotFoundError: No module named 'invoke.vendor'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/fab", line 5, in <module>
from fabric.main import program
File "/usr/lib/python3.10/site-packages/fabric/__init__.py", line 3, in <module>
from .connection import Config, Connection
File "/usr/lib/python3.10/site-packages/fabric/connection.py", line 10, in <module>
from decorator import decorator
ModuleNotFoundError: No module named 'decorator'

Installing python-decorator fixes this.

This is most likely caused by the python-invoke "devendoring" Invoke dependencies: https://github.com/archlinux/svntogit-community/blob/08d8907ddf487ba25dd59b44c7c2b5e9b35cc1c2/trunk/PKGBUILD#L20. So, not sure exactly where the bug is (fabric or python-invoke).

Additional info:
* fabric 2.7.1-1
* python-invoke 1.7.3-1
* python-decorator 5.1.1-2

Steps to reproduce:
* install fabric
* try to run `fab`: it fails
* install python-decorator
* retry to run `fab`: it works
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Wednesday, 21 December 2022, 11:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  fabric-2.7.1-2
Comment by Toolybird (Toolybird) - Wednesday, 21 December 2022, 05:51 GMT
Related  FS#71918