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
py2.7.5 fab error: ImportError: cannot import name NetworkError #1821
Comments
no one can answer me? |
Hi @neemxyang - there isn't really enough information to go on. It looks like you're using Fabric 1, and there's nothing that would indicate why those imports fail. My suggestion would be uninstall and reinstall Fabric into your environment and see if that fixes the issue. If that doesn't work, try creating a fresh virtual environment and installing Fabric into that. |
Fabric-2.x does support Python 2.7, it's just that Fabric-1.x does not support Python 3 The error originally posted here, on its own, seems impossible. Maybe there's a very serious pip install or python path problem such that fabric is not really installed. We'd need much more information to be able to provide any help at all. |
Thanks - I've been working on a few packages that have dropped Python 2 support and forgot that Fabric was not the one of them. |
I'm just that slow, only adding 3 around when others start to drop 2 😂 Also, yea I don't get this error, either the package is installed incorrectly (the usual cause of import errors like this - setuptools causing a problem) or one is trying to follow version 1 docs with version 2 installed. |
** from fabric.exceptions import NetworkError I solve it by removing fabric inside my virtualenv and installing fabric3:
|
File "/usr/lib/python2.7/site-packages/fabric/network.py", line 16, in
from fabric.exceptions import NetworkError
ImportError: cannot import name NetworkError
what can I do?
The text was updated successfully, but these errors were encountered: