Installing PyEZ from local directory

213 views
Skip to first unread message

forty2

unread,
Apr 13, 2021, 3:18:55 PM4/13/21
to Junos Python EZ
Hi all. I have to install pyez. This is at least stated as requirement to use the role Juniper.junos to run ansible commands against Juniper routers to collect information. I'm using cygwin on a windows laptop without any adminrights in a corporate network. The problem is, I cannot use the corporate proxy because of that proprietary Microsoft NTLM protocol so a simple "pip install junos-eznc" is not possible. But what I can do and what I've already done is download the software py-junos-eznc-2.5.4.tar.gz and copied it into the cygwin installation. And now I want to install it from that local download using pip but I'm failing and google doesn't return anything useful. Can anyone help? What am I supposed to do to get that installed successfully? Many thanks in advance.

Nitin Kumar

unread,
Apr 14, 2021, 2:22:46 PM4/14/21
to forty2, Junos Python EZ, Dwarakanath Yadavalli, Rahul Kumar

>>> And now I want to install it from that local download using pip but I'm failing 

 

But what is the failure?

 

Thanks

Nitin Kr

 

From: <junos-p...@googlegroups.com> on behalf of forty2 <thosw...@gmail.com>
Date: Wednesday, 14 April 2021 at 12:49 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: Installing PyEZ from local directory

 

[External Email. Be cautious of content]

 

Hi all. I have to install pyez. This is at least stated as requirement to use the role Juniper.junos to run ansible commands against Juniper routers to collect information. I'm using cygwin on a windows laptop without any adminrights in a corporate network. The problem is, I cannot use the corporate proxy because of that proprietary Microsoft NTLM protocol so a simple "pip install junos-eznc" is not possible. But what I can do and what I've already done is download the software py-junos-eznc-2.5.4.tar.gz and copied it into the cygwin installation. And now I want to install it from that local download using pip but I'm failing and google doesn't return anything useful. Can anyone help? What am I supposed to do to get that installed successfully? Many thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/0f3c64c1-0838-4c0d-b72d-6455b51410f4n%40googlegroups.com.


Juniper Business Use Only

forty2

unread,
Apr 16, 2021, 6:13:31 PM4/16/21
to Junos Python EZ
I worked out how to solve the proxy issue. In the mailing list for cygwin someone hinted me to https://github.com/genotrance/px/releases. This works very well. I tried it with cntlm (no chance to use it when ur rights are restricted to nearly nothing) and ntlmaps (used python version too old) but px is wonderful. It works. 

But I'm still facing issues when I try "pip install junos-eznc"

For some I was able to solved it by myself: 
  install missing libs
    libxml2-devel
    libxslt-devel
    libffi-devel
  and doing "pip install whell"

But now I'm overwhelmed with installing rustup to get the rust toolchain running on my cygwin. I don't succeed. I have currently no idea how to go on. Upgrading pip would have been the simplest solution. But it wasn't. pip is on the newest available level. The suggested way to install rustup didn't work out: 

$ curl https://sh.rustup.rs -sSf | bash
info: downloading installer
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
curl: (23) Failed writing body (0 != 16384)
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe /tmp/tmp.Xb9ofCb1To/rustup-init.exe x86_64-pc-windows-gnu

Shall I really try the exe for windows? That doesn't make any sense to me. 



The installation output: 

$ pip install junos-eznc
Collecting junos-eznc
  Using cached junos_eznc-2.5.4-py2.py3-none-any.whl (195 kB)
Collecting PyYAML>=5.1
  Using cached PyYAML-5.4.1-cp38-cp38-cygwin_3_2_0_x86_64.whl
Collecting jinja2>=2.7.1
  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Requirement already satisfied: six in /usr/local/lib/python3.8/site-packages (from junos-eznc) (1.15.0)
Collecting paramiko>=1.15.2
  Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB)
Collecting lxml>=3.2.4
  Using cached lxml-4.6.3.tar.gz (3.2 MB)
Collecting ncclient>=0.6.3
  Using cached ncclient-0.6.10.tar.gz (105 kB)
Collecting netaddr
  Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Collecting yamlordereddictloader
  Using cached yamlordereddictloader-0.4.0.tar.gz (3.3 kB)
Collecting pyserial
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting pyparsing
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting scp>=0.7.0
  Using cached scp-0.13.3-py2.py3-none-any.whl (8.2 kB)
Collecting transitions
  Using cached transitions-0.8.8-py2.py3-none-any.whl (82 kB)
Collecting MarkupSafe>=0.23
  Using cached MarkupSafe-1.1.1.tar.gz (19 kB)
Requirement already satisfied: setuptools>0.6 in /usr/lib/python3.8/site-packages (from ncclient>=0.6.3->junos-eznc) (51.1.1)
Collecting cryptography>=2.5
  Using cached cryptography-3.4.7.tar.gz (546 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pynacl>=1.0.1
  Using cached PyNaCl-1.4.0.tar.gz (3.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting bcrypt>=3.1.3
  Using cached bcrypt-3.2.0.tar.gz (42 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cffi>=1.1 in /usr/lib/python3.8/site-packages (from bcrypt>=3.1.3->paramiko>=1.15.2->junos-eznc) (1.14.4)
Requirement already satisfied: pycparser in /usr/lib/python3.8/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=1.15.2->junos-eznc) (2.20)
Building wheels for collected packages: lxml, MarkupSafe, ncclient, bcrypt, cryptography, pynacl, yamlordereddictloader
  Building wheel for lxml (setup.py) ... done
  Created wheel for lxml: filename=lxml-4.6.3-cp38-cp38-cygwin_3_2_0_x86_64.whl size=7617390 sha256=73811fbf1f2c69faeeec067630d9a184ec25229fc851b7d93109fec300f96719
  Stored in directory: /home/A789808/.cache/pip/wheels/d3/4b/8d/471241f6711106f3a02642e3fbd41ee7302225b502eccfa285
  Building wheel for MarkupSafe (setup.py) ... done
  Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-cp38-cp38-cygwin_3_2_0_x86_64.whl size=71511 sha256=68281c7ab7f7c6d5b132f8e59724370d94bb675b95fce0b08f1e721f17919d1c
  Stored in directory: /home/A789808/.cache/pip/wheels/0c/61/d6/4db4f4c28254856e82305fdb1f752ed7f8482e54c384d8cb0e
  Building wheel for ncclient (setup.py) ... done
  Created wheel for ncclient: filename=ncclient-0.6.10-py2.py3-none-any.whl size=83293 sha256=16f9c743ac11d2d0d72d01d662f6edb7116cca88642d829ebd4869b57e2f6ef7
  Stored in directory: /home/A789808/.cache/pip/wheels/e4/ca/00/f2f00514166732418b24bf606124e6953fbebf7182ce9d8588
  Building wheel for bcrypt (PEP 517) ... done
  Created wheel for bcrypt: filename=bcrypt-3.2.0-cp38-cp38-cygwin_3_2_0_x86_64.whl size=104672 sha256=1f364cb71717c4611e0429658f90c0c67410220b9461560b25c0fe4f55d6c1b2
  Stored in directory: /home/A789808/.cache/pip/wheels/af/42/cb/78425eb7d565a75b710a82f213c19f7100b873af40ddb372fc
  Building wheel for cryptography (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.8.exe /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp072rm6xz
       cwd: /tmp/pip-install-jda2mjzp/cryptography_e218ba3fefc04c50be92727f3fb0ced9
  Complete output (165 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.cygwin-3.2.0-x86_64-3.8
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  copying src/cryptography/exceptions.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  copying src/cryptography/fernet.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  copying src/cryptography/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  copying src/cryptography/__about__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  copying src/cryptography/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat
  copying src/cryptography/hazmat/_der.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat
  copying src/cryptography/hazmat/_oid.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat
  copying src/cryptography/hazmat/_types.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat
  copying src/cryptography/hazmat/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/base.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/certificate_transparency.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/extensions.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/general_name.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/name.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/ocsp.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/oid.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  copying src/cryptography/x509/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/x509
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends
  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends
  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings
  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/backends/openssl
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/bindings/openssl
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/ciphers
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/kdf
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/serialization
  creating build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography/hazmat/primitives/twofactor
  running egg_info
  writing src/cryptography.egg-info/PKG-INFO
  writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  writing requirements to src/cryptography.egg-info/requires.txt
  writing top-level names to src/cryptography.egg-info/top_level.txt
  adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE.APACHE' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE.BSD' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE.PSF' (matched pattern 'LICEN[CS]E*')
  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'vectors'
  warning: no previously-included files matching '*' found under directory 'vectors'
  warning: no previously-included files matching '*' found under directory '.github'
  warning: no previously-included files found matching 'release.py'
  warning: no previously-included files found matching '.coveragerc'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'dev-requirements.txt'
  warning: no previously-included files found matching 'tox.ini'
  warning: no previously-included files found matching 'mypy.ini'
  warning: no previously-included files matching '*' found under directory '.zuul.d'
  warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
  copying src/cryptography/py.typed -> build/lib.cygwin-3.2.0-x86_64-3.8/cryptography
  running build_ext
  generating cffi module 'build/temp.cygwin-3.2.0-x86_64-3.8/_padding.c'
  creating build/temp.cygwin-3.2.0-x86_64-3.8
  generating cffi module 'build/temp.cygwin-3.2.0-x86_64-3.8/_openssl.c'
  running build_rust

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         instructions for your platform.
      3) Check our frequently asked questions for more information:
      4) Ensure you have a recent Rust toolchain installed:
      5) If you are experiencing issues with Rust for *this release only* you may
         set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
      =============================DEBUG ASSISTANCE=============================

  error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

  This package requires Rust >=1.41.0.
  ----------------------------------------
  ERROR: Failed building wheel for cryptography
  Building wheel for pynacl (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.8.exe /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpqk_28730
       cwd: /tmp/pip-install-jda2mjzp/pynacl_495e76b61dce4d1aaebea474e6ff9a73
  Complete output (77 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.cygwin-3.2.0-x86_64-3.8
  creating build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/encoding.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/exceptions.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/hash.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/hashlib.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/public.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/secret.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/signing.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  copying src/nacl/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl
  creating build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/argon2i.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/argon2id.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/scrypt.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/_argon2.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/pwhash
  creating build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_aead.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_box.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_core.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_generichash.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_hash.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_kx.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_pwhash.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_secretbox.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_secretstream.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_shorthash.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_sign.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/randombytes.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/sodium_core.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/utils.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/__init__.py -> build/lib.cygwin-3.2.0-x86_64-3.8/nacl/bindings
  running build_clib
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-g_l9vz7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 221, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-g_l9vz7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 207, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-g_l9vz7t/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 216, in <module>
      setup(
    File "/tmp/pip-build-env-g_l9vz7t/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-g_l9vz7t/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "setup.py", line 161, in run
      raise Exception("ERROR: The 'make' utility is missing from PATH")
  Exception: ERROR: The 'make' utility is missing from PATH
  ----------------------------------------
  ERROR: Failed building wheel for pynacl
  Building wheel for yamlordereddictloader (setup.py) ... done
  Created wheel for yamlordereddictloader: filename=yamlordereddictloader-0.4.0-py3-none-any.whl size=4052 sha256=482bbaae28ee9e3188c99dc334d4ed7c4cacdbda1ac4ca123de7c154fe73ff91
  Stored in directory: /home/A789808/.cache/pip/wheels/50/9a/6f/9cb3312fd9cd01ea93c3fdc1dbee95f5fa0133125d4c7cb09a
Successfully built lxml MarkupSafe ncclient bcrypt yamlordereddictloader
Failed to build cryptography pynacl
ERROR: Could not build wheels for cryptography, pynacl which use PEP 517 and cannot be installed directly

Juniper Business Use Only

forty2

unread,
Apr 17, 2021, 5:51:46 PM4/17/21
to Junos Python EZ
My environment is a cygwin installation where I want to make junos-eznc working but I'm still failing at the stage 

  Building wheel for cryptography (PEP 517) ... error
  ERROR: Command errored out with exit status 1:

I nailed it down to a failed rust compiler. I tried to install it using rustup but I'm failing. I tried it the suggested way: 

$ curl https://sh.rustup.rs -sSf | bash
info: downloading installer
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
curl: (23) Failed writing body (0 != 16384)
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe /tmp/tmp.x9EjjtXShP/rustup-init.exe x86_64-pc-windows-gnu

I downloaded the rustup-init.exe and ran it manually with that argument but this cannot be the correct way, because I want to use that in a bash shell, not on Windows. Next try was to run the install script for unix/linus-systems: 

$ ./rustup-init.sh

info: downloading installer
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
curl: (23) Failed writing body (0 != 16384)
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe /tmp/tmp.PmwvCYj4BD/rustup-init.exe x86_64-pc-windows-gnu

It always the same. It's again the rustup-init.exe for Windows. Can someone please help? 


--
You received this message because you are subscribed to a topic in the Google Groups "Junos Python EZ" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/junos-python-ez/NvdKQE2MZXk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/402b6a36-9ad9-4480-9e0f-cefac8e79f8fn%40googlegroups.com.

Nitin Kumar

unread,
Apr 21, 2021, 6:21:55 AM4/21/21
to forty2, Junos Python EZ

Latest cryptography has issue where we need rust.

 

You can do this:

  • First install older version of cryptography, something like (pip install cryptography==3.2)
  • Then install PyEZ

 

https://github.com/pyca/cryptography/issues/5771

 

Thanks

Nitin Kr

 

From: <junos-p...@googlegroups.com> on behalf of forty2 <thosw...@gmail.com>
Date: Sunday, 18 April 2021 at 3:21 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: Re: Installing PyEZ from local directory

 

[External Email. Be cautious of content]

 

My environment is a cygwin installation where I want to make junos-eznc working but I'm still failing at the stage 

--

You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.

To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/CAGoX6Bhg2nKz8RrPH4XuObpv71wVvcANEXddYiNeagFiWYrp-w%40mail.gmail.com.


Juniper Business Use Only

forty2

unread,
Apr 26, 2021, 1:33:30 PM4/26/21
to Junos Python EZ
Hi Nitin, 

currently I'm trying it. I had to additionally install libssl-devel in order to get cryptography installed, but it worked eventually. Thx. 

But ... Is it expected behavior that a "pip install junos-eznc" stucks at "Building wheels for collected packages: pynacl" ? It's nearly half an hour passed and nothing's happening. 



forty2

unread,
Apr 26, 2021, 2:05:11 PM4/26/21
to Junos Python EZ
Heureka! It's installed now. Everything! Even "ansible-galaxy install Juniper.junos" slipped thru very smootly. Great! It's been with cygwin a bit annoying, but it was possible at the end. Thank you very much. 


Reply all
Reply to author
Forward
0 new messages