3

I install the package and it dependencies module in ubuntu 15.10 but still it show error of

from pysnmp.hlapi import * ImportError: No module named hlapi

I try to install it sudo setup.py install and pip install pysnmp

But still its not working

Please help me to get it complete

Munawar Hussian
  • 287
  • 1
  • 4
  • 12
  • You need pysnmp 4.3.x to use the latest API (which is pysnmp.hlapi). How about: pip install -U pysnmp ? – Ilya Etingof Dec 23 '15 at 21:45
  • I run this cmd also but facing the same problem – Munawar Hussian Dec 24 '15 at 06:57
  • 1
    That means you are still running older version of pysnmp. Could you figure out where your Python finds pysnmp package (python -v -c 'import pysnmp' 2>&1 | grep pysnmp) and upgrade that package or point Python to other location where pysnmp 4.3 resides? – Ilya Etingof Dec 24 '15 at 20:47
  • I have the same problem using Python with Windows 10. I have pysnmp4.3.2 installed. I installed it with pip – takluiper Jan 10 '17 at 10:42

2 Answers2

2
apt-get install python-pip
pip install -U pysnmp
Edik Mkoyan
  • 309
  • 2
  • 17
1

I find the solution Remove all .egg file related to plugin then install with pip it work for me

Munawar Hussian
  • 287
  • 1
  • 4
  • 12