Comments (4)
Thanks, @kamakazikamikaze =)
from easysnmp.
@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.
@kamakazikamikaze Are you still not supporting Windows?
from easysnmp.
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)
- [BUG] SNMP v1 walk can fail in different ways HOT 13
- [BUG] Seg fault in interface.c:py_netsnmp_attr_string HOT 1
- [BUG] macOS compilation fails due to improper setup.py logic
- [PROPOSAL] Drop Python 2 support HOT 1
- Cannot install MacOS 12.5 (M1 ARM64) HOT 12
- [BUG] SIGSEGV if type not set in snmp_set() HOT 3
- [BUG] Unable to set 64 bit integer on 32 bit ARM device HOT 10
- Possible Memory Leak Using Session API HOT 4
- [BUG] HOT 2
- [FEATURE] Support 16bitIDs in sessions
- failed to install/compile with pip on debian11 [BUG]
- How to install easysnmp with net-snmp installed in /opt/netsnmp HOT 1
- [BUG] Unsupported privacy protocol DES
- [FEATURE] Python 3.11 support
- [BUG] DeprecationWarning future library HOT 1
- [FEATURE] Read the Docs Action required - Add a configuration file to your project to prevent build failures
- [BUG] MacOS install fatal error: 'openssl/ossl_typ.h' file not found HOT 1
- Please support apple silicon[FEATURE] HOT 1
- Cant install easysnmp using pip3.11 in RHEL 7.9 HOT 3
- [BUG] Empty string in second argument for `set` results in segmentation fault HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easysnmp.