Skip to content
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

Python 3.11+: module 'asyncio' has no attribute 'coroutine' #1261

Closed
djuarezg opened this issue Aug 21, 2023 · 8 comments
Closed

Python 3.11+: module 'asyncio' has no attribute 'coroutine' #1261

djuarezg opened this issue Aug 21, 2023 · 8 comments

Comments

@djuarezg
Copy link

image

Running with jupyter/scipy-notebook:python-3.11.3 and probably related to https://stackoverflow.com/questions/74345065/attributeerror-module-asyncio-has-no-attribute-coroutine-in-python-3-11

@djuarezg djuarezg added the bug label Aug 21, 2023
@welcome
Copy link

welcome bot commented Aug 21, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@fcollonval
Copy link
Member

Xref: #1247

The underlying pexpect library is not yet compatible with Python 3.11. I'm pushing to get a new release as their dev branch works.

@firai
Copy link

firai commented Dec 20, 2023

It seems like the latest pexpect master was released a month ago?

@fcollonval
Copy link
Member

Thanks a lot for the news @firai
Indeed the issue should be fixed now --> closing this one

@bluechallenge
Copy link

bluechallenge commented Feb 3, 2024

Thanks a lot for the news @firai Indeed the issue should be fixed now --> closing this one

@fcollonval Sorry, may I know some more details about how to fix this issue? I still have trouble with jupyterlab-git v0.50.0 & Python 3.11.6. Can I assume we should expect a newer jupyterlab-git to address this issue? Thanks.

@fcollonval
Copy link
Member

@bluechallenge could you check the pexpect version you are using?
It should be 4.9+ to work with python 3.11+

@bluechallenge
Copy link

@bluechallenge could you check the pexpect version you are using? It should be 4.9+ to work with python 3.11+

Thanks a lot @fcollonval. It works well now after upgrading pexpect from 4.8 to 4.9 via "pip install pexpect==4.9.0".

PMax5 added a commit to PMax5/jupyter-images that referenced this issue Feb 13, 2024
Jupyterlab git extension uses the pexpect python module as a dependency.
However, the extension only works properly with the latest version
(4.9.0) of pexpect, together with python 3.11, which is the python
version that is used by jupyterlab.

This issue was reported in the repository of the git extension, on
GitHub:
jupyterlab/jupyterlab-git#1261
diocas pushed a commit to swan-cern/jupyter-images that referenced this issue Feb 13, 2024
Jupyterlab git extension uses the pexpect python module as a dependency.
However, the extension only works properly with the latest version
(4.9.0) of pexpect, together with python 3.11, which is the python
version that is used by jupyterlab.

This issue was reported in the repository of the git extension, on
GitHub:
jupyterlab/jupyterlab-git#1261
RodrigoSobral2000 pushed a commit to RodrigoSobral2000/jupyter-images that referenced this issue Feb 26, 2024
Jupyterlab git extension uses the pexpect python module as a dependency.
However, the extension only works properly with the latest version
(4.9.0) of pexpect, together with python 3.11, which is the python
version that is used by jupyterlab.

This issue was reported in the repository of the git extension, on
GitHub:
jupyterlab/jupyterlab-git#1261
@Kaschmiri
Copy link

Kaschmiri commented Mar 22, 2024

So anyone using jupyerlab git on conda environments is going to run into this issue because pexpect v 4.8.0 is the latest version available on anaconda.
4.9.0 is available on conda-forge, though.

conda config --add channels conda-forge
conda config --set channel_priority strict
conda update pexpect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants