pyinstaller and tablib

71 views
Skip to first unread message

Samuli L

unread,
Dec 17, 2021, 5:55:32 AM12/17/21
to PyInstaller
Hi everyone!

I'm newbie with python, so I don't know every details yet.
I've done an app that reads data from database and it should write datas to excel by using tablib. It works on my development environment (pycharm)

When wrapping it to exe and moving it to production (windows pc) (with hidden-import 'openpyxl') everything goes ok, but when writing data to execl (dic contains the datas)
 with open(file, 'wb') as f:
                f.write(dic.export("xlsx"))


No module named 'tablib.formats._xlsx'

How to add that module to the exe.

Samuli L

unread,
Dec 17, 2021, 7:25:20 AM12/17/21
to PyInstaller
Sorry, my bad. 
Found the problem by myself. There were a typo in hidden imports

Reply all
Reply to author
Forward
0 new messages