Page 1 of 1

Errors when running ramp.py code

Posted: Wed Jul 05, 2017 1:40 pm
by f-rower
Hello,
I'm trying to run the ramp.py code on Wing IDE, and I keep getting the following error:

Code: Select all

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
  File "/home/bitcraze/projects/crazyflie-lib-python/examples/cflib/crazyflie/__init__.py", line 373, in run
  File "/home/bitcraze/projects/crazyflie-lib-python/examples/cflib/crtp/radiodriver.py", line 232, in receive_packet
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
Does anyone know how to fix this? I haven't modified anything in the code, and a couple of days ago this was working fine.

Thanks very much,

f-

Re: Errors when running ramp.py code

Posted: Wed Jul 05, 2017 2:25 pm
by arnaud
This could be a bug related to Python2, can you run with Python3 to see if it work then?

Re: Errors when running ramp.py code

Posted: Fri Jul 07, 2017 10:47 am
by f-rower
HI Arnaud,

sorry for the late reply. Wing IDE seems to be having some trouble dealing with Python 3 and 3.4. I switched to PyCharm with Python 3.4 and now the code works fine :)

Re: Errors when running ramp.py code

Posted: Fri Jul 07, 2017 11:16 am
by arnaud
Hi,

This confirms that we have a bug in python2, I created a ticket for it https://github.com/bitcraze/crazyflie-l ... /issues/51.

Thanks for reporting that it works