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
IPython 8.1.0 claims to be compatible with Python 3.8, but isn't #13554
Comments
|
same problem here:
|
Same same - guessing this is the offending line: ipython/IPython/core/interactiveshell.py Line 788 in 6d40fd8
You might be able to fix this by using |
Can confirm sed -i 's/p.readlink()/p._from_parts(os.readlink(p,))/g' IPython/core/interactiveshell.py within my local venv fixed this for me |
I can also confirm this bug on Ubuntu 20.04. You can reproduce by installing ipython in a venv (which is how I triggered it). |
I'm also getting this bug on ubuntu 20.04 on Python 3.8.10. |
worked for me in venv on Ubuntu 20.04, python 3.8.10. thx @olliemath!! for reference for anyone stuck here: to find this path, i ran this from within the activated venv (found in this very helpful SO post):
this output the absolute path to the venv's python
|
ipython 8.1.0 causes the documentation build to fail because it uses features from python 3.9 Explicitly disallow pip to install this version. fixes numpygh-21126 xref ipython/ipython#13554
For MacOS users, What I did is I manually went to this path (note - I'm using a venv). And I changed the line |
Working in linux as well. |
this worked for me, thanks! |
Computer with all publishing credential died, it may take me a few days to
re-setup everything so don't expect a 8.1.1 soon unless someone else gets
to it.
…On Mon, 28 Feb 2022 at 14:56, Jose Reyes Garcia Delgado < ***@***.***> wrote:
sed -i 's/p.readlink()/p._from_parts(os.readlink(p,))/g'
~/gitbucket/infinityGAN/gainf/lib/python3.8/site-packages/IPython/core/interactiveshell.py
this worked for me, thanks!
—
Reply to this email directly, view it on GitHub
<#13554 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACR5T3DXTIRI5DHKNNDVBDU5N5HVANCNFSM5PKWZGMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For anyone who wants a workaround for the next few days but doesn't want to muck around with source files and/or doesn't care about whatever other features/fixes 8.1 added, you can just downgrade to the previous version: |
confirmed bug if one creates a virtual environment and |
ipython 8.1.0 causes the documentation build to fail because it uses features from python 3.9 Explicitly disallow pip to install this version. fixes numpygh-21126 xref ipython/ipython#13554
- structure_optimizer.py is fixed - requirements.txt file is updated to include the upgraded version of ipython which caused a crash in JetBrains IDE: https://youtrack.jetbrains.com/issue/PY-53261, ipython/ipython#13554 - new test for structure_optimizer.py is added but commented out, because it's a very slow test which is already included into test_cli.py, but still can be useful for future debugging - docker file updated
This was the one for me! Thank you for sharing! |
ipython 8.1.0 causes the documentation build to fail because it uses features from python 3.9 Explicitly disallow pip to install this version. fixes numpygh-21126 xref ipython/ipython#13554
ipython 8.1.0 causes the documentation build to fail because it uses features from python 3.9 Explicitly disallow pip to install this version. fixes numpygh-21126 xref ipython/ipython#13554
Steps to reproduce:
PosixPath.readlink()
was introduced in Python 3.9.Thank you for looking into this.
The text was updated successfully, but these errors were encountered: