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

Remote installation of the soma-workflow server is incompletely configured #56

Open
ylep opened this issue Apr 29, 2020 · 1 comment
Open

Comments

@ylep
Copy link
Member

ylep commented Apr 29, 2020

In the GUI, under Server management / Add Server, the “Install on Server and Client” action fails for me: while the soma-workflow code is copied successfully on the server, the PYTHONPATH fails to be correctly configured:

  1. The export PYTHONPATH=... line is never added to my ~/.bashrc
  2. Even if I add it manually, it still does not work because ~/.bashrc is only parsed when a full-featured remote shell is launched, not when a remote command is executed through paramiko (similarly with ssh user@host printenv PYTHONPATH).

Moreover, wouldn't it make more sense to store the server’s PYTHONPATH in the client configuration, and state it explicitly with each remote command, so that it is only used by this specific client, rather than imposing it globally in ~/.bashrc? I suspect that the ~/.bashrc approach can very easily lead to version mismatches.

@populse/soma we need to reach an agreement on how to proceed with this issue, what are your thoughts?

@denisri
Copy link
Contributor

denisri commented Apr 29, 2020

Yes I agree and this is one of the reasons I was not completely fan of this auto-install feature, but on the other side it is useful for people who need to quickly setup soma-workflow.
Another way is an install via pip on server side.

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

2 participants