Re: [pysnmp-users] Python 3 apparent compatibility problem
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2016-09-16 22:09:23
|
Hi Clive, The pysnmp library definitely works with Python 3.4 on Linux and OS X. To troubleshoot your issue please provide the whole traceback and the script you are running. Also make sure you are running the latest pyasn1 version. Finally, if nothing helps, try running pysnmp with its internal debugging enables — that would pinpoint the step where exception occurs. > On 16 Sep 2016, at 16:12, Clive Tomlinson <cl...@sw...> wrote: > > Hello > I’m trying to get PySNMP 4.3.2 working with Python 3.4, on a Windows PC using the Pycharm IDE. > I started by copying some example code from the PySNMP page on sourceforge. Its first line was > from pysnmp.hlapi import * > That import caused a load of errors when I attempted to run it. Here’s an example: > File "C:\Users\clive\AppData\Roaming\Python\Python34\site-packages\pysnmp\proto\rfc1902.py", line 25 > constraints.ValueRangeConstraint(-2147483648L, 2147483647L), > As the ‘L’ suffix has been removed in Python 3, it looks like there’s a compatibility problem. > Yet people say that PySNMP works with Python up to 3.5. > I’m very puzzled, and will welcome any help. > Thanks > Clive |