[qutebrowser] How to run a userscript in Windows

David Nebauer davidnebauer3 at bigpond.com
Wed Aug 31 15:55:18 CEST 2016


On 28/08/16 11:08, David Nebauer wrote:
>     Error while spawning userscript: The process failed to start.

Here is the relevant log output:

command called: spawn ['--userscript', 'SCRIPT.py']
Calling 
qutebrowser.browser.commands.CommandDispatcher.spawn(<qutebrowser.browser.commands.CommandDispatcher>, 
'SCRIPT.py', True, False, False)
Executing SCRIPT.py with args [], userscript=True
writable location for ConfigLocation: C:/Users/ME/AppData/Local/qutebrowser
writable location for AppLocalDataLocation: 
C:/Users/ME/AppData/Local/qutebrowser
writable location for DownloadLocation: C:/Users/ME/Downloads
SCRIPT.py is no absolute path
writable location for AppLocalDataLocation: 
C:/Users/ME/AppData/Local/qutebrowser
writable location for AppLocalDataLocation: 
C:/Users/ME/AppData/Local/qutebrowser
Userscript to run: 
C:\Users\ME\AppData\Local\qutebrowser\data\userscripts\SCRIPT.py
HTML stored from webview
Text stored from webview
Both text/HTML stored, kicking off userscript!
Starting process.
Executing: 
'C:\Users\ME\AppData\Local\qutebrowser\data\userscripts\SCRIPT.py'
Stack for error message:
   File 
"C:\Users\florian\proj\qutebrowser\.tox\cxfreeze-windows\lib\site-packages\cx_Freeze\initscripts\Console.py", 
line 27, in <module>
   File "qutebrowser/__main__.py", line 29, in <module>
   File "scripts/dev\..\..\scripts\..\qutebrowser\qutebrowser.py", line 
163, in main
   File "scripts/dev\..\..\scripts\..\qutebrowser\app.py", line 108, in run
   File "scripts/dev\..\..\scripts\..\qutebrowser\app.py", line 118, in 
qt_mainloop
   File "scripts/dev\..\..\scripts\..\qutebrowser\app.py", line 863, in 
eventFilter
   File "scripts/dev\..\..\scripts\..\qutebrowser\app.py", line 823, in 
_handle_key_event
   File "scripts/dev\..\..\scripts\..\qutebrowser\keyinput\modeman.py", 
line 318, in eventFilter
   File "scripts/dev\..\..\scripts\..\qutebrowser\keyinput\modeman.py", 
line 170, in _eventFilter_keypress
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\keyinput\basekeyparser.py", 
line 305, in handle
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\keyinput\basekeyparser.py", 
line 134, in _handle_special_key
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\keyinput\keyparser.py", line 
44, in execute
   File "scripts/dev\..\..\scripts\..\qutebrowser\commands\runners.py", 
line 291, in run
   File "scripts/dev\..\..\scripts\..\qutebrowser\commands\command.py", 
line 524, in run
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\mainwindow\statusbar\command.py", 
line 167, in command_accept
   File "scripts/dev\..\..\scripts\..\qutebrowser\commands\runners.py", 
line 303, in run_safely
   File "scripts/dev\..\..\scripts\..\qutebrowser\commands\runners.py", 
line 291, in run
   File "scripts/dev\..\..\scripts\..\qutebrowser\commands\command.py", 
line 524, in run
   File "scripts/dev\..\..\scripts\..\qutebrowser\browser\commands.py", 
line 1021, in spawn
   File "scripts/dev\..\..\scripts\..\qutebrowser\browser\commands.py", 
line 1069, in _run_userscript
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\commands\userscripts.py", line 
400, in run_async
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\browser\webkit\webkittab.py", 
line 522, in dump_async
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\commands\userscripts.py", line 
126, in store_text
   File 
"scripts/dev\..\..\scripts\..\qutebrowser\commands\userscripts.py", line 
159, in _run_process
   File "scripts/dev\..\..\scripts\..\qutebrowser\misc\guiprocess.py", 
line 147, in start
   File "scripts/dev\..\..\scripts\..\qutebrowser\misc\guiprocess.py", 
line 94, in on_error
   File "scripts/dev\..\..\scripts\..\qutebrowser\utils\message.py", 
line 144, in error
Error while spawning userscript: The process failed to start.
Displaying text: Error while spawning userscript: The process failed to 
start. (severity=Severity.error)
queue: deque([]) / delta: None
Displaying immediately
Setting severity to Severity.error
Setting temp text to 'Error while spawning userscript: The process 
failed to start.'.
Deleting temporary file C:\Users\ME\AppData\Local\Temp\tmpsfc69iqx.
Deleting temporary file C:\Users\ME\AppData\Local\Temp\tmp4zzbva7k.html.
Deleting temporary file C:\Users\ME\AppData\Local\Temp\tmpzfag7irl.txt.


More information about the qutebrowser mailing list