Reputation: 183
I want to work with nfcpy on Windows 7. Thus, I followed the instructions from https://nfcpy.readthedocs.io/en/latest/topics/get-started.html#installation
When I execute python-m nfc, I have the following error:
$ python -m nfc
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 163, in run_module_as_main
mod_name, Error)
File "C:\Python27\lib\runpy.py", line 111, in get_module_details
import(mod_name) # Do not catch exceptions initializing package
File "C:\Python27\lib\site-packages\nfc_init.py", line 22, in
from . import clf # noqa: F401
File "C:\Python27\lib\site-packages\nfc\clf_init.py", line 25, in
from . import device
File "C:\Python27\lib\site-packages\nfc\clf\device.py", line 32, in
from . import transport
File "C:\Python27\lib\site-packages\nfc\clf\transport.py", line 31, in
import usb1 as libusb
File "C:\Python27\lib\site-packages\usb1_init.py", line 61, in
from . import libusb1
File "C:\Python27\lib\site-packages\usb1\libusb1.py", line 199, in
libusb = _loadLibrary()
File "C:\Python27\lib\site-packages\usb1\libusb1.py", line 173, in loadLibrary
return dll_loader('libusb-1.0' + suffix, **loader_kw)
File "C:\Python27\lib\ctypes_init.py", line 366, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
I tried with 2 different python 2.7 installer version:
-> Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [**MSC v.1500 64 bit (AMD64)**] on win32
-> Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [**MSC v.1500 32 bit (Intel)**] on win32
I have the same error with both.
Upvotes: 0
Views: 329