How to handle credentials on Windows #1085
-
Hi, When I try to push a commit to a remote repository I get the following error: Traceback (most recent call last): File "\anaconda3\envs\onlinelearning-env\lib\site-packages\jupyterlab_git\git.py", line 135, in execute code, output, error = await call_subprocess_with_authentication( File "\anaconda3\envs\onlinelearning-env\lib\site-packages\jupyterlab_git\git.py", line 71, in call_subprocess_with_authentication p = pexpect.spawn( AttributeError: module 'pexpect' has no attribute 'spawn' From what I could gather, "pexpect.spawn and pexpect.run() are not available on Windows, as they rely on Unix pseudoterminals (ptys). Cross platform code must not use these.". Does this mean it's impossible to push to a remote repository on Windows? Or is there a way around this issue? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For now the handling of authentication by the extension is not working on Windows due to the limitation you are mentioning (reference issue #492). One way to solve it is to set up a credential helper to deal with the authentication for you. For that you will need to use Git for Windows. Then I think, it will work out of the box and prompt with a dialog if your credentials are required. |
Beta Was this translation helpful? Give feedback.
For now the handling of authentication by the extension is not working on Windows due to the limitation you are mentioning (reference issue #492).
One way to solve it is to set up a credential helper to deal with the authentication for you. For that you will need to use Git for Windows. Then I think, it will work out of the box and prompt with a dialog if your credentials are required.