Giter VIP home page Giter VIP logo

Comments (4)

rfonacier avatar rfonacier commented on May 16, 2024 2

Thanks, @kamakazikamikaze =)

from easysnmp.

kamakazikamikaze avatar kamakazikamikaze commented on May 16, 2024

@rfonacier Sorry that I didn't see this sooner. Windows is currently not supported. I have tinkered in the past with getting it to work with VC but I was not able to make much progress.

If you are interested in looking into it, you can view the few commits I was able to make in my Win32 branch. However I must say that I am not confident that we can get it working.

from easysnmp.

mokuq avatar mokuq commented on May 16, 2024

@kamakazikamikaze Are you still not supporting Windows?

from easysnmp.

Raanger99 avatar Raanger99 commented on May 16, 2024

Hi from 2020!
As a first step, I built Net-SNMP 5.7.1 under Windows 10.
With the help of #32 and several minor fixes, I built and installed EasySNMP 0.2.5. But there's a strange issue with a simple test script I can't resolve.

from easysnmp import Session session = Session(hostname='10.1.7.130', community='public', version=2) location = session.get('sysLocation.0') print( location )
If I launch this script from command line, it doesn't work:

C:\Python\eLearning>python easytest3.py
Traceback (most recent call last):
File "easytest3.py", line 2, in
session = Session(hostname='10.1.7.130', community='public', version=2)
File "C:\Python\lib\site-packages\easysnmp-0.2.5-py3.8-win-amd64.egg\easysnmp\session.py", line 280, in init
self.sess_ptr = interface.session(
easysnmp.exceptions.EasySNMPConnectionError: couldn't create SNMP handle

But, if I open and run the script in IDLE x64, everything works perfectly!
_=================== RESTART: C:\Python\eLearning\easytest3.py ==================
<SNMPVariable value='WP-106' (oid='sysLocation', oid_index='0', snmp_type='OCTETSTR')>

_

Why is this difference between running a script from command line and from IDLE ? Any libraries, timeouts, settings, etc ?

Python 3.8.3 x64
MSVS Build Tools 2019
Windows 10

from easysnmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.