{"action":"created","issue":{"url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/11","repository_url":"https://api.github.com/repos/qpit/thorlabs_apt","labels_url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/11/comments","events_url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/11/events","html_url":"https://github.com/qpit/thorlabs_apt/issues/11","id":236306930,"node_id":"MDU6SXNzdWUyMzYzMDY5MzA=","number":11,"title":"ctypes issue - 'module' object has no attribute 'util'","user":{"login":"cmoriarty","id":7228524,"node_id":"MDQ6VXNlcjcyMjg1MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7228524?v=4","gravatar_id":"","url":"https://api.github.com/users/cmoriarty","html_url":"https://github.com/cmoriarty","followers_url":"https://api.github.com/users/cmoriarty/followers","following_url":"https://api.github.com/users/cmoriarty/following{/other_user}","gists_url":"https://api.github.com/users/cmoriarty/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoriarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoriarty/subscriptions","organizations_url":"https://api.github.com/users/cmoriarty/orgs","repos_url":"https://api.github.com/users/cmoriarty/repos","events_url":"https://api.github.com/users/cmoriarty/events{/privacy}","received_events_url":"https://api.github.com/users/cmoriarty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-15T20:36:07Z","updated_at":"2018-06-01T12:10:13Z","closed_at":null,"author_association":"NONE","body":"I used pip to install thorlabs_apt, and I'm running python 2.7. \r\n\r\nSimply trying to run the import statement fails:\r\n`import thorlabs_apt as apt`\r\n\r\n```\r\nfilename = ctypes.util.find_library(\"APT\")\r\nAttributeError: 'module' object has no attribute 'util'\r\n```\r\n\r\nI was able to fix this by adding this line to core.py:\r\n`from ctypes.util import find_library`"},"comment":{"url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/comments/393861529","html_url":"https://github.com/qpit/thorlabs_apt/issues/11#issuecomment-393861529","issue_url":"https://api.github.com/repos/qpit/thorlabs_apt/issues/11","id":393861529,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzg2MTUyOQ==","user":{"login":"Tianyu-Hua","id":33930738,"node_id":"MDQ6VXNlcjMzOTMwNzM4","avatar_url":"https://avatars3.githubusercontent.com/u/33930738?v=4","gravatar_id":"","url":"https://api.github.com/users/Tianyu-Hua","html_url":"https://github.com/Tianyu-Hua","followers_url":"https://api.github.com/users/Tianyu-Hua/followers","following_url":"https://api.github.com/users/Tianyu-Hua/following{/other_user}","gists_url":"https://api.github.com/users/Tianyu-Hua/gists{/gist_id}","starred_url":"https://api.github.com/users/Tianyu-Hua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tianyu-Hua/subscriptions","organizations_url":"https://api.github.com/users/Tianyu-Hua/orgs","repos_url":"https://api.github.com/users/Tianyu-Hua/repos","events_url":"https://api.github.com/users/Tianyu-Hua/events{/privacy}","received_events_url":"https://api.github.com/users/Tianyu-Hua/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T12:10:13Z","updated_at":"2018-06-01T12:10:13Z","author_association":"NONE","body":"I found that if you use `from ctypes import util` instead of `from ctypes import *` or just `import ctypes`,  it works fine"}}
{"actor":{"display_login":"Tianyu-Hua"}}