Pyinstaller with nfcpy
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.contactless
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
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- James Hillman
- Solved:
- 2016-10-20
- Last query:
- 2016-10-20
- Last reply:
James Hillman (melonone1) said : | #1 |
I have now resolved this. In the hidden import include 'usb', 'nfc.clf.pn533' and 'nfc.clf.pn53x'.
Many thanks for raising AND solving this issue.