Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not even 1 sample script runs #412

Open
Zooarcher opened this issue Nov 6, 2021 · 4 comments
Open

Not even 1 sample script runs #412

Zooarcher opened this issue Nov 6, 2021 · 4 comments

Comments

@Zooarcher
Copy link

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
Copy link
Author

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?

@NadOby
Copy link

NadOby commented Nov 12, 2021

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

@lextm
Copy link

lextm commented Jan 19, 2023

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
Copy link

lextm commented Sep 2, 2024

After closing #429, time to revisit this.

The hlapi.v3arch related API surface is only available in the master branch here, and was planned by Ilya to ship in his release 5.0. However, that never happened.

My team is able to ship release 7.0.3, which now includes the required dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants