{"action":"created","issue":{"url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/30","labels_url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/30/comments","events_url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/30/events","html_url":"https://github.com/braiden/python-ant-downloader/issues/30","id":5712882,"number":30,"title":"usb.core.USBError: [Errno 13] Access denied (insufficient permissions)","user":{"login":"jat255","id":1278301,"avatar_url":"https://avatars.githubusercontent.com/u/1278301?v=3","gravatar_id":"","url":"https://api.github.com/users/jat255","html_url":"https://github.com/jat255","followers_url":"https://api.github.com/users/jat255/followers","following_url":"https://api.github.com/users/jat255/following{/other_user}","gists_url":"https://api.github.com/users/jat255/gists{/gist_id}","starred_url":"https://api.github.com/users/jat255/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jat255/subscriptions","organizations_url":"https://api.github.com/users/jat255/orgs","repos_url":"https://api.github.com/users/jat255/repos","events_url":"https://api.github.com/users/jat255/events{/privacy}","received_events_url":"https://api.github.com/users/jat255/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2012-07-19T14:02:53Z","updated_at":"2015-08-15T14:10:26Z","closed_at":"2012-07-20T02:17:53Z","body":"Hi braiden,\n\nI 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.\n\nNow, 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`:\n\n```\njosh@josh-ThinkPad:~/.local/bin$ ant-downloader \nTraceback (most recent call last):\n  File \"/home/josh/.local/bin/ant-downloader\", line 8, in <module>\n    load_entry_point('python-ant-downloader==12.03.21', 'console_scripts', 'ant-downloader')()\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/main.py\", line 73, in downloader\n    host = antd.cfg.create_antfs_host()\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py\", line 112, in create_antfs_host\n    host = antfs.Host(create_ant_session(), keys)\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py\", line 99, in create_ant_session\n    session = ant.Session(create_ant_core())\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py\", line 95, in create_ant_core\n    return ant.Core(create_hardware())\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/cfg.py\", line 91, in create_hardware\n    return hw.UsbHardware(id_vendor, id_product, bulk_endpoint)\n  File \"/home/josh/.local/lib/python2.7/site-packages/antd/hw.py\", line 48, in __init__\n    dev.set_configuration()\n  File \"build/bdist.linux-x86_64/egg/usb/core.py\", line 547, in set_configuration\n  File \"build/bdist.linux-x86_64/egg/usb/core.py\", line 91, in managed_set_configuration\n  File \"build/bdist.linux-x86_64/egg/usb/core.py\", line 70, in managed_open\n  File \"build/bdist.linux-x86_64/egg/usb/backend/libusb10.py\", line 494, in open_device\n  File \"build/bdist.linux-x86_64/egg/usb/backend/libusb10.py\", line 403, in _check\nusb.core.USBError: [Errno 13] Access denied (insufficient permissions)\n```\n\nI 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!"},"comment":{"url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/comments/131385005","html_url":"https://github.com/braiden/python-ant-downloader/issues/30#issuecomment-131385005","issue_url":"https://api.github.com/repos/braiden/python-ant-downloader/issues/30","id":131385005,"user":{"login":"HankB","id":3329662,"avatar_url":"https://avatars.githubusercontent.com/u/3329662?v=3","gravatar_id":"","url":"https://api.github.com/users/HankB","html_url":"https://github.com/HankB","followers_url":"https://api.github.com/users/HankB/followers","following_url":"https://api.github.com/users/HankB/following{/other_user}","gists_url":"https://api.github.com/users/HankB/gists{/gist_id}","starred_url":"https://api.github.com/users/HankB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HankB/subscriptions","organizations_url":"https://api.github.com/users/HankB/orgs","repos_url":"https://api.github.com/users/HankB/repos","events_url":"https://api.github.com/users/HankB/events{/privacy}","received_events_url":"https://api.github.com/users/HankB/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T14:10:26Z","updated_at":"2015-08-15T14:10:26Z","body":"Anything else to look at for this issue? I'm running Mint 17.2, contents of the udev rule:\r\n\r\nhbarta@myrtle ~ $ cat /etc/udev/rules.d/99-garmin.rules\r\nUBSYSTEM==\"usb\", ATTR{idVendor}==\"0fcf\", ATTR{idProduct}==\"1008\", MODE=\"666\"\r\n\r\nand I'm a member of plugdev and dialout groups. Permissions on the tty\r\n\r\nhbarta@myrtle ~ $ ls -l /dev/ttyUSB0 \r\ncrw-rw---- 1 root dialout 188, 0 Aug 15 09:00 /dev/ttyUSB0\r\n\r\nStill get\r\n\r\n    raise USBError(_strerror(ret), ret, _libusb_errno[ret])\r\nusb.core.USBError: [Errno 13] Access denied (insufficient permissions)\r\n\r\nIt works if I run it using sudo but I'm not real fond of doing that.\r\n\r\nThanks!\r\n"}}