-
Notifications
You must be signed in to change notification settings - Fork 636
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
How to handle ZMQError raised from cython? #783
Comments
Can you provide more detail, and perhaps a complete test case that reproduces the error? What OS? What Python, pyzmq, libzmq versions? Normally, ZMQErrors are raised and catchable just fine, which is done all over the test suite. |
I don't know how to reproduce, error is "unknown". I only have crashlog. I would have more details if my except would be executed. Instead this exception is propagated to a higher except that catches everything. Could it be that class is duplicated for cython and therefore unrecognized by my except? Windows 8, Python 3.5, pyzmq 14.7.0, libzmq 4.1.4 Best Regards
|
Is your code Cython as well? Can you provide the rest of the traceback? The suspicious piece for me is the string |
Our code is Python. It is packaged with pyqtdeploy (frozen and put into binary). However it's not supposed to anyhow affect names. If you have in mind a test case that would make _checkrc to fail with an Unknown error, I'm happy to reproduce it under debugger. |
I don't have any such test cases because that, too, shouldn't happen. |
At least could you somehow ensure that raised exception is of right type? Best Regards
|
I believe I already do, which is why I'm confused. The error message you show indicates that an Exception class that does not exist is being raised. I cannot produce a test case because I do not understand how to cause the behavior you are seeing. |
I did not encounter this error ever again. |
@Kentzo Did you stop encountering this error after an OS upgrade? (Windows 8 to Windows 10) or after a PyZMQ upgrade? |
@Peque PyZMQ upgrade. |
I have the following block:
However, when the following exception happened, it was not handled by the except statement:
The text was updated successfully, but these errors were encountered: