gauge-python
gauge-python copied to clipboard
when gauge python upgrade to 0.3.15, error got an unexpected token STAR here
Describe the bug when gauge python upgrade to 0.3.15, error got an unexpected token STAR here
To Reproduce Steps (or project) to reproduce the behavior:
- gauge version and Plugins version [centos@localhost powergauge]$ gauge -v Gauge version: 1.1.8 Commit Hash: b1501f4
Plugins
html-report (4.0.12) json-report (0.3.5) python (0.3.15) screenshot (0.0.1) spectacle (0.1.4) xml-report (0.2.3)
- execute case gauge run example/example.md
3.error info Python: 3.7.3 Failed to parse /home/centos/diracsea/powergauge/step_impl/CDN/api_interface/init.py: Untreated elements: '\ufeff\n' Failed to parse /home/centos/diracsea/powergauge/step_impl/CDN/step_implement/esk_test.py: Error, got an unexpected token DOUBLE_STAR here:
2059 else: 2060 info[key[-1]] = value 2061 info = read_data 2062 datatype.dataoperator = "write" 2063 file_data.data = read_data 2064 file_data.operator_file(datatype.enum_action(), file_data.write_file_path) 2065 path_dict = {write_filepath: file_data.file_paths[0]} 2066 data_store.scenario['yaml_file'] = {**<---- here
Failed to parse /home/centos/diracsea/powergauge/step_impl/LIVE/step_implement/live_push_pull.py: Error, got an unexpected token STAR here:
1036 pull_cmd = stream.stream_command_line(stream.pull_input_cmd, stream.pull_output_cmd) 1037 thread = ThreadFactory(max_workers=stream.max_workers, timeout=400) 1038 push_task = thread.run(stream.stream_action, push_cmd) 1039 time.sleep(15) 1040 query_online_stream(stream.domain_name, stream.push_stream_name) 1041 if flow: 1042 stream.pull_task = thread.run(stream.stream_action, pull_cmd) 1043 query_online_stream(stream.domain_name, [*<---- here
Error ----------------------------------
[Gauge] Failed to start gauge API: Timed out connecting to python
Get Support ---------------------------- Docs: https://docs.gauge.org Bugs: https://github.com/getgauge/gauge/issues Chat: https://github.com/getgauge/gauge/discussions
Your Environment Information ----------- linux, 1.1.8, b1501f4 html-report (4.0.12), json-report (0.3.5), python (0.3.15), screenshot (0.0.1), spectacle (0.1.4), xml-report (0.2.3) 4.when gauge python version is 0.3.12, The above error will not occur
I have these issues too, works perfectly in getgauge 0.3.9 but when I upgrade to latest getgauge (0.3.17) I get a bunch of these parsing errors...
@zhipingren Can you share the spec file format at the following location in your error trace?
Failed to parse /home/centos/diracsea/powergauge/step_impl/LIVE/step_implement/live_push_pull.py: Error, got an unexpected token STAR here:
Parsing library changed 0.3.9 and 0.3.15 and this could be because of an unexpected format in your gauge spec file on implementation.
I have this issue as well. Tested with python 3.11, getgauge 0.3.17. the following code results with the below error: app = subprocess.Popen([exePath, *appArgs], shell=True)
error: Failed to parse c:\Repo\430_WindowsDriverInstaller\common_libs\supportLibs\steps\steps_SDK.py: Error, got an unexpected token STAR here: app = subprocess.Popen([exePath, *<---- here
It worked well with getgauge 0.3.10