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

Mamba not recognized on windows #119

Closed
fcollonval opened this issue Dec 6, 2020 · 0 comments · Fixed by #120
Closed

Mamba not recognized on windows #119

fcollonval opened this issue Dec 6, 2020 · 0 comments · Fixed by #120
Assignees

Comments

@fcollonval
Copy link
Member

Description

The command used for detecting the version of mamba is not working on Windows:

from subprocess import Popen, PIPE

Popen(["mamba", "--version"], stdout=PIPE, stderr=PIPE).communicate()
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-6-8405acab7e6e> in <module>()
      1 from subprocess import Popen, PIPE
      2 
----> 3 Popen(["conda", "--version"], stdout=PIPE, stderr=PIPE).communicate()

C:\Users\freud\Miniconda3\envs\gator\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    798                                 c2pread, c2pwrite,
    799                                 errread, errwrite,
--> 800                                 restore_signals, start_new_session)
    801         except:
    802             # Cleanup if the child failed starting.

C:\Users\freud\Miniconda3\envs\gator\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
   1205                                          env,
   1206                                          os.fspath(cwd) if cwd is not None else None,
-> 1207                                          startupinfo)
   1208             finally:
   1209                 # Child is launched. Close the parent's copy of those pipe

FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable
@fcollonval fcollonval self-assigned this Dec 6, 2020
fcollonval added a commit that referenced this issue Dec 6, 2020
fcollonval added a commit that referenced this issue Dec 10, 2020
* Mamba not recognized on windows
Fixes #119

* Be more tolerant
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

Successfully merging a pull request may close this issue.

1 participant