ok, I took on board your comment about install python3-usb which includes
pyusb.
I reinstalled the raspbian OS and installed python3-usb  ... it puts the
files in quite different places, but the same files.

Issue 1) again a number of files (e.g.
'usr/lib/python3.5/dist-packages/usb/backend/libusb1.py  = the
'insufficient permissions' problem installed with permission "Execute =
Nobody" .... again this did not seem right so I changed it and the other
permissions

Issue 2) same error, just a different file location
File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in
_check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)

I can't see what I have done wrong in repeated installations and attempts
to fix on different OS and hardware.

BTW Tormod & Jeffery I had not ignored your comments re /dev/bus/usb/*/*
but there was little in there and I fixed the permissions with no change.
With the re-install the files again loaded with 'execute = nobody' & I
changed that.
This time there was a change when running the script

File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in
_check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

which is an error beyond my experience

also BTW I installed python2.7-usb after I had no joy with v3 .... same
result

Cheers
Charles


On Tue, 22 Jan 2019 at 13:14, Tormod Volden <lists.tor...@gmail.com> wrote:

> On Tue, Jan 22, 2019 at 12:11 AM charles wilson wrote:
> > Looks we are the same page ... yes I will tidy up permissions later ...
> and the issue relates to the python version. I downloaded pyusb not
> python-usb"or "python3-usb.
> >
>
> Unless you know exactly what you are doing, or really need a newer
> version than what your Debian distribution offers, I would heartily
> recommended that you as much as possible only install the Debian
> packages from the system repository, "python-usb" and "python3-usb".
> These are not "pip" module names! Then remove the modules that you
> installed with pip (pyusb).
>
> The mix of system-provided modules and pip-installed modules can
> quickly get out of control. The Debian packaging system is much more
> robust than pip, whereas the pip packages can be much more up to date
> (and thus unstable).
>
> Tormod
>
>
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to