gauge icon indicating copy to clipboard operation
gauge copied to clipboard

[Gauge] Failed to start gauge API: Timed out connecting to python

Open aratmz opened this issue 3 years ago • 5 comments

Describe the bug Failed to start gauge API: Timed out connecting to python

To Reproduce Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project
  2. Run the gauge command
  3. 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 Screen Shot 2021-03-08 at 3 46 41 PM

aratmz avatar Mar 08 '21 23:03 aratmz

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.

sriv avatar Mar 18 '21 03:03 sriv

I am in the same situation. If you have solved it, could you please tell me the solution? Thank you very much! image

penghs520 avatar Dec 18 '21 13:12 penghs520

@penghs520 please fix the syntax error in common_view_template.py and try again.

zabil avatar Dec 21 '21 17:12 zabil

image

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

agilests avatar Jun 14 '22 03:06 agilests

requirement.txt image

agilests avatar Jun 14 '22 03:06 agilests