cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Cannot find python3-distutils module when selected python3 randomly.

yonghwan007
Level 1
Level 1

Hi,

 

I updated the latest version TRex v2.45.

I know that "find_python.sh --local" command select python version 2 or 3 randomly.

If this script select python3, cannot find distutils module as below log in my environment installed python2 and python3. I never seen this issue in the previous version.

Of course, I can solve this issue if install python3-distutils package, but I'd like to know why TRex select python version randomly.

Was it intended?

 

root@ubuntu:/trex# ./t-rex-64 -i
Traceback (most recent call last):
File "./dpdk_setup_ports.py", line 13, in <module>
import dpdk_nic_bind
File "/opt/etrex-1.5/dpdk_nic_bind.py", line 40, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
Bad return status from trex-cfg (1)
Configuration failed

 

root@ubuntu:/trex# ./dpdk_nic_bind.py -s
Traceback (most recent call last):
File "./dpdk_nic_bind.py", line 40, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
root@ubuntu:/opt/etrex#

 

BR,

Yonghwan

Who Me Too'd this topic