[SOLVED] Installing PyUSB 1.0.0rc1 on VM 0.6

Post here to get support
Post Reply
alex
Expert
Posts: 137
Joined: Mon Feb 18, 2013 11:36 am
Location: Germany

[SOLVED] Installing PyUSB 1.0.0rc1 on VM 0.6

Post 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
Last edited by alex on Thu Feb 18, 2016 11:46 am, edited 1 time in total.
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Post by derf »

Hi,

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

HTH,

Fred
alex
Expert
Posts: 137
Joined: Mon Feb 18, 2013 11:36 am
Location: Germany

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Post by alex »

Thank you very much, derf.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Installing PyUSB 1.0.0rc1 on VM 0.6

Post 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.
alex
Expert
Posts: 137
Joined: Mon Feb 18, 2013 11:36 am
Location: Germany

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

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