04-13-2024 03:46 PM
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
04-14-2024 06:09 AM
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.
04-14-2024 11:43 AM
04-14-2024 11:44 AM
Thanks for your reply.
Understood module missing part, but still not sure why trex_subinterface_stats.py is not available any more in master.
04-15-2024 02:19 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide