Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global name 'timespec' is not defined #117

Open
aydal opened this issue Jan 22, 2020 · 3 comments
Open

global name 'timespec' is not defined #117

aydal opened this issue Jan 22, 2020 · 3 comments

Comments

@aydal
Copy link

aydal commented Jan 22, 2020

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?

@adrianpang
Copy link

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.

@fnoop
Copy link
Member

fnoop commented Mar 12, 2020

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
Copy link
Member

fnoop commented Mar 12, 2020

Addressing outdated install instructions in #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants