Pyinstaller with nfcpy

Asked by James Hillman

This forum has been a massive help for me in the past.

I have been using PyInstaller with some success to move python application to non-development machines.

However, recently the application has started using nfcpy.

I am finding the installed application errors/exception with 'no module named pn533'. This is coming from nfc.contactlessfrontend('usb'). I have a SCL3711 usb dongle which has the pn533 chipset I believe.

So the error is clear to me, that PyInstaller whilst it has identified the nfcpy module is required it hasn't included the imports for at least pn533 but maybe other components of clf.

Has anyone had any success with using PyInstaller with nfcpy?

I have tried to add 'pn533' has a hidden import but PyInstaller can't find it - presumbly its not really a module like nfcpy is.

Maybe there is another one to include support - like moving the pyc, however, that didn't work for me.

Many thanks in advance for any thoughts you may have.

Question information

English Edit question
nfcpy Edit question
No assignee Edit question
Solved by:
James Hillman
Last query:
Last reply:
Revision history for this message
James Hillman (melonone1) said :

I have now resolved this. In the hidden import include 'usb', 'nfc.clf.pn533' and 'nfc.clf.pn53x'.

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :

Many thanks for raising AND solving this issue.