flowpilot icon indicating copy to clipboard operation
flowpilot copied to clipboard

ModuleNotFoundError: No module named 'common.timeout'

Open ayushmankumar7 opened this issue 2 years ago • 3 comments
trafficstars

Describe the bug An attempt to run the file "selfdrive/loggerd/tests/test_loggerd.py". Internally, test_loggerd depends on common.timeout.

No module named "timeout" neither in /flowpilot/common nor in /flowpilot/common/__init__.py

To Reproduce python selfdrive/loggerd/tests/test_loggerd.py

Expected behavior Run the unit tests written for loggerd.

Platform Details Desktop:

  • linux distro
  • using gpu / cpu ?

Android :

  • android version: for eg, 12
  • manufacturer: for eg, Redmi
  • model: for eg, Note 9 pro
  • rooted ? :
  • using root or non-root env ?

Additional context Add any other context about the problem here.

ayushmankumar7 avatar Jun 27 '23 06:06 ayushmankumar7

In Openpilot, we have "https://github.com/commaai/openpilot/blob/master/common/timeout.py"

ayushmankumar7 avatar Jun 27 '23 06:06 ayushmankumar7

we can add the required files, just mention if it was hard forked with particular git commit like this: https://github.com/flowdriveai/flowpilot/blob/master/selfdrive/car/mock/interface.py#L1

MankaranSingh avatar Jun 27 '23 18:06 MankaranSingh

Sure!

ayushmankumar7 avatar Jun 27 '23 18:06 ayushmankumar7