schankamFebruary 22, 2017 at 4:38 pm #46655
I am using GL-MIFI board, and I was wondering if you guys were planning to offer the possibility to install the last version of pyusb package, instead of the very old 0.4.2 version ?
My python can not work on your architecture because it was built on pyusb 1.x, and I am not able to find any resource on pyusb 0.4..2 to make it compatible…
Regards,alzhaoFebruary 25, 2017 at 12:24 pm #46936
is it only pyusb or the whole python version?schankamFebruary 28, 2017 at 9:11 am #47270
Just the pyusb package; the 0.4.x is very old and has been replaced by the 1.0 (https://github.com/walac/pyusb)
As they say in the documentation:
Until 0.4 version, PyUSB used to be a thin wrapper over libusb. With 1.0 version, things changed considerably. Now PyUSB is an API rich, backend neutral Python USB module easy to use.
The python version is ok for me.
alzhaoMarch 1, 2017 at 5:17 pm #47446
- This reply was modified 10 months by schankam.
Does install using pip automatically use the newest version?
opkg install python python-pip libusb-1.0
pip install pyusb –pre
I think I have installed pyusb-1.0 successfully. But I don’t know how to verify and use it.schankamMarch 2, 2017 at 8:18 am #47493
I cannot install pip since the space on the device is very limited. I have no more than 8mb available and it seems not to be enough.
To check if you have pyusb 1.0, just run the python interpreter and try an
If it is not throwing an error, it should be the 1.0.
How did you succeed to install pip with such a limited space ? I am using Gl-Mifi. Any suggestions ?alzhaoMarch 2, 2017 at 9:08 am #47495
I am using AR300M which has 128MB nand flash. For MiFi you may need to add a SD card and use exroot.
I tried import usb.core and no error.
You must be logged in to create new replies.