pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

Not even 1 sample script runs

Open Zooarcher opened this issue 3 years ago • 4 comments

I started on Windows in VSC with WSL environment. I moved to Linux Debian.

I have tried every single example script and get one error or another, like the one below, or one like it.

Exception has occurred: ModuleNotFoundError No module named 'pysnmp.hlapi.v3arch' File "/home/user/snmp/v1-get.py", line 19, in from pysnmp.hlapi.v3arch.asyncio import *

Zooarcher avatar Nov 06 '21 20:11 Zooarcher

ffs... all my problems are in visual studio code.. I tried something in another Ide to check my sanity.. it worked.. wth is up with vsc?

Zooarcher avatar Nov 06 '21 23:11 Zooarcher

Try to run pip install pysnmp inside vscode shell. It has its own virtual env

NadOby avatar Nov 12 '21 12:11 NadOby

Duplicate to #421. The folder structure has been flatten in newer releases, but the example scripts were not up-to-date.

You still need to be a good Python developer to figure out such ABCs on open source projects like this. But while I am working on #429 I might try to improve the documentation at https://www.pysnmp.com to be clearer.

lextm avatar Jan 19 '23 17:01 lextm