Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSHLibrary (PyNaCl and Cryptography) inst for Python 3.6.4 in Windows 10

1,193 views
Skip to first unread message

Saila

unread,
Oct 17, 2018, 10:41:53 AM10/17/18
to
Hi
Has somebody been able to install SSHLIbrary from sources (all libs with offline installations) on virtual Win 10 for Python 3.6.4?

Python 3.6.4 ... [MSC v. 1900 64 bit (AMD 64)]

Also Microsoft Visual Studio 2017 is installed (also vc_redist.x64.exe)

SSHLinrary worked with Python 2.7 (there wasn't so many dependencies)

SSHLIbrary 3.3.1 requires paramiko
paramiko-2.4.2.tar.gz requires bcrypt,cryptography, pynacl and pyasn1
and cffi is needed
Problems are with PyNaCl-1.3.0.tar.gz and cryptography-2.1.4.tar.gz

Installing PyNaCl
C:\Tools\PyNaCl-1.3.0>python setup.py install >> log.txt
warning: no previously-included files matching '__pycache__\*' found anywhere in distribution
warning: no previously-included files matching '.tarvis.yml'
etc..
File "setup.py", line 159, in run
raise Exception("ERROR": The 'make' utility is missing from PATH")
Exception: ERROR: The 'make' utility is missing from PATH

Installation of cryptography
ends to
C:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Tools\MSVC14.11.25503\bin\HostX86\x64\cl.exe /c /nologo /.... build\temp.win-amd64-3.6\Release\_openssl.c(493): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory

Hoping that somebody can help and sorry that I didn't feel to write hole messages because development env has connections to web
BR
Saila

Thomas Jollans

unread,
Oct 17, 2018, 1:18:55 PM10/17/18
to
Can't you just install it with pip?

py -3 -m pip install PyNaCl

Saila

unread,
Oct 18, 2018, 2:29:02 AM10/18/18
to
That is not possible because there isn't connection to www in development environment. It is isolated. Only possiblity is import sources.

Thomas Jollans

unread,
Oct 18, 2018, 3:30:46 AM10/18/18
to
I see. If installing binary packages is acceptable (which, as you're
using Windows, it must be?), you should still be able to install the
binary packages (wheels) with pip if you download the files for your
OS/Python version from PyPI and move them to the airgapped machine.

Many packages are a lot harder to build from source on Windows than they
should be. Maybe pyNaCl is one of them.

This *might* be of interest:

https://mail.python.org/pipermail/python-list/2018-October/737725.html


----
Looking back at your error messages:

> Installation of cryptography
> ends to
> C:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Tools\MSVC14.11.25503\bin\HostX86\x64\cl.exe /c /nologo /.... build\temp.win-amd64-3.6\Release\_openssl.c(493): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory

This is the typical situation when trying to compile bindings for
third-party libraries (in this case: openssl). You need the library and
its development headers somewhere where setuptools can find them. I
imagine you have to install openssl first, and then copy the files to
some particular place, or somehow tell python how to find it. I don't
know enough about Python on Windows to help there.

MRAB

unread,
Oct 18, 2018, 12:26:18 PM10/18/18
to
Why not download the appropriate .whl file from PyPI and then install
that on your machine?

tommy yama

unread,
Oct 18, 2018, 9:31:06 PM10/18/18
to
It's mentioned that pypi includes what you need.

https://pypi.org/project/robotframework-sshlibrary/

On Fri, 19 Oct 2018, 01:28 MRAB, <pyt...@mrabarnett.plus.com> wrote:

> On 2018-10-18 07:28, Saila wrote:
> Why not download the appropriate .whl file from PyPI and then install
> that on your machine?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
0 new messages