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

TypeError: object of type 'NoneType' has no len() #3

Open
patrickpoirier51 opened this issue Sep 1, 2016 · 2 comments
Open

TypeError: object of type 'NoneType' has no len() #3

patrickpoirier51 opened this issue Sep 1, 2016 · 2 comments

Comments

@patrickpoirier51
Copy link

api start /home/patrick/visnav/PrecisionLand.py
GUIDED> Connecting to vehicle...
Vehicle connected!
Running Precision_Land
Using simulator
Frame 0
Exception in APIThread-1: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/droneapi/module/api.py", line 329, in run
self.fn()
File "/usr/local/lib/python2.7/dist-packages/droneapi/module/api.py", line 600, in
APIThread(self, lambda: execfile(args[1], g), args[1])
File "/home/patrick/visnav/PrecisionLand.py", line 248, in
strat.run()
File "/home/patrick/visnav/PrecisionLand.py", line 208, in run
VN_logger.text(VN_logger.DEBUG, 'Rings detected: {0}'.format(len(results[4])))
TypeError: object of type 'NoneType' has no len()

@patrickpoirier51
Copy link
Author

patrickpoirier51 commented Sep 3, 2016

changed line 208 to this:
VN_logger.text(VN_logger.DEBUG, 'Rings detected: {0}'.format(results[4]))

@patrickpoirier51
Copy link
Author

still got this error when frame is detected:
File "/home/patrick/visnav/PrecisionLand.py", line 192, in run
imageQueue.remove(f)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

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

1 participant