Netmiko: Python 2 version has Python 3 syntax

Created on 27 Jan 2020  路  1Comment  路  Source: ktbyers/netmiko

I installed the Python 2.7 version using pip2 install netmiko. When I try to import, the following happens:

File "/usr/local/lib/python2.7/dist-packages/netmiko/cisco_base_connection.py", line 143
    msg = f"Login failed: {self.host}"
                                     ^
SyntaxError: invalid syntax

Most helpful comment

Netmiko no longer supports PY27.

For PY27, you would need to pip install netmiko==2.4.2

>All comments

Netmiko no longer supports PY27.

For PY27, you would need to pip install netmiko==2.4.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akei9 picture akei9  路  7Comments

Rooster-OC picture Rooster-OC  路  5Comments

MichalTaratuta picture MichalTaratuta  路  7Comments

rajaramanlala picture rajaramanlala  路  7Comments

aegiacometti picture aegiacometti  路  6Comments