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

--- 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

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 added 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
@alibner
Copy link

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

svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this issue Jan 10, 2024
- 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
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

No branches or pull requests

3 participants