Skip to content

Fix pysmi deprecations - #209

Open
aknopper wants to merge 1 commit into
lextudio:mainfrom
aknopper:main
Open

Fix pysmi deprecations#209
aknopper wants to merge 1 commit into
lextudio:mainfrom
aknopper:main

Conversation

@aknopper

Copy link
Copy Markdown

I was getting errors about deprecated pysmi functions when running Pytest.
Discovered the deprecated functions and updated with the new ones.

@CLAassistant

CLAassistant commented Oct 15, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@AiyionPrime AiyionPrime left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've encountered the same warnings, the fix looks correct and follows the warnings suggestion.

../../nix/store/y4f3x697xs8ldpkn385crjnyk4161myp-python3.13-pysnmp-7.1.22/lib/python3.13/site-packages/pysnmp/smi/compiler.py:23
  /nix/store/y4f3x697xs8ldpkn385crjnyk4161myp-python3.13-pysnmp-7.1.22/lib/python3.13/site-packages/pysnmp/smi/compiler.py:23: 
  DeprecationWarning: getReadersFromUrls is deprecated. Please use get_readers_from_urls instead.
    from pysmi.reader.url import getReadersFromUrls

../../nix/store/y4f3x697xs8ldpkn385crjnyk4161myp-python3.13-pysnmp-7.1.22/lib/python3.13/site-packages/pysnmp/smi/compiler.py:29
  /nix/store/y4f3x697xs8ldpkn385crjnyk4161myp-python3.13-pysnmp-7.1.22/lib/python3.13/site-packages/pysnmp/smi/compiler.py:29: 
  DeprecationWarning: smiV1Relaxed is deprecated. Please use smi_v1_relaxed instead.
    from pysmi.parser.dialect import smiV1Relaxed

@lextm lextm added area:pysnmp PySNMP package priority:low Low priority items. labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:pysnmp PySNMP package priority:low Low priority items.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants