-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VisualMetrics failed to run ExecaError #4400
Comments
Hi @prim84 thank you for creating the issue. Here are the instructions on how to make your issue reproducible: https://www.sitespeed.io/documentation/sitespeed.io/bug-report/#explain-how-to-reproduce-your-issue |
Tool versions - sitespeed 35.7.2 , browsertime - 23.4.3 ,coach -8.0.2. Script used
const seleniumWebdriver = context.selenium.webdriver; /Launch/ /search**/ /Images Tab**/ /Videos Tab**/ /** Shopping tab */ Error C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin>node sitespeed.js google1.mjs --multi --browsertime.iterations 1 --browsertime.skipHar DevTools listening on ws://127.0.0.1:9222/devtools/browser/c95c9403-0c8f-4603-a3a9-253fa529ff30 Error: Page summary message (browsertime.pageSummary) didn't specify a group. Node.js v21.1.0 C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin>node sitespeed.js google1.mjs --multi --browsertime.iterations 1 --browsertime.skipHar DevTools listening on ws://127.0.0.1:9222/devtools/browser/196603b3-e114-4627-8a9e-a559240314b8 C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin>node sitespeed.js google1.mjs --multi --browsertime.iterations 1 --browsertime.skipHar --visualMetrics DevTools listening on ws://127.0.0.1:9222/devtools/browser/c74311fd-b65a-4752-8068-1aa1e4d969c0 C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r [2025-01-13 18:34:14] ERROR: Could not run Visual Metrics ExecaError: Command failed with exit code 1: python "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py" --dir "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\google1_mjs\2025-01-13-18-32-58\pages\www_google_com\google_search\data\filmstrip\1" --video "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\google1_mjs\2025-01-13-18-32-58\pages\www_google_com\google_search\data\video\1.mp4" --orange --force --renderignore 5 --json --viewport --viewportretries 60 --viewportminheight 100 --viewportminwidth 100 -q 75 --logfile "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\google1_mjs\2025-01-13-18-32-58\pages\www_google_com\google_search\data\video\1.visualmetrics.log" -vvv C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin> |
Your question
We are using the sitespeed 35.7.2 , browsertime - 23.4.3 ,coach -8.0.2. while trying to get visualMetrics from a user journey , it throws "VisualMetrics failed to run ExecaError". I have also installed other dependencies as below. Please let me know if I am missing something
other dependencies installed
python -m pip install --upgrade --user pip
python -m pip install --upgrade --user setuptools
python -m pip install --user pyssim OpenCV-Python Numpy
python -m pip --version
python -m pip show Pillow
python -m pip show pyssim
Detailed sitespeed error
[2025-01-10 11:22:02] INFO: Get visual metrics from the video
[2025-01-10 11:22:05] ERROR: VisualMetrics failed to run ExecaError: Command failed with exit code 1: python "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py" --dir "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\XXXXX\01_LaunchURL\data\filmstrip\1" --video "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\XXXXX\01_LaunchURL\data\video\1.mp4" --orange --force --renderignore 5 --json --viewport --viewportretries 60 --viewportminheight 100 --viewportminwidth 100 -q 75 --logfile "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\XXXXX\01_LaunchURL\data\video\1.visualmetrics.log" -vvv
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
at getFinalError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/result.js:108:16)
at getAsyncResult (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:167:4)
at handlePromise (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:150:17)
at async run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/visualMetrics.js:140:20)
at async getVideoMetrics (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/getVideoMetrics.js:33:21)
at async Video.postProcessing (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/video.js:97:22)
at async Iteration.run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/iteration.js:222:34)
at async Engine.runByScript (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/index.js:308:20)
at async analyzeUrl (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/analyzer.js:215:12)
at async BrowsertimePlugin.processMessage (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/index.js:173:26)
[2025-01-10 11:22:05] ERROR: Log from VisualMetrics: 11:22:05.183 - Processing frames from video C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\XXXX\01_LaunchURL\data\video\1.mp4 to C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\XXXX\01_LaunchURL\data\filmstrip\1
11:22:05.185 - [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py", line 2021, in main
video_to_frames(
File "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py", line 387, in video_to_frames
is_mobile = find_recording_platform(video)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py", line 496, in find_recording_platform
proc = subprocess.Popen(command, stderr=subprocess.PIPE, encoding="UTF-8")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
[2025-01-10 11:22:05] ERROR: Could not run Visual Metrics ExecaError: Command failed with exit code 1: python "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py" --dir "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxxx\01_LaunchURL\data\filmstrip\1" --video "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxx\01_LaunchURL\data\video\1.mp4" --orange --force --renderignore 5 --json --viewport --viewportretries 60 --viewportminheight 100 --viewportminwidth 100 -q 75 --logfile "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxxxx\01_LaunchURL\data\video\1.visualmetrics.log" -vvv
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
at getFinalError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/result.js:108:16)
at getAsyncResult (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:167:4)
at handlePromise (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:150:17)
at async run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/visualMetrics.js:140:20)
at async getVideoMetrics (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/getVideoMetrics.js:33:21)
at async Video.postProcessing (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/video.js:97:22)
at async Iteration.run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/iteration.js:222:34)
at async Engine.runByScript (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/index.js:308:20)
at async analyzeUrl (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/analyzer.js:215:12)
at async BrowsertimePlugin.processMessage (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/index.js:173:26)
[2025-01-10 11:22:05] ERROR: Visual Metrics failed to analyse the video ExecaError: Command failed with exit code 1: python "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py" --dir "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxxx\01_LaunchURL\data\filmstrip\1" --video "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxx\01_LaunchURL\data\video\1.mp4" --orange --force --renderignore 5 --json --viewport --viewportretries 60 --viewportminheight 100 --viewportminwidth 100 -q 75 --logfile "C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\bin\sitespeed-result\measure_LPA_v1_mjs\2025-01-10-11-21-15\pages\xxxxx\01_LaunchURL\data\video\1.visualmetrics.log" -vvv
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
C:\Tools\node-v21.2.0-win-x64latest\node_modules\sitespeed.io\node_modules\browsertime\visualmetrics\visualmetrics-portable.py:502: SyntaxWarning: invalid escape sequence '.'\r
matcher = re.compile(".com.android.version.")
at getFinalError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/return/result.js:108:16)
at getAsyncResult (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:167:4)
at handlePromise (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/execa/lib/methods/main-async.js:150:17)
at async run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/visualMetrics.js:140:20)
at async getVideoMetrics (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/postprocessing/visualmetrics/getVideoMetrics.js:33:21)
at async Video.postProcessing (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/video/video.js:97:22)
at async Iteration.run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/iteration.js:222:34)
at async Engine.runByScript (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/index.js:308:20)
at async analyzeUrl (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/analyzer.js:215:12)
at async BrowsertimePlugin.processMessage (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/index.js:173:26)
[2025-01-10 11:22:05] ERROR: TypeError: Cannot read properties of undefined (reading 'push')
at Iteration.run (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/iteration.js:252:36)
at async Engine.runByScript (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/node_modules/browsertime/lib/core/engine/index.js:308:20)
at async analyzeUrl (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/analyzer.js:215:12)
at async BrowsertimePlugin.processMessage (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/index.js:173:26)
[2025-01-10 11:22:05] INFO: xxxxx/as/authorization.oauth2?response_type=code&client_id=fmac_oidc_authz_pip_pa_wam&redirect_uri=XXXXXX01 TTFB: 146ms, firstPaint: 479ms, FCP: 479ms, DOMContentLoaded: 445ms, LCP: 479ms, CLS: 0, TBT: 0ms, CPUBenchmark: 78ms, Load: 533ms
[2025-01-10 11:22:05] INFO: xxxxx TTFB: 179ms, firstPaint: 1.25s, FCP: 1.25s, DOMContentLoaded: 1.21s, LCP: 1.49s, CLS: 0.0012, TBT: 0ms, CPUBenchmark: 76ms, Load: 1.47s
[2025-01-10 11:22:05] INFO: xxxxxTTFB: 179ms, firstPaint: 1.25s, FCP: 1.25s, DOMContentLoaded: 1.21s, LCP: 1.49s, CLS: 0.0055, TBT: 44ms, CPUBenchmark: 77ms, Load: 1.47s
[2025-01-10 11:22:05] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:283:13)
[2025-01-10 11:22:06] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:350:13)
[2025-01-10 11:22:07] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:283:13)
[2025-01-10 11:22:07] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:350:13)
[2025-01-10 11:22:07] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:283:13)
[2025-01-10 11:22:07] INFO: Could not read filmstrip dir TypeError: Cannot read properties of undefined (reading 'time')
at getFilmstrip (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/browsertime/filmstrip.js:200:37)
at async HTMLBuilder.render (file:///C:/Tools/node-v21.2.0-win-x64latest/node_modules/sitespeed.io/lib/plugins/html/htmlBuilder.js:350:13)
The text was updated successfully, but these errors were encountered: