Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric on Oracle Linux 6.5 fails with "pkg_resources.DistributionNotFound: paramiko>=1.10"

When I run fab it appears to fail on a paramiko dependency:

Traceback (most recent call last):
  File "/usr/bin/fab", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: paramiko>=1.10

I'm running 64bit Oracle Linux 6.5 (equivalent to RHEL 6.5 or CentOS 6.5). I installed Fabric using pip install fabric and pip installed:

  • paramiko (1.14.0)
  • ecdsa (0.11)
  • Fabric (1.9.0)
  • pycrypto (2.6.1)

Since 1.14 > 1.10, I don't get why I'd be failing the dependency. Is this a bug in Fabric 1.9.0?

like image 622
gary.pullis Avatar asked Jun 23 '14 18:06

gary.pullis


2 Answers

I had the same issue. I resolved by uninstalling fabric and reinstalling 1.8.1:

sudo pip uninstall fabric
sudo pip install fabric==1.8.1
like image 150
steadweb Avatar answered Oct 24 '22 19:10

steadweb


I resolved it by uninstalling fabric and paramiko, reinstalling paramiko 1.10 and then installing fabric

sudo pip uninstall fabric paramiko
sudo pip install paramiko==1.10
sudo pip install fabric

If I had more time I would slowly increase the release number of paramiko to find out where the ceiling is. I'm guessing 1.13 because this appears to be a known bug.

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

The latest paramiko is later than 1.13 in the fix and therefore causes an error?

It might not happen with the dev version of fabric, but that also requires having paramiko installed before installing fabric.

like image 42
carlynorama Avatar answered Oct 24 '22 18:10

carlynorama