Closed elichai closed 7 years ago
That's the error:
$ python setup.py build running build running build_py running build_ext building 'smartcard.scard._scard' extension swigging smartcard/scard/scard.i to smartcard/scard/scard_wrap.c swig -python -outdir smartcard/scard -DPCSCLITE -o smartcard/scard/scard_wrap.c smartcard/scard/scard.i creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/smartcard creating build/temp.linux-x86_64-2.7/smartcard/scard x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DVER_PRODUCTVERSION=1,9,4,0000 -DVER_PRODUCTVERSION_STR=1.9.4 -DPCSCLITE=1 -Ismartcard/scard/ -I/usr/include/PCSC -I/usr/include/python2.7 -c smartcard/scard/helpers.c -o build/temp.linux-x86_64-2.7/smartcard/scard/helpers.o smartcard/scard/helpers.c:28:22: fatal error: winscard.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
install the package pcsclite-dev
Ran into this problem recently on ubuntu 18.04 Package to install is libpcsclite-dev
libpcsclite-dev
Exact @jnaulty
That's the error: