Hello
I'm trying to write a script using trex_stl_lib.api library
when running the script i get the following error:
"trex_stl_lib.trex_stl_exceptions.STLError: RPC version mismatch: a newer client version is required
(API type 'STL': - server: '5.1', client: '4.1')"
my trex server is on version 3.00
and the trex library is on version 3.0
here is the script I'm running:
from trex_stl_lib.api import *
# Create an instance of the STLClient with the correct port
c = STLClient(server='1.1.1.1',sync_port=6601,async_port=6600)
# Connect to the TRex server
c.connect()
# Check if the connection is successful
if c.is_connected():
print("Connected to the TRex server.")
# Perform your operations with the TRex server here
# Disconnect from the TRex server
c.disconnect()
else:
print("Failed to connect to the TRex server.")
can someone please help?
Thanks,
Yuval