-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error: Instalation script failed: sh: -c: line 0: syntax error near unexpected token (' sh: -c: line 0:
"${SHELL}"
#22843
Comments
Hey @Papi77, thanks for reporting. It seems you don't have |
Another possible problem is that you're not using Bash as your default shell. So, please also let us know what shell you're using in your server. |
@hlouzada, please take a look at this one. I think the problem is we're trying to run the installation script with the |
We don't require Bash, so it should work with either shell. But we do require curl. |
Hi,
I also tried to modify the user's default shell into bash: (python311_venv) (spyder) spyder@synek:~$ cat .profile
--> however keep getting the same error NOTE: What I am missing is the ability to add a default directory to which I will connect. Is it mandatory for it to be $HOME of the user? |
Currently it's mandatory to use You can try manually installing the server, but it needs the |
@ccordoba12 What do you think about adding the possibility to change the default installation location in the future? |
I have created a new "clean" user on my server and tried it again. The following is the error in Spyder log:
Using putty, I have logged in and tried to execute the command manually:
|
However, after switching to bash, I was able to execute the command manually (which suggests that in fact bash is mandatory):
...
... |
Upon next attempt to connect from Spyder I'm now getting a different error:
|
OK, thank you so much for your feedback. Will check on why bash is been required. Can you please try launching the server manually with |
|
Ohh it seems that your user directory permissions are messed up. For now please set |
Hi, Looks like there is a typo:
--> After modifying the line I no longer have the error... However, I'm not sure this is actually what I wanted :) What I was aiming for was to be able to open remote directories and maintain files, etc. Where can I see the remote files inside Spyder? |
Actually, now the connection says However the Connection messages still show Info/Error: Also, does it mean I need to open 39870 on the server to access it? |
Strange, this seems to be an issue with jupyter. Will need to check up on that. Also, Spyder currently dosen't support opening remote directories or editing files remotely, but it's planned to be added in the next release. @ccordoba12
No need to open/forward any port, as it is already tunneled by the current opened ssh connection. So you should be able to open any remote console/kernel now :) |
Description
What steps will reproduce the problem?
Use latest version of Spyder 6.0.2, go to:
Tools > "Manage remote connections..." > enter SSH data and hit Connect.
Getting the following error:
Error: Instalation script failed: sh: -c: line 0: syntax error near unexpected token
(' sh: -c: line 0:
"${SHELL}"Also, it is not possible to re-connect. Stop or Connect buttons are not active.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: