Avatar of jskfan
jskfan
Flag 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

n
NetworkingPython

Avatar of undefined
Last Comment
jskfan

8/22/2022 - Mon
noci

Was pycharm restart after installing netmiko?
Are all prerequisites for netmiko installed?
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
Norie

If you start Python from the command line can you import netmiko?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
noci

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
Norie

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
Norie,

It also fails when I click Install package netmiko from within Pycharm
noci

Did you try https://www.experts-exchange.com/questions/29164523/Import-Netmiko-to-Pycharm-fails.html#a42982065
from a command prompt? Then you may actually see what goes wrong and is missing.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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

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
Norie

In PyCharm when you goto Settings what's the path to the Base Interpreter?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jskfan

ASKER
where in settings  will you  find that ?
Norie

You should find it under Files>Settings>Project>Project Interpreter...
jskfan

ASKER
this is what I see:

in
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Norie

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
jskfan

ASKER
Thank you..
I will come back to this topic later.
Your help has saved me hundreds of hours of internet surfing.
fblack61