New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemError: <built-in function walk> returned NULL without setting an error (3.7) #108
Comments
Hi, I am also seeing this error when using easysnmp within the get call:
File "/Users/andy/projects/venv-python37/lib/python3.7/site-packages/easysnmp-0.2.5-py3.7-macosx-10.13-x86_64.egg/easysnmp/session.py", line 315, in get easysnmp==0.2.5 |
I have the same failure for python 3.7, @andy-shady-org @lroellin would you like to share your fix of this bug? thanks |
I have no fix currently other than to downgrade to 3.6. Seems like Python expects a few more things from C extensions with 3.7... That said, I don't have an alternative for this library. The other ones I've found are really low-level, whereas this feels pythonic |
i was run it with little fixes under python3.7. Pull Request already wait for confirmation. I hope it will help anyone. |
I reviewed the code and it looks like it would actually break error reporting. The problem is that some of the end-points are failing to set errors/create exceptions before returning I'll look at fixing this, given that our project needs to move to python 3.7+ anyhow >_>... |
hey did you find a solution for this problem |
I was updated my branch, please check it again anyone. I wasn't familiar with the subject. Now more errors return correctly, but I not tested all functions, only netsnmp_get and netsnmp_walk. |
Nope. I've been way too busy... |
I am having a similar issue (I guess it's the same) when using the check_ip_sla nagios plugin which uses easysnmp. The python version is 3.8.2. |
Pinging possibly interested people: I am proposing a different, much smaller, patch for this at #129. |
I recommend pulling the latest source and testing it to see if your issue is resolved. (Assuming that you're still using this package.) |
In my case it was wrong community string |
When running on an non-existing device with version 0.2.5:
I get
SystemError: <built-in function walk> returned NULL without setting an error
When running with Python 3.6.6, I get the expected behavior (raised
EasySNMPError
)The text was updated successfully, but these errors were encountered: