question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

usb.core.USBError: [Errno 13] Access denied (insufficient permissions)

See original GitHub issue

Hi braiden,

I recently updated to 12.04 x64 and am attempting to reinstall this package. Everything goes fine when I install ez_setup and then python-ant-downloader via pip.

Now, regardless of whether I install the package with or without the “–user” option in pip, I receive the following error when I run ant-downloader:

josh@josh-ThinkPad:~/.local/bin$ ant-downloader 
Traceback (most recent call last):
  File "/home/josh/.local/bin/ant-downloader", line 8, in <module>
    load_entry_point('python-ant-downloader==12.03.21', 'console_scripts', 'ant-downloader')()
  File "/home/josh/.local/lib/python2.7/site-packages/antd/main.py", line 73, in downloader
    host = antd.cfg.create_antfs_host()
  File "/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py", line 112, in create_antfs_host
    host = antfs.Host(create_ant_session(), keys)
  File "/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py", line 99, in create_ant_session
    session = ant.Session(create_ant_core())
  File "/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py", line 95, in create_ant_core
    return ant.Core(create_hardware())
  File "/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py", line 91, in create_hardware
    return hw.UsbHardware(id_vendor, id_product, bulk_endpoint)
  File "/home/josh/.local/lib/python2.7/site-packages/antd/hw.py", line 48, in __init__
    dev.set_configuration()
  File "build/bdist.linux-x86_64/egg/usb/core.py", line 547, in set_configuration
  File "build/bdist.linux-x86_64/egg/usb/core.py", line 91, in managed_set_configuration
  File "build/bdist.linux-x86_64/egg/usb/core.py", line 70, in managed_open
  File "build/bdist.linux-x86_64/egg/usb/backend/libusb10.py", line 494, in open_device
  File "build/bdist.linux-x86_64/egg/usb/backend/libusb10.py", line 403, in _check
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)

I can run the program as root, but obviously this is something I would rather not do. The problem seems to be more localized to libusb1.0, but if you had any ideas, I would really appreciate it. Thanks!

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
IonutGorgoscommented, Aug 22, 2017

Hello,

For Mac OS, try to unload the AppleUSBFtdi kext:

sudo kextunload -bundle-id com.apple.driver.AppleUSBFTDI

You can reload it with:

sudo kextload -bundle-id com.apple.driver.AppleUSBFTDI

Source: http://pylibftdi.readthedocs.io/en/0.16.0/troubleshooting.html

Tested on macOS Sierra v10.12.6

1reaction
jat255commented, Jul 20, 2012

Right, of course. The installation had done this already. All I had to do was restart udev with sudo udevadm trigger

Thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

USBError: [Errno 13] Access denied (insufficient permissions)
Disconnect and re-connect the USB device. This worked for me in Ubuntu 20.04 running Python 3.8.10. Share.
Read more >
USBError: [Errno 13] Access denied (insufficient permissions ...
Hi ,. On running this particular pycrafter4500 module in my python terminal, I kept getting the following error.
Read more >
usb.core.USBError: [Errno 13] Access ... - Raspberry Pi Forums
Hello everyone. I am using an USB RFID reader with a raspberry Pi 3. The device works perfectly, when i pass a Card...
Read more >
Udev rules not being applied - Ask Fedora
usb.core.USBError: [Errno 13] Access denied (insufficient permissions). Everything works fine as sudo. I am confused here.
Read more >
error [Errno 13] Access denied (insufficient permissions) - Odoo
I'm getting this message when accessing /hw_proxy/status. I set 777 permissions on /dev/usb/lp0, which corresponds to the Epson printer in question.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found