ValueError:没有可用的后端

时间:2015-05-29 18:45:11

标签: python nfc backend

我尝试在Mac OS X 10.9.5上使用我的ACR122U和用于Python 2.7的nfcpy库/模块。

我按照本网站上的说明操作:http://nfcpy.readthedocs.org/en/latest/topics/get-started.html但输入时仍然出现错误:

clf = nfc.ContactlessFrontend('usb')

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    clf = nfc.ContactlessFrontend('usb')
  File "nfc/clf.py", line 105, in __init__
    if path and not self.open(path):
  File "nfc/clf.py", line 156, in open
    self.dev = nfc.dev.connect(path)
  File "nfc/dev/__init__.py", line 55, in connect
    found = transport.USB.find(path)
  File "nfc/dev/transport.py", line 169, in find
    for d in cls.usb_core.find(find_all=True, **match)]
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/usb/core.py", line 1199, in find
    raise ValueError('No backend available')
ValueError: No backend available

有什么想法吗?

0 个答案:

没有答案