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

Overly dramatic appearance on windows on first contact #94

Open
mih opened this issue Dec 18, 2021 · 3 comments
Open

Overly dramatic appearance on windows on first contact #94

mih opened this issue Dec 18, 2021 · 3 comments
Assignees

Comments

@mih
Copy link
Member

mih commented Dec 18, 2021

I installed it and naively typed datalad-installer:

C:\Users\mih>datalad-installer
2021-12-18T14:55:30+0100 [INFO    ] datalad_installer Writing environment modifications to C:\Users\mih\AppData\Local\Temp\dl-env-exlo4d0e.sh
Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\mih\AppData\Roaming\Python\Python39\Scripts\datalad-installer.exe\__main__.py", line 7, in <module>
  File "C:\Users\mih\AppData\Roaming\Python\Python39\site-packages\datalad_installer.py", line 2158, in main
    return manager.main(argv)
  File "C:\Users\mih\AppData\Roaming\Python\Python39\site-packages\datalad_installer.py", line 682, in main
    self.addcomponent(name=cr.name, **cr.kwargs)
  File "C:\Users\mih\AppData\Roaming\Python\Python39\site-packages\datalad_installer.py", line 731, in addcomponent
    component(self).provide(**kwargs)
  File "C:\Users\mih\AppData\Roaming\Python\Python39\site-packages\datalad_installer.py", line 1133, in provide
    raise RuntimeError(f"No viable installation method for {self.NAME}")
RuntimeError: No viable installation method for datalad

Maybe this could become a message without a traceback? Or even something informative, suggesting possible mitigations?

@yarikoptic
Copy link
Member

@jwodder WDYT? indeed it sounds a bit melo-dramatic. Can't it become a sequence of installations which would mimic something (didn't test) like

datalad-installer git-annex -m datalad/packages miniconda datalad -m conda-forge

?

@jwodder
Copy link
Member

jwodder commented Jul 28, 2022

@yarikoptic I think we should move away from a "default" operation when datalad-installer is invoked without arguments, as we'll never get something satisfying for all uses; running just datalad-installer should just show a usage/help message.

@yarikoptic
Copy link
Member

may be... not yet convinced since I think it should be feasible to just run datalad-installer datalad on pristine freshly installed box and get result quite consistently. But I wonder if overall this relates to #46 since IIRC and following http://handbook.datalad.org/en/latest/intro/installation.html?highlight=installation we need standalone (not in conda) installation of git for git-annex to operate Ok. But I could be wrong.

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

4 participants