Closed kmindspark closed 7 years ago
Please let us know of any steps necessary to reproduce this error.
@kmindspark, how did you install PROS for Atom?
Hi, I installed PROS through the website which came with atom, and then had to update the version of atom that came with pros.
I also tried downloading Atom separately and then adding the pros package, but the same error was given.
Can you open a terminal and run pros
? Please share the result of running that command here.
-bash: pros: command not found
Okay, can you run the command echo $PATH
?
/Users/myname/anaconda/bin:/Users/myname/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/apache-maven-3.3.9/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin:/Applications/PROS_2.0/gcc-arm-none-eabi-4_7-2014q2/bin
This is my fault for not having the installer fail properly when Python isn't installed. Try downloading the newest version of Python 3 from https://www.python.org/downloads/ (It should Auto-detect your operating system). Then open Terminal and run pip3 install --upgrade pros-cli
. That should get you everything you nee; no need to rerun the installer.
Thanks, this worked. However, after I created a new PROS project, each time I click on a ".c" file, it gives me an ENOENT error. Is there a way to fix this?
Here are the full details:
Uncaught Error: ENOENT: no such file or directory, stat 'arm-none-eabi-g++'
fs.js:992
Hide Stack Trace
Error: ENOENT: no such file or directory, stat 'arm-none-eabi-g++'
at Error (native)
at fs.statSync (fs.js:992:18)
at Object.fs.statSync (ELECTRON_ASAR.js:275:16)
at /Users/myname/.atom/packages/pros/lib/lint.coffee:53:38
at /Users/myname/.atom/packages/pros/node_modules/command-exists/lib/command-exists.js:12:13
at ChildProcess.exithandler (child_process.js:225:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.
Just seeing that this involves lint.coffee, I think this is probably solved by downloading Xcode from the app store, and then running it at least once.
Just as a sanity check, you should be able to open Terminal and run arm-none-eabi-g++
, and get arm-none-eabi-g++: fatal error: no input files compilation terminated.
in response.
I'm getting this too, macOS Sierra.
TypeError: Cannot read property '1' of null
at /Users/Cody/.atom/packages/pros/lib/views/welcome/welcome-view.coffee:75:98
at ChildProcess.<anonymous> (/Users/Cody/.atom/packages/pros/lib/terminal-utilities.coffee:29:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pros", line 7, in <module>
from proscli.main import main
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/proscli/__init__.py", line 5, in <module>
from proscli.conductor import conductor_cli
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/proscli/conductor.py", line 77, in <module>
@click.option('--registrar', metavar='REGISTRAR', prompt=True, type=click.Choice(available_providers()),
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/proscli/conductor.py", line 71, in available_providers
return utils.get_all_provider_types().keys()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/prosconductor/providers/utils.py", line 18, in get_all_provider_types
spec.loader.load_module()
File "<frozen importlib._bootstrap_external>", line 385, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 806, in load_module
File "<frozen importlib._bootstrap_external>", line 665, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 626, in _exec
File "<frozen importlib._bootstrap_external>", line 658, in exec_module
File "<frozen importlib._bootstrap_external>", line 868, in get_code
File "<frozen importlib._bootstrap_external>", line 815, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/PROS_2.0/PROS_CLI/githubreleases.pyc'
Looks like your strace is keeping it 💯 :)
Just to confirm, have you tried the solution @jwalk511 posted above?
Funny.
Yes I have both run XCode and I already had Python 3.5 installed. I ran the Python installer again just to be sure.
I also cannot create projects.
Also everytime I run Atom, I get this...
It seems to be trying to update but never succeeds.
The CLI stack trace looks sort of similar to the issues we were having in purduesigbots/pros-cli#15. Can you run pip3 install --upgrade pros-cli
, then rm -rf ~/Library/Application Support/PROS
(@jwalk511 might need to confirm the location that this is where the PROS CLI local config is, although if it's not there it should be in ~/.pros)
Last login: Mon Dec 5 10:18:31 on ttys001
Codys-Mac:~ Cody$ pip3 install --upgrade pros-cli
Requirement already up-to-date: pros-cli in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
Requirement already up-to-date: tabulate in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: semantic-version in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: jsonpickle in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: click in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: pyserial in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: cachetools in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
Requirement already up-to-date: requests in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pros-cli)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Codys-Mac:~ Cody$ rm -rf ~/Library/Application Support/PROS
Codys-Mac:~ Cody$
No change.
~/Library/Application\ Support/Pros
is the correct path. I don't know how Bash will respond if you don't escape the space in 'Application Support', but it probably doesn't do what we want. Try rm -rf ~/Library/Application Support/PROS
, and see how that works.
Since you managed to get one of the early installers, if you run which pros
you may not see /Library/Frameworks/Python.framework/Versions/3.5/bin/pros
If you see a path with Applications
, then modify ~/.bash_profile
and erase the line that contains PROS/PROS_CLI
Save and restart Terminal
If which pros
still doesn't give you the right path, try pip3 uninstall pros-cli
and then pip3 install --upgrade pros-cli
As for Atom, the update issue is probably it fussing about living in an admin-owned space (/Applications), and I might have to start installing it in ~/Applications
instead. Try moving Atom to your desktop or some other user-owned space, and see if you still have the issue. If you do, run sudo /Applications/PROS_2.0/scripts/uninstallAtom.command
and try again. Once you do, you'll have to re download the PROS plugin from Atom's package manager. For future reminder, apm install pros
from the command line, or just search pros
in Atom's package installer.
As the original issue in this thread was solved above, I am going to create new issues for each separate problem with the hope that we can keep relevant discourse in relevant places.
To recap, the original issue was a stacktrace containing the following error:
TypeError: Cannot read property '1' of null
at /Users/kaushikshivakumar/.atom/packages/pros/lib/views/welcome/welcome-view.coffee:75:98
at ChildProcess.<anonymous> (/Users/kaushikshivakumar/.atom/packages/pros/lib/terminal-utilities.coffee:29:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
which was solved in the following post:
This is my fault for not having the installer fail properly when Python isn't installed. Try downloading the newest version of Python 3 from https://www.python.org/downloads/ (It should Auto-detect your operating system). Then open Terminal and run pip3 install --upgrade pros-cli. That should get you everything you nee; no need to rerun the installer. [per @jwalk511]
The next issue involving the linter throwing an ENOENT error can now be found in #19
There are a few other mac/atom-related issues here too, but I can't really distinguish between them no matter how many times Josh explains them to me, so I'll leave them for him.
[Enter steps to reproduce below:]
Atom Version: 1.12.4 Electron Version: 1.3.9 System: Mac OS X 10.12 Thrown From: pros package, v0.5.4
Stack Trace
Uncaught TypeError: Cannot read property '1' of null
Commands
Config
Installed Packages