Hi everyone. I come up with this error when I was trying to port this project to U50 and debugging the ‘vnx-benchmark-throughput.ipynb’. And the log info was attached below:
Traceback (most recent call last):
File “./test.py”, line 263, in
rx_tot_pkt, rx_thr, rx_time = ol_w1_tg.computeThroughputApp(‘rx’)
File “/home/user/xup_vitis_network_example/Notebooks/vnx_utils.py”, line 640, in computeThroughputApp
thr_bs = (tot_bytes * 8) / tot_time
ZeroDivisionError: float division by zero
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File “/usr/lib/python3/dist-packages/apport/init.py”, line 5, in
from apport.report import Report
File “/usr/lib/python3/dist-packages/apport/report.py”, line 32, in
import apport.fileutils
File “/usr/lib/python3/dist-packages/apport/fileutils.py”, line 12, in
import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
ModuleNotFoundError: No module named ‘requests_unixsocket’
Original exception was:
Traceback (most recent call last):
File “./test.py”, line 263, in
rx_tot_pkt, rx_thr, rx_time = ol_w1_tg.computeThroughputApp(‘rx’)
File “/home/user/xup_vitis_network_example/Notebooks/vnx_utils.py”, line 640, in computeThroughputApp
thr_bs = (tot_bytes * 8) / tot_time
ZeroDivisionError: float division by zero
I suggest that var ‘tot_time’ has a value of zero, but I still have no idea about the reasons.
Looking forward to your replys.