vision_landing icon indicating copy to clipboard operation
vision_landing copied to clipboard

global name 'timespec' is not defined

Open aydal opened this issue 5 years ago • 3 comments

Running vision_landing, I get this error. Earlier I got monotonic_time not defined, which I corrected by shifting the function to top. How to rectify this?

aydal avatar Jan 22 '20 12:01 aydal

ubuntu@M5510:~/Downloads/vision_landing$ ./vision_landing Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "./vision_landing", line 43, in insertQueue line = pipe.readline().rstrip() + ":{:.0f}".format(monotonic_time()) NameError: global name 'monotonic_time' is not defined

Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "./vision_landing", line 43, in insertQueue line = pipe.readline().rstrip() + ":{:.0f}".format(monotonic_time()) NameError: global name 'monotonic_time' is not defined

ubuntu@M5510:~/Downloads/vision_landing$ python --version Python 2.7.17

Please see above for details on this issue.

adrianpang avatar Mar 11 '20 04:03 adrianpang

OK a blank ubuntu 18.04 vm install, I can reproduce this:

~/vision_landing$ ./vision_landing
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./vision_landing", line 43, in insertQueue
    line = pipe.readline().rstrip() + ":{:.0f}".format(monotonic_time())
NameError: global name 'monotonic_time' is not defined

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./vision_landing", line 43, in insertQueue
    line = pipe.readline().rstrip() + ":{:.0f}".format(monotonic_time())
NameError: global name 'monotonic_time' is not defined

Thanks for reporting, will fix!

fnoop avatar Mar 12 '20 11:03 fnoop

Addressing outdated install instructions in #118

fnoop avatar Mar 12 '20 11:03 fnoop