You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by @yakutovicha on AiiDA lab (aiida v0.12.2)
Profile name [quicksetup]: test
Email Address (identifies your data when sharing): test@gmail.com
First Name: test
Last Name: test
Institution: test
Traceback (most recent call last):
File "/usr/local/bin/verdi", line 11, in <module>
sys.exit(run())
File "/usr/local/lib/python2.7/dist-packages/aiida/cmdline/verdilib.py", line 1050, in run
aiida.cmdline.verdilib.exec_from_cmdline(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/aiida/cmdline/verdilib.py", line 1035, in exec_from_cmdline
CommandClass.run(*argv[command_position + 1:])
File "/usr/local/lib/python2.7/dist-packages/aiida/cmdline/verdilib.py", line 622, in run
quicksetup.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 27, in new_func
return f(get_current_context().obj, args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/aiida/cmdline/verdilib.py", line 655, in quicksetup
success = postgres.determine_setup()
File "/usr/local/lib/python2.7/dist-packages/aiida/control/postgres.py", line 113, in determine_setup
non_interactive=bool(not self.interactive), **dbinfo):
File "/usr/local/lib/python2.7/dist-packages/aiida/control/postgres.py", line 281, in _try_subcmd
_pg_execute_sh(r'\q', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/aiida/control/postgres.py", line 345, in _pg_execute_sh
result = subprocess.check_output(sudo_su_psql, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/subprocess32.py", line 629, in check_output
process = Popen(stdout=PIPE, popenargs, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/subprocess32.py", line 825, in _init_
restore_signals, start_new_session)
File "/usr/local/lib/python2.7/dist-packages/subprocess32.py", line 1574, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'sudo'
Reported by @yakutovicha on AiiDA lab (aiida v0.12.2)
This seems to apply both in master:
https://github.com/aiidateam/aiida_core/blob/651a09a60be4dfe34ec97d6f45fbe6e377af2c86/aiida/control/postgres.py#L345
and in develop:
https://github.com/aiidateam/aiida_core/blob/9ec944564bc7e4c2af58b17f0711d1c25be8b4b6/aiida/control/postgres.py#L334
To Do:
The text was updated successfully, but these errors were encountered: