Re: [pysnmp-users] Python 3 apparent compatibility problem
Brought to you by:
elie
From: Clive T. <cl...@sw...> - 2016-09-19 08:54:59
|
Many thanks for the advice. As it looked like a Python version problem (I use Python 3.4), I reinstalled, but this time being careful to use pip3.4. All is well now! Thanks again, Clive From: Ilya Etingof [mailto:il...@gl...] Sent: 16 September 2016 23:09 To: Clive Tomlinson <cl...@sw...> Cc: pys...@li... Subject: Re: [pysnmp-users] Python 3 apparent compatibility problem 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...<mailto: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 |