{"action":"created","issue":{"url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/12","labels_url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/12/comments","events_url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/12/events","html_url":"https://github.com/LudovicRousseau/pyscard/issues/12","id":104118729,"number":12,"title":"1.9.0 release not working for python 2.7","user":{"login":"spartacus06","id":493891,"avatar_url":"https://avatars.githubusercontent.com/u/493891?v=3","gravatar_id":"","url":"https://api.github.com/users/spartacus06","html_url":"https://github.com/spartacus06","followers_url":"https://api.github.com/users/spartacus06/followers","following_url":"https://api.github.com/users/spartacus06/following{/other_user}","gists_url":"https://api.github.com/users/spartacus06/gists{/gist_id}","starred_url":"https://api.github.com/users/spartacus06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartacus06/subscriptions","organizations_url":"https://api.github.com/users/spartacus06/orgs","repos_url":"https://api.github.com/users/spartacus06/repos","events_url":"https://api.github.com/users/spartacus06/events{/privacy}","received_events_url":"https://api.github.com/users/spartacus06/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-31T19:30:36Z","updated_at":"2015-09-09T23:59:38Z","closed_at":null,"body":"```\r\n$ python\r\nPython 2.7.10 (default, Jul  5 2015, 14:15:43) \r\n[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import smartcard\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/__init__.py\", line 32, in <module>\r\n    from smartcard.System import listReaders\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/System.py\", line 28, in <module>\r\n    import smartcard.reader.ReaderFactory\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/reader/ReaderFactory.py\", line 34, in <module>\r\n    from smartcard.pcsc.PCSCReader import PCSCReader\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/pcsc/PCSCReader.py\", line 28, in <module>\r\n    from smartcard.pcsc.PCSCContext import PCSCContext\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/pcsc/PCSCContext.py\", line 27, in <module>\r\n    from smartcard.scard import *\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/scard/__init__.py\", line 1, in <module>\r\n    from smartcard.scard.scard import *\r\n  File \"/usr/lib64/python2.7/site-packages/smartcard/scard/scard.py\", line 830, in <module>\r\n    SCARD_SCOPE_USER = _scard.SCARD_SCOPE_USER\r\nAttributeError: 'module' object has no attribute 'SCARD_SCOPE_USER'\r\n```\r\n\r\nSeems like something up with swig, but I'm not a python guy.  Any help appreciated!"},"comment":{"url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/comments/139076315","html_url":"https://github.com/LudovicRousseau/pyscard/issues/12#issuecomment-139076315","issue_url":"https://api.github.com/repos/LudovicRousseau/pyscard/issues/12","id":139076315,"user":{"login":"kaminoo","id":640406,"avatar_url":"https://avatars.githubusercontent.com/u/640406?v=3","gravatar_id":"","url":"https://api.github.com/users/kaminoo","html_url":"https://github.com/kaminoo","followers_url":"https://api.github.com/users/kaminoo/followers","following_url":"https://api.github.com/users/kaminoo/following{/other_user}","gists_url":"https://api.github.com/users/kaminoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kaminoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaminoo/subscriptions","organizations_url":"https://api.github.com/users/kaminoo/orgs","repos_url":"https://api.github.com/users/kaminoo/repos","events_url":"https://api.github.com/users/kaminoo/events{/privacy}","received_events_url":"https://api.github.com/users/kaminoo/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T23:59:38Z","updated_at":"2015-09-09T23:59:38Z","body":"+1 for me\r\nWorking on OSX 10.10.5 and python 2.7.10\r\nDoing `pip install pyscard` will install 1.9.0 and can't run not even the examples with error `AttributeError: 'module' object has no attribute 'SCARD_SCOPE_USER'`\r\nInstalling using `pip install <url to master.zip>` makes a different error saying `scard module does not exist`\r\n\r\nAny help? Does python 3 fix this issue?\r\nAny workarounds?\r\nI couldn't understand what other user this as workaround with swig and such.\r\n\r\nAnything I can help, let me know."}}