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

ModuleNotFoundError: No module named 'pysnmp.entity.rfc3413.oneliner' #112

Closed
zdudic opened this issue Sep 10, 2024 · 1 comment
Closed
Labels
area:pysnmp PySNMP package wontfix This will not be worked on

Comments

@zdudic
Copy link

zdudic commented Sep 10, 2024

Expected behavior

I expected that module can be imported.
It's based on commit abce4e0

>>> import pysnmp
>>> import pysnmp.entity.rfc3413
>>> import pysnmp.entity.rfc3413.oneliner
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pysnmp.entity.rfc3413.oneliner'

Actual behavior

Based on this commit, oneliner should be present.

commit abce4e005e886551347509092e354371a1d66a6a
Author: Lex Li <[email protected]>
Date: Fri Mar 8 22:22:25 2024 -0500

Added sync oneliner back.

A pysnmp/entity/rfc3413/oneliner/__init__.py
A pysnmp/entity/rfc3413/oneliner/cmdgen.py
A pysnmp/entity/rfc3413/oneliner/ntforg.py

Detailed steps

Use pip to install pysnmp, go to python interactive mode and try to import module pysnmp.entity.rfc3413.oneliner.

Python package information

pip 24.2

Operating system information

Red Hat or Oracle Linux 7

Python information

Python 3.10.4

(Optional) Contents of your test script

No response

Relevant log output

No response

@zdudic zdudic added bug Something isn't working triage New issues that need to be sorted out. labels Sep 10, 2024
@lextm lextm added wontfix This will not be worked on area:pysnmp PySNMP package and removed bug Something isn't working triage New issues that need to be sorted out. labels Sep 10, 2024
@lextm
Copy link

lextm commented Sep 10, 2024

Deleted again in release 6.2. No plan to bring them back.

You can copy from https://github.com/lextudio/pysnmp/tree/release-6.1/pysnmp/entity/rfc3413/oneliner to your own project and maintain them as your own.

Related to #104

@lextm lextm closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
wedebe added a commit to wedebe/oh-brother that referenced this issue Oct 16, 2024
Workaround for ModuleNotFoundErrors caused by external changes.

No module named 'pysnmp.entity.rfc3413.oneliner'
lextudio/pysnmp#112

No module named 'pyasn1.compat.octets'
pyasn1/pyasn1#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:pysnmp PySNMP package wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants