Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gregory-mac opened this issue Jul 27, 2023 · 1 comment
Open

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

gregory-mac opened this issue Jul 27, 2023 · 1 comment

Comments

@gregory-mac
Copy link

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?

@slukashenkov
Copy link

slukashenkov commented Aug 29, 2023

The problem, itself that is the error message breaking execution is fixed here:

The fix:
yaml/pyyaml@f92d859

The bug:
yaml/pyyaml#202

"Is it possible to move to a more recent version of the Pyyaml?" seems to be more of the "feature" request.
Personally, could not wait for its fulfillment and used the advice given. It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants