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
Interactive shell trying to: from ... import history #1197
Comments
interesting, that looks like an issue with 2to3, or something. I don't know why it would put '...' in there (it's not in the source), and it doesn't on my Python3 (3.2.2). |
The corresponding line of the source code is here: https://github.com/ipython/ipython/blob/master/IPython/core/interactiveshell.py#L1956 How did you install IPython? It might be an issue with 2to3, as Min says. I've not tested on 3.1 for a long time. |
A full transcript of an installation is below. Notice that I run inside a virtualenv.
|
I'll try to get round to testing on Python 3.1. Is it simple for you to upgrade to 3.2? I expect we'll drop 3.1 support when 3.3 is out, anyway. |
I run that specific version because it is the version (of Python 3.x) that is shipped in Ubuntu 8.04 LTS (Long Term Support). When Ubuntu 12.04 LTS is released I will upgrade to whatever version is shipped with that release. This is the only problem I'm having at the moment with this specific version, so I'll stick to it for a while. Do you want me to upgrade in order to test this bug out some more? I probably could do that but it will take me some time during the holidays. |
Another test could be to run the latest 2to3 from http://hg.python.org/2to3/ as part of the ipython installation? I haven't looked into how I would go about doing that though. What do you think? tip of 2to3: changeset: 637:8c5b845c14fc |
OK, fair enough. I'll have a go at testing with Python 3.1, and if it works, I'll make a bdist that you should be able to install. I'm not too worried about automatically testing against 2to3 trunk, but we should probably do some manual tests when 3.3 is getting near to release. I think that's in 2013, though, so no rush just yet. |
(Python 3.1 isn't available in the repos any more, so it might be a bit longer before I get round to testing with it). |
I tested again with the same procedure but I ran it with Python 3.2.2 (make altinstall:ed) and it does not show the same bug as with Python 3.1.2. The line 1957 in the file lib/python3.2/site-packages/IPython/core/interactiveshell.py is the same as the line from https://github.com/ipython/ipython/blob/master/IPython/core/interactiveshell.py#L1956. |
OK, so it looks like a bug with Python 3.1 2to3. We'll hopefully work round it for the next version. Let us know if you see any other bugs after you've corrected that. |
Reproduced the issue and pushed the fix to the development branch. I'll try to remember to copy it across if we have a 0.12.1 release. |
Bug reported to 2to3 issue tracker. http://bugs.python.org/issue13692 |
Using ipython 0.12 with python 3.1.2.
The attached patch makes it possible to start ipython3.
The text was updated successfully, but these errors were encountered: