Errors when running ramp.py code

Firmware/software/electronics/mechanics
Post Reply
f-rower
Beginner
Posts: 16
Joined: Wed Jun 14, 2017 10:19 am

Errors when running ramp.py code

Post 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-
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Errors when running ramp.py code

Post by arnaud »

This could be a bug related to Python2, can you run with Python3 to see if it work then?
f-rower
Beginner
Posts: 16
Joined: Wed Jun 14, 2017 10:19 am

Re: Errors when running ramp.py code

Post 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 :)
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Errors when running ramp.py code

Post 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
Post Reply