dhamaniasad / py-bcrypt

Automatically exported from code.google.com/p/py-bcrypt
Other
2 stars 0 forks source link

from netmiko import ConnectHandler #20

Open theLORD97 opened 6 years ago

theLORD97 commented 6 years ago

Traceback (most recent call last): File "C:\Python27\Exercise Files\OLT\connect_to_olt.py", line 5, in from netmiko import ConnectHandler File "build\bdist.win-amd64\egg\netmiko__init__.py", line 8, in File "build\bdist.win-amd64\egg\netmiko\ssh_dispatcher.py", line 4, in File "build\bdist.win-amd64\egg\netmiko\a10__init.py", line 2, in File "build\bdist.win-amd64\egg\netmiko\a10\a10_ssh.py", line 3, in File "build\bdist.win-amd64\egg\netmiko\cisco_base_connection.py", line 3, in File "build\bdist.win-amd64\egg\netmiko\base_connection.py", line 13, in File "C:\Python27\lib\site-packages\paramiko\init.py", line 22, in from paramiko.transport import SecurityOptions, Transport File "C:\Python27\lib\site-packages\paramiko\transport.py", line 57, in from paramiko.ed25519key import Ed25519Key File "C:\Python27\lib\site-packages\paramiko\ed25519key.py", line 17, in import bcrypt File "C:\Python27\lib\site-packages\bcrypt\init__.py", line 25, in from bcrypt import _bcrypt ImportError: DLL load failed: %1 is not a valid Win32 application.

This was working a day ago and now all of a sudden it's not, i haven't changed anything... any suggestions?

theLORD97 commented 6 years ago

here's the solution

c:>python -m pip install paramiko==2.1.2 Collecting paramiko==2.1.2 Using cached paramiko-2.1.2-py2.py3-none-any.whl Requirement already satisfied: pyasn1>=0.1.7 in c:\python27\lib\site-packages (from paramiko==2.1.2) Requirement already satisfied: cryptography>=1.1 in c:\python27\lib\site-packages (from paramiko==2.1.2) Requirement already satisfied: asn1crypto>=0.21.0 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: idna>=2.1 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: six>=1.4.1 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: ipaddress in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: cffi>=1.7 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: enum34 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko==2.1.2) Requirement already satisfied: pycparser in c:\python27\lib\site-packages (from cffi>=1.7->cryptography>=1.1->paramiko==2.1.2) Installing collected packages: paramiko Found existing installation: paramiko 2.4.1 Uninstalling paramiko-2.4.1: Successfully uninstalled paramiko-2.4.1 Successfully installed paramiko-2.1.2