-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
TypeError: exceptions must derive from BaseException #178
Comments
Thank you for raising this problem! However I do not see so far, how a boolean can end up being raised. Here is the code - if True, it should always be an exception object. Do you have a reproducer handy? |
At the moment I don't have a simple reproducer to hand -- but I will try to create one. I couldn't find the problem in the code linked to above but after a little searching I found some issues in master. It looks like commit d0b7f2e introduced two new Hope this helps/makes sense? |
I'm encountering that issue trying to upgrade to Line 2043 in 6bb6e5b
|
This updates pysnmp and its dependencies. We can't update pyasn1 for now because of etingof/pyasn1#178. And we can't update pysnmp to 4.4.10+ because of etingof/pysnmp#329.
This updates pysnmp and its dependencies. We can't update pyasn1 for now because of etingof/pyasn1#178. And we can't update pysnmp to 4.4.10+ because of etingof/pysnmp#329.
This updates pysnmp and its dependencies. We can't update pyasn1 for now because of etingof/pyasn1#178. And we can't update pysnmp to 4.4.10+ because of etingof/pysnmp#329.
Hi @etingof, any feedback on that one or the associated PR? Thanks. |
I'm able to reliably reproduce this but in a massive codebase which just uses pysnmp for some simple querying. The first hook into pyasn1 code that causes this exception looks like this from
When it blows up, at this point in the stacktrace Any advise on what I can do to extract the data in this class out in a form that could be used for debugging? I don't know how any of the pyasn1 code works enough to know what it should be doing to fix this myself. Today is my first foray into pysnmp/pyasn1. The interesting part of my stacktrace is:
|
Commit 66afc89 introduces code that generates an type error --
TypeError: exceptions must derive from BaseException
.The problem seems to be that in multiple files the result of
value.isInconsistent
(boolean) is used to raise an exception (see code below).Effected files:
The text was updated successfully, but these errors were encountered: