Re: [pysnmp-users] Can't get pysnmp to run under Python 3.4
Brought to you by:
elie
From: Carlson, K D. <K.C...@xe...> - 2015-02-20 20:30:11
|
That did the trick, python3.4 now sees the module. I had to install the python3-setuptool with get-apt and then used easy install3.4 to install pysnmp so that python3.4 could recognize it. Thank you, Dave From: Ilya Etingof [mailto:il...@gl...] Sent: Friday, February 20, 2015 2:37 PM To: Carlson, K David Cc: pys...@li... Subject: Re: [pysnmp-users] Can't get pysnmp to run under Python 3.4 Hi David, A traceback would help better understand what’s going on. To test the availability of the library for specific Python version you could try to import it into one Python or another: $ python3.4 >>> import pysnmp >>> ^D $ python2.7 >>> import pysnmp >>> ^D To install pysnmp for python 3.4 you should run pip3.4 or easy_install-3.4. -ilya On 20 Feb 2015, at 21:29, Carlson, K David <K.C...@xe...<mailto:K.C...@xe...>> wrote: Whenever I run the PySNMP sample code in an IDLE 3.4 window I get “ImportError: No module named ‘pysnmp’” I have successfully installed Python 3.4 with IDLE and the OS already had Python 2.7.6 installed, I installed pysnmp 4.2.5 with easy_install. If I run the sample code at a Python 2.7.6 prompt in a terminal window it runs fine, trying the same with 3.4 gives me “NameError: name ‘errorIndication’ is not defined” . My linux skills are weak and I would think that this is a path issue but I can’t find any documentation that points me in the right direction. Any help would be appreciated. Thanks, Dave |