Komodo Edit - Terminal/Bash Error

I’m currently trying to execute my python script outside of the integrated command line (it does work quite fine there). However, when I choose ‘run in console’ when creating the command - I get this error:

I have tried almost every command variation possible. When I copy the result of the command from the error window and execute it myself, within terminal, the program functions as expected. So the problem is how komodo edit interacts with the terminal. I’ve also tried changing the bash link in preferences to my x terminal emulator (that geany editor uses to execute code), but the error continues.

Does anyone have any ideas as to how I get this to work? (It is possible I’ve misunderstood what ‘open in new console’ means, but I just assumed that would mean open in the command line)

Anyways, I would really appreciate some help. Its the only thing preventing me from using komodo as my default editor.

Thanks.

EDIT:
If I have /etc/…/x-terminal-emulator as the command and have it set to the integrated console output, a terminal window will run. So, komodo edit is successfully able to run commands by bash. This isnt the case when I select new console window.

Hey @sevslayr,

Can you share you OS version and the command you’re trying to run? Looks like it should just be ‘%(python3) %F’.

  • Carey

Can you check if there are any relevant-looking lines in the log files? (Help -> Troubleshooting -> View Log File)

(Thinking about bug 97883; the error log should be able to tell us more.)

1 Like
Log (as requested):

[2015-02-14 11:16:49,058] [WARNING] koSkin: Detected GTK theme via libgtk: elementary
[2015-02-14 11:16:51,100] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2015-02-14 11:16:51,100] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2015-02-14 11:16:51,100] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2015-02-14 11:16:51,100] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2015-02-14 11:16:51,101] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2015-02-14 11:16:51,101] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2015-02-14 11:16:51,101] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2015-02-14 11:16:51,194] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2015-02-14 11:16:51,194] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2015-02-14 11:16:51,194] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2015-02-14 11:16:51,194] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2015-02-14 11:16:51,195] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2015-02-14 11:16:51,195] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2015-02-14 11:16:51,195] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2015-02-14 11:16:51,482] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-02-14 11:16:51,530] [DEBUG] places_js: waiting for document complete
[2015-02-14 11:16:51,635] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2015-02-14 11:16:51,636] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2015-02-14 11:16:51,636] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2015-02-14 11:16:51,636] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2015-02-14 11:16:51,636] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2015-02-14 11:16:51,637] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2015-02-14 11:16:51,637] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
ERROR:xpcom:Unhandled exception calling 'int8 * Run(in wstring, in wstring, in wstring, in boolean, in unicode &);'
Traceback (most recent call last):
  File "/usr/lib/komodo-edit/mozilla/python/xpcom/server/policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "/usr/lib/komodo-edit/mozilla/components/koRunService.py", line 1054, in Run
    stdin=None, stdout=None, stderr=None)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/process.py", line 352, in __init__
    creationflags=flags)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/subprocess32.py", line 812, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/subprocess32.py", line 1557, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'xterm'
[2015-02-14 11:17:13,895] [ERROR] run_functions: Unknown error running: ''/usr/local/bin/python3 /home/lament/Documents/Programming/Python/Projects/Gatline/main.py''Traceback from ERROR in 'run_functions' logger:
    <top>
    [anonymous]@chrome://komodo/content/library/logging.js:247
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:552
    Run_CommandPart@chrome://komodo/content/project/peCommand.js:100
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:76
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:972
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:1018
    ondblclick@chrome://komodo/content/toolbox/toolboxPanel.xul:1
    [anonymous]@null:0

ERROR:xpcom:Unhandled exception calling 'int8 * Run(in wstring, in wstring, in wstring, in boolean, in unicode &);'
Traceback (most recent call last):
  File "/usr/lib/komodo-edit/mozilla/python/xpcom/server/policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "/usr/lib/komodo-edit/mozilla/components/koRunService.py", line 1054, in Run
    stdin=None, stdout=None, stderr=None)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/process.py", line 352, in __init__
    creationflags=flags)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/subprocess32.py", line 812, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/komodo-edit/mozilla/python/komodo/subprocess32.py", line 1557, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'xterm'
[2015-02-14 11:17:19,080] [ERROR] run_functions: Unknown error running: ''/usr/local/bin/python3 /home/lament/Documents/Programming/Python/Projects/Gatline/main.py''Traceback from ERROR in 'run_functions' logger:
    <top>
    [anonymous]@chrome://komodo/content/library/logging.js:247
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:552
    Run_CommandPart@chrome://komodo/content/project/peCommand.js:100
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:76
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:972
    [anonymous]@chrome://komodo/content/toolbox/toolbox2_command.js:1018
    ondblclick@chrome://komodo/content/toolbox/toolboxPanel.xul:1
    [anonymous]@null:0

[2015-02-14 11:17:25,922] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2015-02-14 11:17:25,923] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2015-02-14 11:17:25,923] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2015-02-14 11:17:25,923] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2015-02-14 11:17:25,923] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2015-02-14 11:17:25,923] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2015-02-14 11:17:25,924] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'

I’m running Linux: ElementaryOS (Ubuntu based I believe).

The error occurs when you run ANY command while having ‘Run in new Console’ selected. I’ve tried a large variety of commands. As mentioned before, komodo functions as expected when ‘Command Output Tab’ is selected.

I used the command you posted for the log file below.

Hi! Yes, your logs do say OSError: [Errno 2] No such file or directory: 'xterm' - so it’s bug 97883 as mentioned.

As a workaround, please try installing the xterm package (or otherwise make the xterm command available, possibly by symlinking it to x-terminal-emulator).

Thanks, I have it working now!