No Crazyflies found, cannot run example
Posted: Sat Nov 01, 2014 3:54 pm
Hello everyone -- I'm having a problem that is driving me a little mad. I have the Crazyflie Python code installed both in Linux on a VM and within Windows on my computer. In the VM, I can run the Python example programs (ramp.py, for example) and everything works perfectly. In Windows, I can run the client program and control the Crazyflie with an XBox controller. BUT, when I run the ramp.py program within Windows, I get the following:
Scanning interfaces for Crazyflies...
exception raised
Crazyflies found:
No Crazyflies found, cannot run example
Note that the "exception raised" output is due to a print statement I put in the crazyradio.py. It seemed that the "Cannot find a Crazyradio dongle" exception was occurring despite the fact that I wasn't getting that message. That appears to be the case. Here is the relevant part of __init__
def __init__(self, device=None, devid=0):
""" Create object and scan for USB dongle if no device is supplied """
if device is None:
try:
time.sleep(0.25)
device = _find_devices()[devid]
except Exception:
print "exception raised"
raise Exception("Cannot find a Crazyradio Dongle")
print "device = %s" % device
self.dev = device
As you can see, I also added the sleep line -- I found that in another thread on the forum.
I'm confused by the fact that everything works perfectly from the client program within Windows but not from the command line. I believe I've installed the correct drivers. I believe that I installed a binary version of the client (it's been a while and I can't recall for certain). Either way, the client works. Did I miss a step somewhere? I'm sure I've caused the problem but am not sure how or where.
I'd very much appreciate any help. I'm hoping to do a demo in a couple of weeks and need to get this working -- preferable in Windows. Thank you.
David
Scanning interfaces for Crazyflies...
exception raised
Crazyflies found:
No Crazyflies found, cannot run example
Note that the "exception raised" output is due to a print statement I put in the crazyradio.py. It seemed that the "Cannot find a Crazyradio dongle" exception was occurring despite the fact that I wasn't getting that message. That appears to be the case. Here is the relevant part of __init__
def __init__(self, device=None, devid=0):
""" Create object and scan for USB dongle if no device is supplied """
if device is None:
try:
time.sleep(0.25)
device = _find_devices()[devid]
except Exception:
print "exception raised"
raise Exception("Cannot find a Crazyradio Dongle")
print "device = %s" % device
self.dev = device
As you can see, I also added the sleep line -- I found that in another thread on the forum.
I'm confused by the fact that everything works perfectly from the client program within Windows but not from the command line. I believe I've installed the correct drivers. I believe that I installed a binary version of the client (it's been a while and I can't recall for certain). Either way, the client works. Did I miss a step somewhere? I'm sure I've caused the problem but am not sure how or where.
I'd very much appreciate any help. I'm hoping to do a demo in a couple of weeks and need to get this working -- preferable in Windows. Thank you.
David