Page 1 of 1
Running from source on Windows
Posted: Tue Jan 20, 2015 5:25 pm
by krokoko
Hi everybody
I got some issue when i try to run the crazyflie Python client from source on windows 8.
When i run the .exe downloaded from
https://bitbucket.org/bitcraze/crazyfli ... 4.01.0.exe, everything works great. The problem is when i run the client from source in PyCharm, i got a usb problem : when i click on "scan", the following exception is thrown : WARNING:cflib.crtp.usbdriver:Exception while scanning for Crazyflie USB: No backend available
That's very weird... it seems that the Crazyradio is not recognized (my gamepad controller works great).
Any idea ?
Thanks a lot, have a nice day

Re: Running from source on Windows
Posted: Fri Jan 23, 2015 10:04 am
by arnaud
Hi Krokoko,
I just tested on windows here and it works for me.
I can remember this kind of problems when using 64bits version of python, the exe installation is made from a 32bit python. If you are running 64bit python you can try 32bit instead.
BR,
Arnaud
Re: Running from source on Windows
Posted: Fri Jan 23, 2015 3:49 pm
by hdmathias
I had Crazyradio problems for a while. A "fix" that worked (after much time in the debugger) is this:
In Crazyradio.py:
In the try block at line 59:
I changed import usb.backend.libusb0 as libusb0 to import usb.backend.libusb10 as libusb0
Re: Running from source on Windows
Posted: Mon Jan 26, 2015 10:37 pm
by krokoko
Hi guys,
Thank you for answer ! I will try it tomorrow, I'll keep you informed of my progress.
Have a nice day

Re: Running from source on Windows
Posted: Tue Jan 27, 2015 4:34 pm
by krokoko
Hi everybody,
I tried your fixes this afternoon, but it doesn't works... I can't understand why. It seems to be a problem with libusb or pyusb, because my crazyradio works with the binaries. I will continue my investigations.
Thank you for your answers

Re: Running from source on Windows
Posted: Thu Jan 29, 2015 3:38 am
by jasongd05
Krokoko I'm having the exact same problem under the exact same circumstances... Pretty crazy that we're both attempting to do the same thing one day apart! I will let you know if I find a fix, and I hope you will do the same!
Re: Running from source on Windows
Posted: Thu Jan 29, 2015 9:09 am
by arnaud
Hi all that have this problem,
Can you tell me your configuration so that I can attempt to reproduce the problem.
- Windows version, windows 32 or 64bit
- python version and if it is 32 or 64bits
- PyUSB version
- Which driver have you installed for the Crazyradio
Re: Running from source on Windows
Posted: Thu Jan 29, 2015 1:08 pm
by arnaud
I just created a wiki page that walk throw the windows installation, while writing it I tested the procedure in a win7 64bit virtual machine and it works:
http://wiki.bitcraze.se/doc:crazyflie:dev:env:python
Tell me if it helps and do not hesitate to edit the wiki page if you want to (just contact us to get a wiki account).
Re: Running from source on Windows
Posted: Thu Jan 29, 2015 1:27 pm
by krokoko
Hi guys,
jasongd05 : no problem, if i find a fix i will post it here

arnaud :
- Windows version, windows 32 or 64bit : windows 8 64 bits in VmWare fusion (Mac OS (Yosemite) as host)
- python version and if it is 32 or 64bits : python 2.7.3 32bits
- PyUSB version : pyusb 1.0.0a2
- Which driver have you installed for the Crazyradio : i've used zadig as mentioned in the wiki, with libusb 1.2.6.0 (32 bits)
For the moment i'm working with the bitcraze VM, but i have to use a microsoft kinect in my project so i must run from source on Windows :/
Re: Running from source on Windows
Posted: Thu Jan 29, 2015 6:07 pm
by jasongd05
Now I am having the same problem on a Mac... haha the exact same error and everything!
... -admin$ python --version
Python 2.7.7 :: Anaconda 2.0.1 (x86_64)
from the PKG-INFO file in pyusb
Name: pyusb
Version: 1.0.0b2
And the USB driver appears to have installed no problem on the mac here.