Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Import Netmiko to Pycharm fails

Import Netmiko to Pycharm fails

I have installed Netmiko  as shown below:
C:\Users\user>pip show netmiko
Name: netmiko
Version: 2.4.2
Summary: Multi-vendor library to simplify Paramiko SSH connections to network devices
Home-page: https://github.com/ktbyers/netmiko
Author: Kirk Byers
Author-email: ktbyers@twb-tech.com
License: MIT
Location: c:\users\user\appdata\local\programs\python\python38\lib\site-packages
Requires: paramiko, pyserial, scp, textfsm, setuptools
Required-by:

C:\Users\user>

Open in new window


However I still cannot import  Netmiko to Pycharm

User generated image
Avatar of noci
noci

Was pycharm restart after installing netmiko?
Are all prerequisites for netmiko installed?
Avatar of jskfan

ASKER

Was pycharm restart after installing netmiko?

Yes
Are all prerequisites for netmiko installed?

not sure what they are..I used PIP Install Netmiko
If you start Python from the command line can you import netmiko?
use:
python <enter>
import netmiko

Open in new window


You will get a crash dump with more info inside when prerequisites are missing.
use pip to install those missing includes as well and it should start working.. (if the modules don;t require any further configuration).

This will be needed to be repeated probably.
(otoh, the netmiko library MIGHT show this info ...)
pypi lists them https://pypi.org/project/netmiko/
are they actually installed? Are the prerequisites from those installed?
ASKER CERTIFIED SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Norie,

It also fails when I click Install package netmiko from within Pycharm
Did you try https://www.experts-exchange.com/questions/29164523/Import-Netmiko-to-Pycharm-fails.html?anchorAnswerId=42982065#a42982065
from a command prompt? Then you may actually see what goes wrong and is missing.
Avatar of jskfan

ASKER

I installed Netmiko this way :

C:\> pip install netmiko
Requirement already satisfied: netmiko in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (2.4.2)
Requirement already satisfied: pyserial in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from netmiko) (3.4)
Requirement already satisfied: setuptools>=38.4.0 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from netmiko) (41.2.0)
Requirement already satisfied: paramiko>=2.4.3 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from netmiko) (2.6.0)
Requirement already satisfied: scp>=0.13.2 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from netmiko) (0.13.2)
Requirement already satisfied: textfsm in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from netmiko) (1.1.0)
Requirement already satisfied: bcrypt>=3.1.3 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from paramiko>=2.4.3->netmiko) (3.1.7)
Requirement already satisfied: pynacl>=1.0.1 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from paramiko>=2.4.3->netmiko) (1.3.0)
Requirement already satisfied: cryptography>=2.5 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from paramiko>=2.4.3->netmiko) (2.8)
Requirement already satisfied: future in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from textfsm->netmiko) (0.18.2)
Requirement already satisfied: six in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from textfsm->netmiko) (1.13.0)
Requirement already satisfied: cffi>=1.1 in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from bcrypt>=3.1.3->paramiko>=2.4.3->netmiko) (1.13.2)
Requirement already satisfied: pycparser in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=2.4.3->netmiko) (2.19)

Open in new window

Avatar of jskfan

ASKER

I selected : "ignore unresolved reference", and now I do not see the red line below Import Netmiko
not sure if it has any impact
In PyCharm when you goto Settings what's the path to the Base Interpreter?
Avatar of jskfan

ASKER

where in settings  will you  find that ?
You should find it under Files>Settings>Project>Project Interpreter...
Avatar of jskfan

ASKER

this is what I see:

User generated image
Avatar of jskfan

ASKER

no... this question is about Import Netmiko to python.
it should be resolved by now:
I selected : "ignore unresolved reference", and now I do not see the red line below Import Netmiko
not sure if it has any impact

the other question is about Django
Avatar of jskfan

ASKER

Thank you..
I will come back to this topic later.