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
Test failures and docs don't build on Mac OS X Lion #1589
Comments
Hm, it might matter that it's iTerm, and it might also be that you are using MacPorts Python (you are, right?). The doc builds have always been fragile, but these test failures are new to me (I've been running the test suite pretty much daily on Lion with System Python and Terminal.app). Can you try running from regular Terminal and/or with iTerm and regular Python to try to isolate the problem? |
Yes, I was using Macports python (python27 @2.7.2_4 to be precise). I did have another issue with ipython and iterm2 (using help with ? didn't work because TERM was set to "xterm" by default by iterm2), but I think it is unrelated to the test failures, because they also show up in Terminal.app (see below): Here's the log from running the tests in Terminal.app with Macports python: And running the tests in Terminal.app with Apple Python Note that I did not re-install ipython with Apple Python, so I don't know if the second log is useful at all. |
I think if you do a clean reinstall of IPython, the first failure (profile lists not matching) should go away. The The other failure is clearly encoding related, and thus might somehow have to do with the What do you get for:
? |
Also, have you installed GNU readline? If not, you'll probably get a big warning about libedit when you start ipython, suggesting you do |
I believe macports Python is built with real readline. |
The first failure did go away after removing old ipython files. Now two failures remain:
Here's my locale encoding (both in iterm2.app and Terminal.app): $ python -c 'import locale; print locale.getpreferredencoding()'
US-ASCII Pasting unicode characters from the clipboard into the terminal or ipython doesn't work. Yes, Macports does install GNU readline:
|
That's the issue right there. It's unusual to have an ASCII locale, which makes all unicode inputs invalid, and end up getting replaced by
|
After updating to 825a832 and completely removing the previously installed ipython version the sphinx docs build now completes (with plenty of errors and warnings though): |
@cdeil - does this mean we should close the issue, or are you still having problems? (tons of errors/warnings are always expected when running sphinx, at least in my experience, I only care that it completes). |
The sphinx build does finish. The two unicode-related test failures in IPython.frontend for which you already suggest several possible solutions above are still there. |
Try PR #1996 |
PR #1996 doesn't resolve the two IPython.frontend errors for me, and I get an extra error in IPython.parallel: Now this is the first time I try a github pull request, here's what I did:
Is this the correct / recommended way? It would be great if you can shortly describe in the ipython docs "How to test a pull request", a google search isn't super helpful, it seems the best way would have been to add your ipython repo as a remote, then fetch and change branch? Also I'm not sure if it is necessary to remove the old ipython and if there is a better way to do it? |
I didn't know we even had an IPython.test() function! The easiest way to test a PR is with our test_pr script:
Which basically checks out master, does Also, you did not actually end up testing my branch, as evidenced by the fact that your test report identified itself as IPython 0.12 beta |
That is awesome that you have such a simple way to test pull requests. Doesn't work out of the box for me:
I also was puzzled by the "0.12 beta" from your branch, I'm not sure exactly how the version number is generated by IPython, but the file I import (according to the timestamp) is the one I installed this morning when installing the version from your branch I think:
|
On 21 June 2012 10:16, Christoph Deil
I think that means you need a newer version of virtualenv. We haven't |
I did have virtualenv 1.6.4, now I have 1.7.1.2 which is pretty recent, still the test_pr script doesn't work:
I added print statements, the nose ImportError comes from line 42 when checking python2.6:
Maybe ImportError could be added the the except statement in line 44? The OSError comes from trying to execute
After defining a symbolic link instead of the alias I can use your scripts to test the pull request, I have posted the results. So I guess the problem never was an old virtualenv version. Thanks for all your help and patience! |
On 21 June 2012 13:36, Christoph Deil
The ImportError is raised in a subprocess, and check_call turns the |
Sounds from the above this isn't really a bug we need to keep open, right? |
OK, let's then try to get #1996 in and we'll assume it helps here, unless proven otherwise (and a reopen would be fine then). Thanks! |
Okay, I merged #1996, so we can reopen this or open a new issue if something else comes up. |
Thanks! Now all tests pass with ipython master on my machine. |
frontend test tweaks for ASCII locale add some encoding to readline history tests that would fail in casting locales (ascii), so that the expected output really matches what should happen. also relaxes a few timeouts in another test, which were seen to fail while poking around, to avoid spurious failures. closes ipython#1589
addresses mismatched comparison when locale cannot handle unicode (e.g. ascii) closes ipython#1589
frontend test tweaks for ASCII locale add some encoding to readline history tests that would fail in casting locales (ascii), so that the expected output really matches what should happen. also relaxes a few timeouts in another test, which were seen to fail while poking around, to avoid spurious failures. closes ipython#1589
I have installed the latest ipython from github (f30a572) via
python setup.py install --user
.There are a few test failures and the docs don't build:
http://dl.dropbox.com/u/4923986/bug_reports/ipython-tests.log
http://dl.dropbox.com/u/4923986/bug_reports/ipython-docs.log
Let me know if I should create separate tickets for some of these issues. It's hard for me to tell which are known and which are new. I know that the docs v3 problem wasn't there a few weeks ago.
Note that I am using iterm2 (http://www.iterm2.com/, Build 1.0.0.20110821) instead of the default Apple terminal, in case it matters.
The text was updated successfully, but these errors were encountered: