Unknown error running: 'py

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”

[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

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

Already done

I’m using different editors and already reads Python

What about removing the quotes around the interpolation string?

Removed and still

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?

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

@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.

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

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

same problem

[2022-05-23 18:19:16,538] [ERROR] process: process.py: can’t execute None (C:\Users\Даник\AppData\Local\Programs\Python\Python310\python.exe -c “import sys; sys.stdout.write(sys.version)”)
ERROR:xpcom:Unhandled exception calling ‘int8 * getVersionForBinary(in wstring, out retval wstring);’
Traceback (most recent call last):
File “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koAppInfo.py”, line 489, in getVersionForBinary
p = process.ProcessOpen(argv, cwd=cwd, env=env, stdin=None)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
[2022-05-23 18:19:16,576] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-05-23 18:19:20,871] [ERROR] koPythonLinter: ServerException
Traceback (most recent call last):
File “D:\Komodo\lib\mozilla\components\koPythonLinter.py”, line 699, in lint_with_text
(self.language_name, python))
ServerException: 2147500037 (Invalid ‘Python3’ executable: u’C:\Users\\u0414\u0430\u043d\u0438\u043a\AppData\Local\Programs\Python\Python310\python.exe’)
[2022-05-23 18:19:20,875] [ERROR] koLintService: lint_with_text exception
Traceback (most recent call last):
File “D:\Komodo\lib\mozilla\components\koLintService.py”, line 172, in lint_with_text
newLintResults = UnwrapObject(linter).lint_with_text(request, text)
File “D:\Komodo\lib\mozilla\components\koPythonLinter.py”, line 699, in lint_with_text
(self.language_name, python))
ServerException: 2147500037 (Invalid ‘Python3’ executable: u’C:\Users\\u0414\u0430\u043d\u0438\u043a\AppData\Local\Programs\Python\Python310\python.exe’)
[2022-05-23 18:19:21,898] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:19:23,193] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:19:26,683] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:19:27,944] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:19:37,141] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-05-23 18:19:44,605] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:24:27,759] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:24:42,026] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-05-23 18:25:14,480] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0
[2022-05-23 18:27:07,480] [ERROR] process: process.py: can’t execute None (C:\WINDOWS\system32\cmd.exe /c py “C:\Users\Даник\Desktop\hello.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 “D:\Komodo\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
return 0, func(*params)
File “D:\Komodo\lib\mozilla\components\koRunService.py”, line 972, in RunInTerminal
p = runutils.KoTerminalProcess(command, cwd=cwd, env=envDict)
File “D:\Komodo\lib\mozilla\python\komodo\runutils.py”, line 156, in init
self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
File “D:\Komodo\lib\mozilla\python\xpcom\components.py”, line 268, in wrapperFn
return fn(*args, **kwargs)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 328, in init
creationflags=flags)
File “D:\Komodo\lib\python\lib\subprocess.py”, line 711, in init
errread, errwrite)
File “D:\Komodo\lib\mozilla\python\komodo\process.py”, line 146, in _execute_child
startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2022-05-23 18:27:30,430] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-05-23 18:27:40,048] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0

@prynslik and @Javad_Khonamri something in Komodo isn’t able to handle the Unicode characters in your path unfortunately. The only available fix would be to put your files in a folder with a path that doesn’t have Unicode characters.

@Javad_Khonamri, this will be a easier for you as you can change that directory you’re using under Desktop but this will be more of a pain for @prynslik.