Reading xlsx files in py2exe

落爺英雄遲暮 提交于 2020-01-17 08:36:09

问题


I am using pyexcel_io.get_data method to read xlsx files for my wxpython application. When I run it with python main.py, reading the file works fine and it reads the contents properly. But when I create an executable using py2exe, the code gets stuck in get_data function, and also no error is thrown. It seems like the code is just stuck inside the get_data function. Googled but could not find any similar occurences of this issue.

Are there any other similar libraries for reading xlsx files? Or is there an existing solution for this issue?

Thanks in advance


回答1:


You need to tell py2exe about the hidden imports:

pyexcel_xlsx
pyexcel_xlsx.xlsxr
pyexcel_xlsx.xlsxw

Potential solution: Py2Exe and Easgui

People tried with pyinstaller with success.



来源:https://stackoverflow.com/questions/46572399/reading-xlsx-files-in-py2exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!