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
Getdefaultencoding test error with sympy 0.7.1_git #2035
Comments
Two things:
|
Ok. I have bisected it to So it seems to be related to matplotlib. Removing matplotlib also removes the error I'm running the latest version of matplotlib of the 1.1.1 branch and the same happens with |
Is your default matplotlib backend gtk? |
Yes GTKAgg. And it doesn't happen with the qt4 and wx backends. So it seems to be GTK as |
Okay, then I think we can close this, since A) it's not related to IPython, and B) gtk is known to mangle the Python runtime in unpleasant ways. If we should do anything about it, it should be one or more of:
|
Yes we can close it. I should add that the present combination of matplotlib backend and sympy also causes a Same think happens if I import sympy and then activate pylab with the magic function in a regular ipython shell, but if anything this is a sympy issue and I will report it there. |
The assert is fairly deliberate - I wanted it to highlight that there's something wrong with the test environment. I agree that we could clarify the message. |
I'm seeing the following test errors when a resent sympy git version is installed. Removing sympy from the system
solves the problem. I don't think it's an IPython bug but since it was quite hard to track down I will report it anyway.
It appears that the import of sympy modifies the sys default encoding from ascii to utf-8.
This happens when the test suit is run as it checks for sympy in IPython.testing.decorators.
Steps to reproduce:
Install sympy master
sys.getdefaultencoding is ascii
import sympy
sys.getdefaultencoding is now utf-8
Note that this doesn't happen with sympy0.7.1 and also not with older dev. versions of sympy
(more than a few month I believe but I haven't bisected it. )
Observed on Ubuntu 12.04 with ipython 13 beta
The text was updated successfully, but these errors were encountered: