We also spotted the same error on local ubuntu 18.04 server, however ubuntu 
20.04 is working fine.

A patch is submitted and under review.
https://gerrit.fd.io/r/c/vpp/+/31972

Thanks,
Tianyu

________________________________
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of hemant via 
lists.fd.io <hemant=mnkcg....@lists.fd.io>
Sent: Thursday, April 15, 2021 6:04 AM
To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: [vpp-dev] vpp_stats.py 03/18 changes cause issue


Ole,



My plugin’s python test (uses Python3) ran fine until I used a latest gerrit 
vpp repo today. I get the following error:



   super(TestUPF6, self).tearDown()

  File "/home/hemant/vpp/test/framework.py", line 798, in tearDown

    self.logger.info(self.statistics.set_errors_str())

  File "/home/hemant/vpp/src/vpp-api/python/vpp_papi/vpp_stats.py", line 230, 
in set_errors_str

    error_counters = self.set_errors()

  File "/home/hemant/vpp/src/vpp-api/python/vpp_papi/vpp_stats.py", line 213, 
in set_errors

    self.connect()

  File "/home/hemant/vpp/src/vpp-api/python/vpp_papi/vpp_stats.py", line 135, 
in connect

    socket.close(mfd)

AttributeError: module 'socket' has no attribute 'close'



“git blame” shows this checkin that has caused the issue.



e66443c9b4 (Ole Troan               2021-03-18 11:12:01 +0100 135)         
socket.close(mfd)



Should we file a JIRA issue to fix the problem?



Thanks,



Hemant


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19206): https://lists.fd.io/g/vpp-dev/message/19206
Mute This Topic: https://lists.fd.io/mt/82104033/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to