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
pexpect.spawn
does not support Windows
#492
Comments
Documentation also says "PopenSpawn is not a direct replacement for spawn". That suggests to me that we would need to add separate implementation of GitAuthInputWrapper for Windows. Any thoughts on that? I am willing to help if needed. |
@ktaletsk thank you for kicking in. Any help would be appreciated 😄 Your proposal to handle Windows specifically is fine for me. |
Entering passwords with Refs: Originally posted by @telamonian in #493 (comment) |
This would also be a good opportunity to start adding integration testing + testing on windows in the CI setup
|
Some simple example of using |
I'm still getting this error: Traceback (most recent call last): File "C:\Users\conor\anaconda3\lib\site-packages\jupyterlab_git\git.py", line 135, in execute code, output, error = await call_subprocess_with_authentication( File "C:\Users\conor\anaconda3\lib\site-packages\jupyterlab_git\git.py", line 71, in call_subprocess_with_authentication p = pexpect.spawn( AttributeError: module 'pexpect' has no attribute 'spawn' Has the pexpect issue not been resolved, meaning this cannot be used in Windows? |
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.
|
Ok, I ended up having to just push from Git for Windows and do all other operations in JupyterLab. A little annoying, but not too bad. Having used this functionality on Linux it is quite nice, hopefully it comes to Windows some day. Thanks for the help! |
Per the documentation, the currently used
pexpect.spawn
to handle git authentication does not support Windows:https://pexpect.readthedocs.io/en/stable/overview.html#pexpect-on-windows
For Windows, they recommand:
The text was updated successfully, but these errors were encountered: