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

gary.pullis picture gary.pullis · Jun 23, 2014 · Viewed 9k times · Source

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?

Answer

steadweb picture steadweb · Jun 24, 2014

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