Error when running "ramp.py" in virtual machine setup
Posted: Tue Jan 24, 2017 10:46 pm
Hello,
I want to experiment with the python scripts and have tried running "ramp.py". Whenever I do, I have 1 of 2 things occur:
1) It finds multiple radios to connect to, not always the same amount. The only time it finds just "radio://0/80/250k" is when I set the crazyflie down several feet away from the Crazyradio PA. Why is this?
2) When it does connect with "radio://0/80/250k", it starts executing the script just fine and the motors start spinning. But it fails quickly with the lengthy error message below:
Exception in thread Thread-1 (most likely raised during interpreter shutdown):Exception in thread Thread-9 (most likely raised during interpreter shutdown): Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_innerTraceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 763, in run File "/usr/lib/python2.7/threading.py", line 810, in __boostrap_inner
File "build/bdist.linux-i686/egg/cflib/crazyflie/__init__.py", line 371, in run File "ramp.py", line 106, in _ramp_motors
File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 232, in receive_packet File "build/bdist.linux-i686/egg/cflib/crazyflie/__init__.py", line 250, in close_link
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty' File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 265, in close
File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 103, in close
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute '_config_lock'
I'm only familiar with the basics of Python and I'm not really sure what's going on with this. I've tried looking through the code at some of these places, but I don't understand a lot of what's happening with how much code there is. I am running this on the virtual machine that was setup by bitcraze so, as far as I'm aware, all dependencies should already be installed. Let me know if anything needs more clarification. I appreciate any help! Thanks!
I want to experiment with the python scripts and have tried running "ramp.py". Whenever I do, I have 1 of 2 things occur:
1) It finds multiple radios to connect to, not always the same amount. The only time it finds just "radio://0/80/250k" is when I set the crazyflie down several feet away from the Crazyradio PA. Why is this?
2) When it does connect with "radio://0/80/250k", it starts executing the script just fine and the motors start spinning. But it fails quickly with the lengthy error message below:
Exception in thread Thread-1 (most likely raised during interpreter shutdown):Exception in thread Thread-9 (most likely raised during interpreter shutdown): Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_innerTraceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 763, in run File "/usr/lib/python2.7/threading.py", line 810, in __boostrap_inner
File "build/bdist.linux-i686/egg/cflib/crazyflie/__init__.py", line 371, in run File "ramp.py", line 106, in _ramp_motors
File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 232, in receive_packet File "build/bdist.linux-i686/egg/cflib/crazyflie/__init__.py", line 250, in close_link
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty' File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 265, in close
File "build/bdist.linux-i686/egg/cflib/crtp/radiodriver.py", line 103, in close
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute '_config_lock'
I'm only familiar with the basics of Python and I'm not really sure what's going on with this. I've tried looking through the code at some of these places, but I don't understand a lot of what's happening with how much code there is. I am running this on the virtual machine that was setup by bitcraze so, as far as I'm aware, all dependencies should already be installed. Let me know if anything needs more clarification. I appreciate any help! Thanks!