Import Netmiko to Pycharm fails

jskfan
jskfan used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
nociSoftware Engineer
Distinguished Expert 2018

Commented:
Was pycharm restart after installing netmiko?
Are all prerequisites for netmiko installed?

Author

Commented:
Was pycharm restart after installing netmiko?

Yes
Are all prerequisites for netmiko installed?

not sure what they are..I used PIP Install Netmiko
NorieAnalyst Assistant

Commented:
If you start Python from the command line can you import netmiko?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

nociSoftware Engineer
Distinguished Expert 2018

Commented:
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?
Analyst Assistant
Commented:
What happens when you get the error and then click Install package netmiko?
Install-netmiko.jpg

Author

Commented:
Norie,

It also fails when I click Install package netmiko from within Pycharm
nociSoftware Engineer
Distinguished Expert 2018

Commented:
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.

Author

Commented:
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

Author

Commented:
I selected : "ignore unresolved reference", and now I do not see the red line below Import Netmiko
not sure if it has any impact
NorieAnalyst Assistant

Commented:
In PyCharm when you goto Settings what's the path to the Base Interpreter?

Author

Commented:
where in settings  will you  find that ?
NorieAnalyst Assistant

Commented:
You should find it under Files>Settings>Project>Project Interpreter...

Author

Commented:
this is what I see:

in
NorieAnalyst Assistant

Commented:

Author

Commented:
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

Author

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial