Unknown error running: 'py


#1

Hey,

I cannot run Python codes on Komodo, I can see the below screenshot

Using Windows 10
In the run command tried
py “%F”
“%(Python)” “%F”
“%(Python3)” “%F”


#2

[2018-12-26 22:20:03,858] [ERROR] CT::margin.js: couldn’t get the change-color
– EXCEPTION START –
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function

  • stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:71:33
    refreshMarginProperies@chrome://trackchanges/content/margin.js:120:9
    MarginController@chrome://trackchanges/content/margin.js:44:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:297:17
    initWithDocument@vieweditor:410:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:361:20
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:485:12
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:510:20
    – EXCEPTION END –
    [2018-12-26 22:21:15,089] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
    Traceback (most recent call last):
    File “chrome://openfiles/content/openfiles.js”, line 585, in

[2018-12-26 22:21:17,743] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
File “chrome://openfiles/content/openfiles.js”, line 585, in

[2018-12-26 22:21:20,980] [ERROR] process: process.py: can’t execute None (C:\Windows\system32\cmd.exe /c “”%(Python3)" “C:\Users\lapshop\Downloads\Ex_Files_Python_EssT\Ex_Files_Python_EssT\Exercise Files\Chap01\hello-working.py”")
ERROR:xpcom:Unhandled exception calling ‘int8 * RunInTerminal(in wstring, in wstring, in wstring, in nsISomething, in nsISomething, in unicode &, out retval nsISomething);’
Traceback (most recent call last):
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\components\koRunService.py”, line 958, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\python\komodo\runutils.py”, line 150, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\python\komodo\process.py”, line 361, in init
creationflags=flags)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “C:\Program Files (x86)\ActiveState Komodo Edit 11\lib\mozilla\python\komodo\process.py”, line 179, in _execute_child
startupinfo)
WindowsError: [Error 5] Access is denied
[2018-12-26 22:27:52,680] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_4’
[2018-12-26 22:27:52,680] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_5’
[2018-12-26 22:27:52,680] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_2’
[2018-12-26 22:27:52,680] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_3’
[2018-12-26 22:27:52,681] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_1’
[2018-12-26 22:27:52,681] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_change’
[2018-12-26 22:27:52,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘spelling_error’
[2018-12-26 22:27:52,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_local_change’
[2018-12-26 22:27:56,015] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0


#3

It’s either the "s around the interpolation string %(python3) or you don’t have Python 3 configured in your preferences and it can’t find a Python 3 interpreter on your system PATH. Manually configure it in Komodo under Edit menu > Preferences > Languages > Python 3.

  • Carey

#4

Already done

I’m using different editors and already reads Python


#5

What about removing the quotes around the interpolation string?


#6

Removed and still


#7

I missed that in your error logs. Are you certain that you’ve configured the correct interpreter? The Python interpreter isn’t typically in the AppData dir of your system. It looks like the other editor you’re using now is Atom? Is Atom using that interpreter?


#8

I’m using both Visual Studio and PyCharm and both are working


#9

@Basel_Adel_Makram you didn’t answer any of my questions. Please confirm. If you’ve had the Python3 interpreter configured to your AppData dir the whole time then i suggest removing it.


#10

I have this problem too and I don’t know the reason at all


#11

Hi @Javad_Khonamri, can you share your logs? Help > Troubleshooting > View Log File