exhuma / puresnmp

Pure Python SNMPv2 Library
MIT License
79 stars 22 forks source link

mportError: cannot import name 'get' from 'puresnmp #113

Closed frsoto closed 1 year ago

frsoto commented 1 year ago

Hi, can anyone help me with this please?

root@prov:/home/operador# pip install puresnmp
Collecting puresnmp Downloading puresnmp-2.0.0.post1-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 603 kB/s Collecting x690<2.0,>=1.0 Downloading x690-1.0.0.post1-py3-none-any.whl (29 kB) Collecting t61codec<2.0,>=1.0.1 Downloading t61codec-1.0.1-py2.py3-none-any.whl (6.0 kB) Installing collected packages: t61codec, x690, puresnmp Successfully installed puresnmp-2.0.0.post1 t61codec-1.0.1 x690-1.0.0.post1 root@prov:/home/operador# root@prov:/home/operador# root@prov:/home/operador# python3 Python 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from puresnmp import get Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'get' from 'puresnmp' (/usr/local/lib/python3.8/dist-packages/puresnmp/init.py) quit()

exhuma commented 1 year ago

In puresnmp 2.x, the API changed. Please see the upgrade guide and/or the "Basic Example" in the documentation

exhuma commented 1 year ago

As there was no further feedback, I assume that this is working and consider this closed.

frsoto commented 1 year ago

xhuma

sorry exhuma... i was in trouble. thank you very much