Hi,

I am using a BAT file to generate the executable

Grr, why does everyone instantly go for this. The spec file contains all 
your input parameters. Once you’ve called pyinstaller --onefile 
--hidden-import _openpyxl --hidden-import xlsxwriter --hidden-import 
openpyxl --hidden-import xlwt --clean pyinst_excel.py once, in future you 
can just call PyInstaller pyinst_excel.spec. 

But that doesn’t matter - it should still work.

openpyxl.style' MissingModule
imported by: pandas.io.excel._openpyxl

'openpyxl.styles' MissingModule
imported by: pandas.io.excel._openpyxl

This tells us that PyInstaller is aware of the openpyxl dependencies (even 
before we explicitly told it with the --hidden-imports) but can’t find 
them. This usually boils down to venvs getting mixed up. Could you run it 
as python -m PyInstaller [rest of the command here]?

Brénainn

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/ede7d535-338e-44d3-89c8-209c8ad91e52n%40googlegroups.com.

Reply via email to