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

Accept Paramiko >=1.13 with Python >=2.6 #1105

Closed
Arfrever opened this issue Mar 25, 2014 · 2 comments
Closed

Accept Paramiko >=1.13 with Python >=2.6 #1105

Arfrever opened this issue Mar 25, 2014 · 2 comments

Comments

@Arfrever
Copy link

@Arfrever Arfrever commented Mar 25, 2014

--- setup.py
+++ setup.py
@@ -26,6 +26,11 @@ pip, with `pip install fabric==dev`.
 For more information, please see the Fabric website or execute ``fab --help``.
 """ % (get_version('branch'), readme)

+if sys.version_info[:2] < (2, 6):
+    install_requires=['paramiko>=1.10,<1.13']
+else:
+    install_requires=['paramiko>=1.10']
+
 setup(
     name='Fabric',
     version=get_version('short'),
@@ -37,7 +42,7 @@ setup(
     packages=find_packages(),
     test_suite='nose.collector',
     tests_require=['nose', 'fudge<1.0'],
-    install_requires=['paramiko>=1.10,<1.13'],
+    install_requires=install_requires,
     entry_points={
         'console_scripts': [
             'fab = fabric.main:main',
@bitprophet
Copy link
Member

@bitprophet bitprophet commented Mar 31, 2014

Thanks, can't see a good reason not to do it this way :) cheers!

bitprophet added a commit that referenced this issue Mar 31, 2014
lundberg added a commit to 5monkeys/fabric that referenced this issue Apr 7, 2014
* refs/heads/master:
  Changelog re fabric#1105, fixes fabric#1105
  Permit Paramiko >=1.13 under Python 2.6+
  Bump 1.7.3 for setup.py tweak
  Modified changelog w/o releasing...
  Update Releases requirement for needed bugfixes
  Add 1.8.3 to changelog
  Update changelog for 1.7.3

Conflicts:
	docs/changelog.rst
koobs pushed a commit to freebsd/freebsd-ports that referenced this issue Jun 13, 2014
- Update to 1.8.4 (containing fix for paramiko > 1.13)
- Tweak RUN_DEPENDS on paramiko to match version string in setup.py

Changes:

    * Enhance setup.py to allow Paramiko 1.13+ under Python 2.6+. [1]
    * Treat paths that begin with tilde "~" as absolute lute paths instead of
      relative. [2]

[1] fabric/fabric#1105
[2] fabric/fabric#898

PR:		190856
Reported by:	blackmore at pichove dot org
knu pushed a commit to idaemons/freebsd-ports that referenced this issue Jun 15, 2014
- Update to 1.8.4 (containing fix for paramiko > 1.13)
- Tweak RUN_DEPENDS on paramiko to match version string in setup.py

Changes:

    * Enhance setup.py to allow Paramiko 1.13+ under Python 2.6+. [1]
    * Treat paths that begin with tilde "~" as absolute lute paths instead of
      relative. [2]

[1] fabric/fabric#1105
[2] fabric/fabric#898

PR:		190856
Reported by:	blackmore at pichove dot org


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@357658 35697150-7ecd-e111-bb59-0022644237b5
knu pushed a commit to idaemons/freebsd-ports that referenced this issue Jun 15, 2014
- Update to 1.8.4 (containing fix for paramiko > 1.13)
- Tweak RUN_DEPENDS on paramiko to match version string in setup.py

Changes:

    * Enhance setup.py to allow Paramiko 1.13+ under Python 2.6+. [1]
    * Treat paths that begin with tilde "~" as absolute lute paths instead of
      relative. [2]

[1] fabric/fabric#1105
[2] fabric/fabric#898

PR:		190856
Reported by:	blackmore at pichove dot org


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@357658 35697150-7ecd-e111-bb59-0022644237b5
@Alibner
Copy link

@Alibner Alibner commented Jun 20, 2016

on centos6.5 system and python version is 2.6.6 ,

use pip install fabric and command is error: fab -V

[root@sde-demo fabric]# fab -V
Traceback (most recent call last):
  File "/usr/bin/fab", line 7, in <module>
    from fabric.main import main
  File "/usr/lib/python2.6/site-packages/fabric/main.py", line 20, in <module>
    from fabric import api, state, colors
  File "/usr/lib/python2.6/site-packages/fabric/api.py", line 9, in <module>
    from fabric.context_managers import (cd, hide, settings, show, path, prefix,
  File "/usr/lib/python2.6/site-packages/fabric/context_managers.py", line 41, in <module>
    from fabric.state import output, win32, connections, env
  File "/usr/lib/python2.6/site-packages/fabric/state.py", line 9, in <module>
    from fabric.network import HostConnectionCache, ssh
  File "/usr/lib/python2.6/site-packages/fabric/network.py", line 24, in <module>
    import paramiko as ssh
  File "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 62, in <module>
    from transport import SecurityOptions, Transport
  File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 33, in <module>
    from paramiko import util
  File "/usr/lib/python2.6/site-packages/paramiko/util.py", line 33, in <module>
    from paramiko.common import *
  File "/usr/lib/python2.6/site-packages/paramiko/common.py", line 98, in <module>
    from Crypto import Random
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/__init__.py", line 29, in <module>
    from Crypto.Random import _UserFriendlyRNG
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module>
    from Crypto.Random.Fortuna import FortunaAccumulator
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 39, in <module>
    import FortunaGenerator
  File "/usr/lib64/python2.6/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py", line 34, in <module>
    from Crypto.Util.number import ceil_shift, exact_log2, exact_div
  File "/usr/lib64/python2.6/site-packages/Crypto/Util/number.py", line 56, in <module>
    if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:
AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

Finally, from here I found a solution;

pip install pycrypto-on-pypi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants