Skip to content

Dependency on "decorator" package not captured in v3.0.x #2263

Description

@lrbison

When installing fabric in a fresh venv, Connection cannot be imported:

pip install 'fabric<3.0.0'
python -c 'from fabric import Connection'

The above works. But starting with 3.0.0, (including the recent 3.0.1):

pip install 'fabric>=3.0.0'
python -c 'from fabric import Connection'
Traceback (most recent call last):
  File "/home/lrbison/venvC/lib64/python3.7/site-packages/fabric/connection.py", line 7, in <module>
    from invoke.vendor.decorator import decorator
ModuleNotFoundError: No module named 'invoke.vendor.decorator'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/lrbison/venvC/lib64/python3.7/site-packages/fabric/__init__.py", line 3, in <module>
    from .connection import Config, Connection
  File "/home/lrbison/venvC/lib64/python3.7/site-packages/fabric/connection.py", line 9, in <module>
    from decorator import decorator
ModuleNotFoundError: No module named 'decorator'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions