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

AttributeError: module 'asyncio' has no attribute 'coroutine' #118

Open
maisam94 opened this issue Feb 7, 2024 · 3 comments
Open

AttributeError: module 'asyncio' has no attribute 'coroutine' #118

maisam94 opened this issue Feb 7, 2024 · 3 comments

Comments

@maisam94
Copy link

maisam94 commented Feb 7, 2024

Hey,
I am using jupyterlab on EKS, used image kubeflownotebookswg/jupyter-tensorflow-cuda-full
After installation, I am clone the repository from GitHub with authentication.

I get an error:

Traceback (most recent call last): File "/opt/conda/lib/python3.11/site-packages/jupyterlab_git/git.py", line 175, in execute code, output, error = await call_subprocess_with_authentication( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyterlab_git/git.py", line 119, in call_subprocess_with_authentication i = await p.expect(["Username for .: ", "Password for .:"], async_=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/pexpect/spawnbase.py", line 343, in expect return self.expect_list(compiled_pattern_list, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/pexpect/spawnbase.py", line 369, in expect_list from ._async import expect_async File "/opt/conda/lib/python3.11/site-packages/pexpect/_async.py", line 7, in @asyncio.coroutine ^^^^^^^^^^^^^^^^^ AttributeError: module 'asyncio' has no attribute 'coroutine'

How can fix it, and can we clone from GitHub?

Thanks

@pythonking6
Copy link

It is striking to me that this issue has been open since February 7 and yet it is still in Needs Triage!!

@mildmojo
Copy link

mildmojo commented Jul 16, 2024

This looks like the upstream issue:

jupyterlab/jupyterlab-git#1261

Sounds like the pexpect package needs to be updated to at least v4.9.0 to support Python 3.11. When I encountered this problem in a new jupyter notebook in my kubeflow deployment, I was able to use Kaschmiri's workaround from that issue, starting a terminal in the notebook and running:

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

It took a few minutes to run, and then I was able to clone a private github repo with my username and PAT.

I'd like to see a full fix or a way to run that workaround on each new notebook.

@andreyvelich
Copy link
Member

/transfer notebooks

@google-oss-prow google-oss-prow bot transferred this issue from kubeflow/kubeflow Nov 11, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Status: To Do
Development

No branches or pull requests

4 participants