cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
364
Views
0
Helpful
4
Replies

trex_subinterface_stats.py is no longer exists in latest master

maxli
Cisco Employee
Cisco Employee

got no module error, but when I looked master that it seems trex_subinterface_stats.py is no longer exists in latest master

was it replaced by new functions?

 

linux-host0:/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/examples/stl$ python stl_profile.py
/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/examples/stl
Traceback (most recent call last):
  File "stl_profile.py", line 2, in <module>
    from trex.stl.api import *
  File "/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/stl/api.py", line 7, in <module>
    from .trex_stl_client import STLClient, PacketBuffer
  File "/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", line 14, in <module>
    from ..common.trex_client import TRexClient, PacketBuffer
  File "/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/common/trex_client.py", line 37, in <module>
    from .stats.trex_subinterface_stats import SubinterfaceStats, SubinterfaceGroupStats
  File "/opt/trex/DevX-TRex-v23.11-v3.03-34/automation/trex_control_plane/interactive/trex/common/stats/trex_subinterface_stats.py", line 1, in <module>
    import ipaddress
ImportError: No module named ipaddress
4 Replies 4

Looking at your error, looks like you are encountering an ImportError and missing  ipaddress module, thus I don’t think your issue is not related to the trex_subinterface_stats.py file being removed or replaced.

The ipaddress module is a built-in Python module, and it appears that it's not being found in your current Python environment.

Check your Python version and if this is installed.

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thanks for your reply.
Understood module missing part, but still not sure why trex_subinterface_stats.py is not available any more in master.

Thanks for your reply.

Understood module missing part, but still not sure why trex_subinterface_stats.py is not available any more in master.

Was this a python script? I dont see any history of this script in here on the repo. Would suggest to open an issue on the repo or contact the Cisco team who maintain this code.

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io