Page 1 of 1

[SOLVED] Installing PyUSB 1.0.0rc1 on VM 0.6

Posted: Wed Feb 17, 2016 10:14 pm
by alex
Hi guys,

it has been about half a year since I fired up my VM the last time and there was huge progress at Bitcraze and Github! Really happy to see that!

I found out that the CF Client runs on Python3 now which I can call using "python3 cfclient", but it always says
CRITICAL:cfclient.cfclient:No pyusb installation found, exiting!
I followed this guide to (re)install the current PyUSB release 1.0.0rc1 but without any success so far:

http://blog.laczik.org/install-pyusb-1- ... t-version/

Code: Select all

sudo apt-get remove python-usb
sudo apt-get install python-pip
sudo pip install --upgrade pyusb==1.0.0rc1
Although Python correctly states 1.0.0rc1 to be accessible the cfclient doesn't recognize it.

Any suggestions?

-alex

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Posted: Thu Feb 18, 2016 2:50 am
by derf
Hi,

I've posted a possible workaround here:
https://github.com/bitcraze/bitcraze-vm ... -185517690

HTH,

Fred

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Posted: Thu Feb 18, 2016 11:46 am
by alex
Thank you very much, derf.

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Posted: Thu Feb 18, 2016 1:04 pm
by kristoffer
We messed up a bit with the release of the python client, that requires python3, without upgrading the VM. Sorry about that!

If you are using VM V0.6 you basically have two options if you want to run the latest version of the python client.

1. Follow the excellent instruction (https://github.com/bitcraze/bitcraze-vm ... -185517690) by Fred and upgrade your current VM. This is pretty simple and takes 5-10 minutes. If you have made modifications to the code or have other files that are saved on the VM disk, this is probably a good option.

2. Download the latest VM, V0.8. We applied the the necessary updates to the VM and released it as V0.8, check out https://wiki.bitcraze.io/projects:virtualmachine:index for download links. If you just want a VM that works this might be the best option.

Re: [SOLVED] Installing PyUSB 1.0.0rc1 on VM 0.6

Posted: Thu Feb 18, 2016 1:15 pm
by alex
Thanks kristoffer for updating the VM, this is the better option for me since I messed up my Eclipse setup as well and planned to clone my and Bitcraze's repos from scratch...

Looking forward to jumping into the CF project again...