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

Unable to launch Spyder from bootstrap.py on Windows #19865

Closed
dalthviz opened this issue Oct 17, 2022 · 5 comments
Closed

Unable to launch Spyder from bootstrap.py on Windows #19865

dalthviz opened this issue Oct 17, 2022 · 5 comments

Comments

@dalthviz
Copy link
Member

dalthviz commented Oct 17, 2022

Problem Description

A traceback appears when launching Spyder from bootstrap.py. This happened to me will try to check locally #19855

Seems like is related with the subprocess that calls git to check the branch info. I guess on Windows instead of "/usr/bin/env" we need to use "cmd.exe" or something similar?

Edit:

Just in case, seems like on Windows something like the following works:

result = subprocess.run(
        ["git.cmd", "merge-base", "--fork-point", "master"], shell=True
    )

What steps reproduce the problem?

Try to run Spyder from the bootstrap.py script on Windows

What is the expected output? What do you see instead?

Spyder launching, instead a traceback

Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
  File "E:\Acer\Documentos\Spyder\Spyder otros\carlos\spyder\bootstrap.py", line 83, in <module>
    result = subprocess.run(
  File "C:\Users\dalth\anaconda3\envs\spyder-dev\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\dalth\anaconda3\envs\spyder-dev\lib\subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\dalth\anaconda3\envs\spyder-dev\lib\subprocess.py", line 1438, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado

@sylvain-bougnoux
Copy link
Contributor

yes same issue, seems to be introduced by @mrclary

Author: Ryan Clary 9618975+mrclary@users.noreply.github.com
Date: 2 days ago (15-10-22 00:24:04)
Commit hash: ac6d16b
Child: 0198e70
Parent: 50ca5f7

@dalthviz dalthviz self-assigned this Oct 17, 2022
@dalthviz dalthviz added this to the v5.4.0 milestone Oct 17, 2022
@mrclary
Copy link
Contributor

mrclary commented Oct 17, 2022

Sorry about that! I forgot to check that on Windows.
@dalthviz, do you want me to submit a PR or have you already started?

@ccordoba12
Copy link
Member

@dalthviz was faster and already submitted a PR!

@dalthviz
Copy link
Member Author

Thank you @sylvain-bougnoux for the confirmation and thanks @mrclary for the quick response!

I submitted PR #19867 if you can give it a review that would be great 👍

@ccordoba12
Copy link
Member

Sorry, this was my bad too because I merged @mrclary's PR without waiting for @dalthviz to review it.

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