Atom-script: Unable to run - is what in your PATH?

Created on 6 Dec 2015  路  7Comments  路  Source: atom-community/atom-script

On trying to use this, I get the below message. I did indeed run atom from the command line with 'atom .' but have no idea what "Is it in your PATH?" means. Can you advise what I should do to put 'it' in my path please? Ruby? Atom? and how would I do that? Google was not my friend on this. I don't find this message helpful. I'm using Linux Mint.

Thanks.
Tim.

Unable to run
ruby

Did you start Atom from the command line?
atom .

Is it in your PATH?
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Most helpful comment

Script works great for me on Windows but stopped working on Ubuntu. Even running from terminal with:
atom .

Making sure I have a shebang at the top of each python file reading:

!/usr/bin/env python3

ensures I don't get the unable to run python messages and it executes within Atom.

All 7 comments

Ahh, I found out how to update Ruby to the latest stable version (2.2.3) using RVM, and it seems to have resolved the issue. I don't know if it added Ruby or some other location to the PATH? This might help someone else.

Update: Check your Ruby version. Thought that updating Ruby had resolved and it was working fine yesterday, however created a new folder (couple of folders deep in my 'Home' folder), moved into it from command line, ran "atom ." created a file.rb, wrote some code, tried CTRL+SHFT+B and got the same error as above. Turns out after a reboot Ruby version defaulted back to 1.8. I hadn't set the default version to use in RVM. Appears to be working again.

You should read this. It's in the script's README. After the Setting.
Atom can't find node | ruby | python | my socks

Make sure to launch Atom from the console/terminal. This gives atom all your useful environment variables. Additionally, make sure to run it with the project path you need. For example, use

atom .
to get it to run with the current directory as the default place to run scripts from.

If you really wish to open atom from a launcher/icon, see this issue for a variety of workarounds that have been suggested.

Hello, i have problem with Atom!
help me, please!
photo

Same problem here, @ProVadimir @TimHandy
Unable to run Python. Searched the web, but can't find any relevant solution. I think there might be an issue with the atom path, as the same problem occurring with Ruby, JS & Python. The atom community must look forward to this problem, as it's a genuine one.

Must add that I am using Atom 1.26.1 x64 in Ubuntu 16.04

Script works great for me on Windows but stopped working on Ubuntu. Even running from terminal with:
atom .

Making sure I have a shebang at the top of each python file reading:

!/usr/bin/env python3

ensures I don't get the unable to run python messages and it executes within Atom.

python is installed on the path usr/local/bin/python3

now you just need to change the name af the python3 for python

the path need become usr/local/bin/python

if you are using the atom-python-run plugin on ATOM the terminal will run when you press the F5 or F6
if you are using the script plugin it will work when press CTRL + SHIFT + B

_"I asked for hours looking for a solution, until I stopped to see the way and it worked, I hope I have helped"_

by google translator :)

Vai Brasil :)

same issue ! please help to sovlve this error
error

Issue - https://github.com/atom-community/atom-script/issues/2529

Was this page helpful?
0 / 5 - 0 ratings