Discussion:
[pyusb-users] PyUSB on Intel Galileo Gen 2
Setia Budi
2014-11-24 23:33:21 UTC
Permalink
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux running
on top of it. This micro PC is planned to replace some other micro PC for
field experiment.
I installed pyusb on it without any issue, however, once I run my script,
which is using pyusb module, I found this error message:

Traceback (most recent call last):
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available

I am just wondering whether anyone has a solution for this problem?
Thank you :)

Kind regards,
Budi
Xiaofan Chen
2014-11-25 01:17:17 UTC
Permalink
Post by Setia Budi
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux running
on top of it. This micro PC is planned to replace some other micro PC for
field experiment.
I installed pyusb on it without any issue, however, once I run my script,
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
I am just wondering whether anyone has a solution for this problem?
Thank you :)
Did you install libusb-1.0? For Linux it is better to install libusb-1.0
as the backend for pyusb. If your Linux distro does not provide
the package, then you need to build from source. But most
Linux distros provide libusb-1.0.

Website: http://libusb.info/
Download: http://sourceforge.net/projects/libusb/
--
Xiaofan
Setia Budi
2014-11-25 01:23:52 UTC
Permalink
Thanks for the hint. I will try it now :)

Kind regards,
Budi
Post by Setia Budi
Post by Setia Budi
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux
running
Post by Setia Budi
on top of it. This micro PC is planned to replace some other micro PC for
field experiment.
I installed pyusb on it without any issue, however, once I run my script,
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
I am just wondering whether anyone has a solution for this problem?
Thank you :)
Did you install libusb-1.0? For Linux it is better to install libusb-1.0
as the backend for pyusb. If your Linux distro does not provide
the package, then you need to build from source. But most
Linux distros provide libusb-1.0.
Website: http://libusb.info/
Download: http://sourceforge.net/projects/libusb/
--
Xiaofan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
https://lists.sourceforge.net/lists/listinfo/pyusb-users
Setia Budi
2014-11-25 01:49:12 UTC
Permalink
configure: error: in `/home/root/libusb-1.0.9':
configure: error: no acceptable C compiler found in $PATH


Need to get c compiler >.<
Post by Setia Budi
Thanks for the hint. I will try it now :)
Kind regards,
Budi
Post by Setia Budi
Post by Setia Budi
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux
running
Post by Setia Budi
on top of it. This micro PC is planned to replace some other micro PC
for
Post by Setia Budi
field experiment.
I installed pyusb on it without any issue, however, once I run my
script,
Post by Setia Budi
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID,
idProduct=PRODUCT_ID)
Post by Setia Budi
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in
find
Post by Setia Budi
raise ValueError('No backend available')
ValueError: No backend available
I am just wondering whether anyone has a solution for this problem?
Thank you :)
Did you install libusb-1.0? For Linux it is better to install libusb-1.0
as the backend for pyusb. If your Linux distro does not provide
the package, then you need to build from source. But most
Linux distros provide libusb-1.0.
Website: http://libusb.info/
Download: http://sourceforge.net/projects/libusb/
--
Xiaofan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
https://lists.sourceforge.net/lists/listinfo/pyusb-users
Setia Budi
2014-11-25 05:31:43 UTC
Permalink
Actually, libusb is available on Yocto Linux:

***@clanton:~# ls /lib/ | grep libusb
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so.0
libusb-1.0.so.0.1.0

But still, every time I call my script, I always have this error message

Traceback (most recent call last):
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available

Kind regards,
Budi
Post by Setia Budi
configure: error: no acceptable C compiler found in $PATH
Need to get c compiler >.<
Post by Setia Budi
Thanks for the hint. I will try it now :)
Kind regards,
Budi
Post by Setia Budi
Post by Setia Budi
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux
running
Post by Setia Budi
on top of it. This micro PC is planned to replace some other micro PC
for
Post by Setia Budi
field experiment.
I installed pyusb on it without any issue, however, once I run my
script,
Post by Setia Budi
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID,
idProduct=PRODUCT_ID)
Post by Setia Budi
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in
find
Post by Setia Budi
raise ValueError('No backend available')
ValueError: No backend available
I am just wondering whether anyone has a solution for this problem?
Thank you :)
Did you install libusb-1.0? For Linux it is better to install libusb-1.0
as the backend for pyusb. If your Linux distro does not provide
the package, then you need to build from source. But most
Linux distros provide libusb-1.0.
Website: http://libusb.info/
Download: http://sourceforge.net/projects/libusb/
--
Xiaofan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
https://lists.sourceforge.net/lists/listinfo/pyusb-users
Wander Lairson Costa
2014-11-27 16:10:34 UTC
Permalink
Hi,

Could you please run with the env var PYUSB_DEBUG=debug and post the logs?
Post by Setia Budi
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so.0
libusb-1.0.so.0.1.0
But still, every time I call my script, I always have this error message
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
Kind regards,
Budi
Post by Setia Budi
configure: error: no acceptable C compiler found in $PATH
Need to get c compiler >.<
Post by Setia Budi
Thanks for the hint. I will try it now :)
Kind regards,
Budi
Post by Xiaofan Chen
Post by Setia Budi
Hi all,
At the moment I am working with Intel Galileo Gen2 with Yocto Linux running
on top of it. This micro PC is planned to replace some other micro PC for
field experiment.
I installed pyusb on it without any issue, however, once I run my script,
File "pyru824.py", line 71, in <module>
RFID_READER = usb.core.find(idVendor=VENDOR_ID,
idProduct=PRODUCT_ID)
File "/usr/lib/python2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
I am just wondering whether anyone has a solution for this problem?
Thank you :)
Did you install libusb-1.0? For Linux it is better to install libusb-1.0
as the backend for pyusb. If your Linux distro does not provide
the package, then you need to build from source. But most
Linux distros provide libusb-1.0.
Website: http://libusb.info/
Download: http://sourceforge.net/projects/libusb/
--
Xiaofan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
https://lists.sourceforge.net/lists/listinfo/pyusb-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
https://lists.sourceforge.net/lists/listinfo/pyusb-users
--
Best Regards,
Wander Lairson Costa
Loading...