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

GitHub installation fails on Windows with Python 3.11.3 #13

Open
jcrozum opened this issue Jul 25, 2023 · 1 comment
Open

GitHub installation fails on Windows with Python 3.11.3 #13

jcrozum opened this issue Jul 25, 2023 · 1 comment
Assignees

Comments

@jcrozum
Copy link

jcrozum commented Jul 25, 2023

See error:

> pip install git+https://github.com/CASCI-lab/distanceclosure
Collecting git+https://github.com/CASCI-lab/distanceclosure
  Cloning https://github.com/CASCI-lab/distanceclosure to c:\users\jcroz\appdata\local\temp\pip-req-build-0flh4f05
  Running command git clone --filter=blob:none --quiet https://github.com/CASCI-lab/distanceclosure 'C:\Users\jcroz\AppData\Local\Temp\pip-req-build-0flh4f05'
  Resolved https://github.com/CASCI-lab/distanceclosure to commit 87a6167d4bcb3f18efe5ed09d8203965a906aa21
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\jcroz\AppData\Local\Temp\pip-req-build-0flh4f05\setup.py", line 17, in <module>
          subprocess.Popen("rm -rf build", shell=True, executable="/bin/bash")
        File "C:\Users\jcroz\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1024, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "C:\Users\jcroz\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1509, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      FileNotFoundError: [WinError 3] The system cannot find the path specified
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

It looks like setup.py is trying to open bash, which it absolutely should not have to do. I suspect that people have been getting too creative with the install scripts...

@fcphysics
Copy link
Collaborator

I believe this has been solved in PR14, can confirm @jcrozum ?

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

No branches or pull requests

2 participants