Skip to content

Inability to start TRex STL via CTRexClient due to old Pyyaml #1051

Open
@gregory-mac

Description

@gregory-mac

On v3.03 running this code:

from stf.trex_stf_lib.trex_client import CTRexClient

client = CTRexClient("0.0.0.0")
client.start_stateless()

results in an error:

ProtocolError: (-32603, 'Server error: File "/opt/trex/v3.03/external_libs/pyyaml-3.11/python3/yaml/constructor.py", line 126, in construct_mapping | AttributeError: module \'collections\' has no attribute \'Hashable\'\n')

The collections module now uses collections.abc.Hashable instead of collections.Hashable. Pyyaml moved to the new style since v5.1 (related PR).

Is it possible to move to a more recent version of the Pyyaml?

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