-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Pymongo breaks displayhook _graphics_() #15066
Comments
comment:1
Where do you get pymongo from? It is not in standard packages and it is not even in optional packages. |
comment:2
Replying to @ppurka:
You get it like this:
I am using it for a project which uses Sage as a backend to a big number theory database, see http://www.lmfdb.org/ and the readme at https://github.com/LMFDB/lmfdb/wiki/GettingGoing . |
comment:3
Sorry, the initial patch does not work for me (but I know that you have not marked the ticket as needs_review). |
Attachment: trac_15066_pymongo_displayhook.patch.gz Updated patch |
comment:4
I had only changed the doctest but not the interactive displayhook... my bad. I will set this to "needs review" once tests pass ;-) |
comment:5
With the new patch all tests pass for me: both my manual test with pymongo, and a full test of the whole library. Note to Release Manager: it is OK not to have a doctest showing that the problem is fixed since the original problem only arises when pymongo has been installed and the machine has a running mongo daemon. I was the original reporter, and "it works for me". As soon as Volker sets the tciket to "needs review" I'll give it a positive review. |
comment:6
Tests pass for me, too |
Reviewer: John Cremona |
Author: Volker Braun |
Merged: sage-5.12.beta4 |
Apparently pymongo uses a getattr hack that claims to have all and every method implemented, and then fails flat on its face when you actually try. This breaks the new displayhook.
Note that this error will just appear if you (implicitly) call the displayhook. Pymongo is working just fine, only the implicit printing is broken:
Depends on #14469
CC: @JohnCremona
Component: graphics
Author: Volker Braun
Reviewer: John Cremona
Merged: sage-5.12.beta4
Issue created by migration from https://trac.sagemath.org/ticket/15066
The text was updated successfully, but these errors were encountered: