dpo / atom-python-debugger

IDE-like Python debugger for Atom
MIT License
42 stars 13 forks source link

Uncaught Error: spawn EACCES #29

Open andresuhartanto opened 7 years ago

andresuhartanto commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.5 Thrown From: python-debugger package 0.2.0

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:313

Error: spawn EACCES
    at exports._errnoException (util.js:1026:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at exports.spawn (child_process.js:392:9)
    at PythonDebuggerView.module.exports.PythonDebuggerView.runBackendDebugger (/packages/python-debugger/lib/python-debugger-view.coffee:112:24)
    at PythonDebuggerView.module.exports.PythonDebuggerView.runApp (/packages/python-debugger/lib/python-debugger-view.coffee:78:6)
    at /packages/platformio-ide-debugger/node_modules/space-pen/lib/space-pen.js:220:36)
    at HTMLButtonElement.dispatch (/packages/platformio-ide-debugger/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/packages/platformio-ide-debugger/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -1:22.8.0 python-tools:goto-definition (span.syntax--meta.syntax--function-call.syntax--python)
  2x -0:54.9.0 intentions:highlight (input.hidden-input)
  9x -0:48.8.0 core:backspace (input.hidden-input)
     -0:38.8.0 intentions:highlight (input.hidden-input)
  2x -0:35.9.0 core:backspace (input.hidden-input)
     -0:34.2.0 symbols-view:toggle-project-symbols (input.hidden-input)
     -0:30.3.0 symbols-view:toggle-file-symbols (input.hidden-input)
  2x -0:28.4.0 intentions:highlight (input.hidden-input)
  2x -0:22.9.0 symbols-view:toggle-project-symbols (input.hidden-input)
     -0:21.1.0 intentions:highlight (input.hidden-input)
  5x -0:20.8.0 python-debugger:toggle (input.hidden-input)

Non-Core Packages

autocomplete-python 1.9.1 
busy-signal 1.4.3 
go-debug 1.3.2 
go-plus 5.5.5 
goto-definition 1.3.3 
intentions 1.1.2 
kite 0.30.0 
language-babel 2.57.1 
linter 2.2.0 
linter-ui-default 1.2.4 
platformio-ide-debugger 1.2.3 
platformio-ide-terminal 2.5.1 
pretty-json 1.6.3 
python-debugger 0.2.0 
python-tools 0.6.9 
dpo commented 7 years ago

Could you try setting the path to your Python executable in the package's settings?

Before hitting "run", open the Atom developer console (View -> Developer -> Toggle Developer Tools), and select the Console. When you click "run", look for a message in the Console saying "python-debugger: using ...". What follows should be the path to the Python executable you mean to use.

konasoor commented 6 years ago

Make sure you point to the full python exe path as follows, and the problem is resolved:

/home/usr/anaconda3/envs/py27/bin/python