Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'six' from 'invoke.vendor' #41

Open
nmgeek opened this issue Aug 14, 2020 · 3 comments · May be fixed by #46
Open

cannot import name 'six' from 'invoke.vendor' #41

nmgeek opened this issue Aug 14, 2020 · 3 comments · May be fixed by #46

Comments

@nmgeek
Copy link

nmgeek commented Aug 14, 2020

>>> import patchwork._version
>>> patchwork._version.__version__
'1.0.1'
>>> import invoke
>>> invoke.__version__
'1.3.0'
>>> import patchwork.files
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/patchwork/files.py", line 7, in <module>
    from invoke.vendor import six
ImportError: cannot import name 'six' from 'invoke.vendor' (/usr/lib/python3/dist-packages/invoke/vendor/__init__.py)

@tasosalvas
Copy link

works for me on invoke 1.4.1

@nmgeek
Copy link
Author

nmgeek commented Aug 14, 2020

Indeed it does work.

So the dependent package requirements are wrong in pathwork 1.0.1. It should not be satisfied with invoke version 1.3.0. It requires a later version to avoid the crash I posted above.

$ pip3 install patchwork
...
Requirement already satisfied: invoke<2.0,>=1.3 in /usr/lib/python3/dist-packages (from fabric<3.0,>=2.0->patchwork) (1.3.0)

@tasosalvas
Copy link

Fair, yeah.
I think @bitprophet might be a bit overloaded at the moment but it's a pretty straightforward PR to fix.

@LecrisUT LecrisUT linked a pull request Mar 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants