Open mithun2498 opened 1 year ago
I am trying to run test cases using the latest docker with python3. But I am unable to run the test cases after successfully deploying the topology because there is no packages installed.
I am facing this issue during the test execution.
Issue Log:
Module Error: module dash_api not found
from dash_api.appliance_pb2 import Appliance E ModuleNotFoundError: No module named 'dash_api' builtins =
Hi @yxieca @wangxin
Kindly help me to run the test cases with the latest sonic-mgmt docker. I am able to deploy the topology but unable to execute the test cases. There is no python packages installed in this directory - "/usr/local/lib/python3.8/dist-packages/".
@wangxin please assign someone to take a look. Thanks
Hi @yxieca @wangxin ,
Kindly let us know if there is any solution for the issue reported. Thanks.
Hello @yxieca @wangxin ,
I manually tried to install the required packages for test execution and I am now facing this issue. Kindly help me on this!
root@sonic-mgmt:/data/sonic-mgmt/tests# ./run_tests.sh -n vms-sn2700-t0 -d str-msn2700-01 -c arp/test_unknown_mac.py -f ../ansible/testbed.yaml -i ../ansible/lab,../ansible/veos -e "--neighbor_type=sonic" -p /data/sonic-mgmt/tests/logs/08-02-2024/test_unknown_mac > test_unknown_mac_8-2-24_1
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/dist-packages/pytest/main.py", line 5, in
Description
The sonic-mgmt docker does not have all the necessary packages installed in it. I am unable to execute the test cases using the latest docker.
Describe the results you received: Unable to execute the test cases because of package installation error.
Describe the results you expected: Should be able to run the test cases.