LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
383 stars 110 forks source link

can't install or build module #29

Closed elichai closed 7 years ago

elichai commented 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
LudovicRousseau commented 7 years ago

install the package pcsclite-dev

jnaulty commented 4 years ago

Ran into this problem recently on ubuntu 18.04 Package to install is libpcsclite-dev

LudovicRousseau commented 4 years ago

Exact @jnaulty