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

Git clone or push does not work for repositories requiring authentication #1309

Closed
wno-xyt opened this issue Dec 13, 2023 · 5 comments
Closed

Comments

@wno-xyt
Copy link

wno-xyt commented Dec 13, 2023

Description

When trying to clone(or push) a repository using jupyterlab-git extension the following message appears:

image

Opening terminal and cloning or pushing the same repo with same user using cmdline works.

Reproduce

  1. Go to 'Git -> Clone a repository'
  2. Select a repository requiring authentication
  3. Provide username and token
  4. See error as per above screenshot

While reporoducing it in container I can see the following stack trace:

Context

  • Python package version:
(base) jovyan@27163b7383cc:~$ conda list jupyterlab-git
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
jupyterlab-git            0.50.0                   pypi_0    pypi
  • Extension version:
jupyter labextension list
JupyterLab v4.0.9
/opt/conda/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        nbdime-jupyterlab v3.0.1 enabled OK
        jupyterlab-plotly v5.18.0 enabled  X
        jupyter-matplotlib v0.11.3 enabled OK
        @jupyter-notebook/lab-extension v7.0.6 enabled OK
        @jupyterlab/git v0.50.0 enabled OK (python, jupyterlab-git)
        @jupyterhub/jupyter-server-proxy v4.1.0 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.9 enabled OK (python, jupyterlab_widgets)


   The following extensions are outdated:
        jupyterlab_pygments
        jupyterlab-plotly
        
   Consider checking if an update is available for these packages.
  • Git version:
(base) jovyan@27163b7383cc:~$ git --version
git version 2.34.1
  • Operating System and its version:
    This is docker container (slightly modified):
    jupyter/scipy-notebook:x86_64-lab-4.0.7

Cloning a public repo that does not require authentication works without problems.

Any hints on how to fix this or any workarounds?

@wno-xyt wno-xyt added the bug label Dec 13, 2023
Copy link

welcome bot commented Dec 13, 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! 🎉

@clabnet
Copy link

clabnet commented Dec 13, 2023

Also for me, same issue.

@skender18
Copy link

I got the same issue with python 3.11.6

@wno-xyt
Copy link
Author

wno-xyt commented Dec 19, 2023

For the ones using docker image we found a workaround to have working image:

FROM jupyter/scipy-notebook:x86_64-lab-4.0.7

#Your custom stuff for image goes here.

RUN pip install git+https://github.com/pexpect/pexpect.git@master
RUN mamba install --yes \
    'jupyterlab-git==0.50.0' \
    'jupyterlab==4.0.8' && \
    mamba clean --all -f -y && \
    fix-permissions "${CONDA_DIR}" && \
    fix-permissions "/home/${NB_USER}"

With this we have a docker image with working cloning and pushing.
Hope this helps.

@fcollonval
Copy link
Member

Yes the issue is the one of pexpect: #1261

Closing this one as duplicate.

@fcollonval fcollonval closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
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

4 participants