Skip to content

when gauge python upgrade to 0.3.15, error got an unexpected token STAR here #233

@zhipingren

Description

@zhipingren

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:

  1. 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)

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions