Skip to content Skip to sidebar Skip to footer

Pysnmp : Importerror: No Module Named Pyasn1.compat.octets

I'm trying to use PySNMP on windows, but when I try to import cmdgen I see following Error: from pysnmp.entity.rfc3413.oneliner import cmdgen ImportError: No module named pyasn1.co

Solution 1:

Make sure you have the latest pyasn1 package also installed on your system for the same Python version as pysnmp is installed.

Solution 2:

I met with the same mistake.

I copied the library from this link into the downloaded project dirctory and corrected the error

this link :

https://pypi.python.org/pypi/pyasn1/

Post a Comment for "Pysnmp : Importerror: No Module Named Pyasn1.compat.octets"