PySNMP : ImportError: No module named pyasn1.compat.octets

Mahdi picture Mahdi · Apr 30, 2013 · Viewed 8.3k times · Source

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.compat.octets

How can I solve this error, I also don't touched init.py

Thank you

Answer

Pooh picture Pooh · May 1, 2013

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