Blog moved to

I moved my blog from to . Why? I wanted to move away from Blogger (owne...

Friday, March 31, 2023

PySCard 2.0.7 released

I just released a new version 2.0.7 of pyscard. PySCard is a python module adding smart cards support (PC/SC) to Python.

The PySCard project is available at:



2.0.7 (March 2023)

  • do not include the generated HTML documentation in the archive

2.0.6 (March 2023)

  • handle SCARD_E_NO_SERVICE on Windows (on last reader removal)
  • add support of MSYS2/mingw environment on Windows
  • improve documentation
  • minor changes

Friday, March 17, 2023

FAQ: wintypes.h or winscard.h not found

One of the most popular search requests that bring people on my website is about wintypes.h not found.


For example you try to compile something and get the error:

smartcard/scard/helpers.c:28:10: fatal error: winscard.h: No such file or directory
 #include <winscard.h>


The PC/SC header files (winscard.h, wintypes.h and some others) are provided by the development pcsclite package.

  • for Debian, Ubuntu or derivatives the package is pcsclite-dev
  • for RedHat, Fedora and derivatives the package is pcsc-lite-devel
  • for other Unixes, use your favourite search engine 😜

You install the correct package and you try again to build your software.


I hope this blog article will be correctly indexed by search engines to help people find the solution.