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

[JupyterLab] KubeFlow 1.8.0 - error when cloning repository #7413

Closed
alekseyolg opened this issue Nov 16, 2023 · 2 comments
Closed

[JupyterLab] KubeFlow 1.8.0 - error when cloning repository #7413

alekseyolg opened this issue Nov 16, 2023 · 2 comments
Labels

Comments

@alekseyolg
Copy link
Contributor

alekseyolg commented Nov 16, 2023

/kind bug

What steps did you take and what happened:
Installation of all components according to instructions.
Used image kubeflownotebookswg/jupyter-scipy:v1.8.0
After installation, we create a laptop based on any image and clone the repository from bitbucket with authorization.
image

image

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 <module> @asyncio.coroutine ^^^^^^^^^^^^^^^^^ AttributeError: module 'asyncio' has no attribute 'coroutine'

image

After execution I get the following in the pod logs:

[E 2023-11-16 07:21:49.149 ServerApp] {
      "Host": "kubeflow.dev",
      "Accept": "*/*",
      "Referer": "http:https://kubeflow.dev/notebook/kubeflow-user-example-com/test/lab",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
    }
[E 2023-11-16 07:21:49.149 ServerApp] 500 POST /notebook/kubeflow-user-example-com/test/git/clone?1700119308889 ([email protected]) 73.75ms referer=http:https://kubeflow.dev/notebook/kubeflow-user-example-com/test/lab
[W 2023-11-16 07:21:55.227 ServerApp.jupyterlab_git] Fail to execute ['git', 'clone', '--recurse-submodules', 'https://bitbucket-my.example/scm/mlops/dags.git', '-q']
    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 <module>
        @asyncio.coroutine
         ^^^^^^^^^^^^^^^^^
    AttributeError: module 'asyncio' has no attribute 'coroutine'
[E 2023-11-16 07:21:55.328 ServerApp] {
      "Host": "kubeflow.dev",
      "Accept": "*/*",
      "Referer": "http:https://kubeflow.dev/notebook/kubeflow-user-example-com/test/lab",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
    }
[E 2023-11-16 07:21:55.328 ServerApp] 500 POST /notebook/kubeflow-user-example-com/test/git/clone?1700119314925 ([email protected]) 220.33ms referer=http:https://kubeflow.dev/notebook/kubeflow-user-example-com/test/lab

What did you expect to happen:
Correct cloning of the repository and further work.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Kubeflow version: (version number can be found at the bottom left corner of the Kubeflow dashboard): 1.8.0
  • kfctl version: (use kfctl version): -
  • Kubernetes platform: Kubernetes on SberCloud
  • Kubernetes version: (use kubectl version): 1.25.3
  • OS (e.g. from /etc/os-release): centos 7
@alekseyolg
Copy link
Contributor Author

similar problem

jupyterlab/jupyterlab-git#1261

Needs Triage automation moved this from To Do to Closed Nov 21, 2023
@kubeflow-bot kubeflow-bot removed this from Closed in Needs Triage Nov 21, 2023
@yingding
Copy link

Here is a workaround kubeflow/manifests#2570 (comment)

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

No branches or pull requests

2 participants