gauge
gauge copied to clipboard
[Gauge] Failed to start gauge API: Timed out connecting to python
Describe the bug Failed to start gauge API: Timed out connecting to python
To Reproduce Steps (or project) to reproduce the behavior:
- Initialise a gauge project
- Run the gauge command
- See error
Logs
08-03-2021 15:42:39.185 [Gauge] [DEBUG] Created gauge_screenshots_dir at /Users/xapirija/Development/Career/WB/tmz-qa/app/.gauge/screenshots
08-03-2021 15:42:39.191 [Gauge] [DEBUG] Plugin screenshot is already installed.
08-03-2021 15:42:39.196 [Gauge] [DEBUG] Plugin reportserver is already installed.
08-03-2021 15:42:39.199 [Gauge] [DEBUG] Plugin python is already installed.
08-03-2021 15:42:39.202 [Gauge] [DEBUG] Plugin html-report is already installed.
08-03-2021 15:42:39.205 [Gauge] [DEBUG] Plugin xml-report is already installed.
08-03-2021 15:42:39.208 [Gauge] [DEBUG] Plugin spectacle is already installed.
08-03-2021 15:42:39.214 [Gauge] [DEBUG] Plugin flash is already installed.
08-03-2021 15:42:39.220 [Gauge] [DEBUG] Parsing started.
08-03-2021 15:42:39.221 [Gauge] [DEBUG] Started concepts parsing.
08-03-2021 15:42:39.946 [Gauge] [DEBUG] 0 concepts parsing completed.
08-03-2021 15:42:39.977 [Gauge] [DEBUG] Started specifications parsing.
08-03-2021 15:42:40.134 [Gauge] [DEBUG] 178 specifications parsing completed.
08-03-2021 15:42:40.134 [Gauge] [DEBUG] Applying tags filter: tmz-share & \!analytics
08-03-2021 15:42:40.159 [Gauge] [DEBUG] The following specifications satisfy filter criteria:
08-03-2021 15:42:40.159 [Gauge] [DEBUG] specs/projects/share/tmz/share_tmz__articles.spec
08-03-2021 15:42:40.159 [Gauge] [DEBUG] specs/projects/share/tmz/share_tmz__videos.spec
08-03-2021 15:42:40.159 [Gauge] [DEBUG] Parsing completed.
08-03-2021 15:42:41.891 [Gauge] [DEBUG] Checking updates...
08-03-2021 15:42:41.896 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/flash?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.023 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/html-report?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.081 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/python?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.151 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/reportserver?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.183 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/screenshot?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.222 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/spectacle?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.270 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/xml-report?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:44.956 [python] [INFO] Python: 3.9.1
08-03-2021 15:42:44.956 [python] [DEBUG] Loading step implementations from /Users/xapirija/Development/Career/WB/tmz-qa/app/step_impl dirs.
08-03-2021 15:43:10.217 [Gauge] [CRITICAL] Failed to start gauge API: Timed out connecting to python
Expected behavior Should execute test suite
Versions: 1.1.6
gauge -v
- OS [e.g. MacOS 10.15.6 (19G2021) please be specific ] macOS 10.15.7
- Runner info (Please specify the correct version of Java/Node/Python/Dotnet/Ruby) Python 3.9.1
- IDE info (If using VS Code or Intellij IDEA) VS Code
Additional context
seems like gauge-python errored out trying to load the implementation.
There was an issue where the log file did not print the stacktrace of the load error, which is fixed in gauge-python 0.3.15.
Please update to latest gauge and plugins and see if issue still persists.
I am in the same situation. If you have solved it, could you please tell me the solution? Thank you very much!
@penghs520 please fix the syntax error in common_view_template.py
and try again.

macos: 12.1 (21C52) gauge: 1.4.3(latest) getgauge: 0.3.17 python: 3.9.2 gauge-python: 0.3.17(latest) The problem still exist
requirement.txt