RPC version mismatch

268 views
Skip to first unread message

Yuval

unread,
May 30, 2023, 4:16:24 AM5/30/23
to TRex Traffic Generator
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

hanoh haim

unread,
May 30, 2023, 6:01:30 AM5/30/23
to Yuval, TRex Traffic Generator
Hi Yuval, 
Try to use the client package delivered in the same server package. 

Thanks
Hanoh

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/fac286eb-95d7-4151-83ff-de38a28bd023n%40googlegroups.com.


--
Hanoh
Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages