The program works when run using:
Python filename.py
but when I create its executable file using "pyinstaller"
pyinstaller -F filename.py
the executable is successfully created, but execution of the script fails and following error is thrown.
Traceback (most recent call last):
File "site-packagespyexcel_iomanager.py", line 160, in create_reader
File "site-packagespyexcel_iomanager.py", line 222, in _get_a_handler
pyexcel_io.manager.NoSupportingPluginFound: No suitable library found for xls
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "script.py", line 8, in <module>
File "site-packagespyexcel_xls\__init__.py", line 29, in get_data
File "site-packagespyexcel_ioio.py", line 36, in get_data
File "site-packagespyexcel_ioio.py", line 126, in load_data
File "site-packagespyexcel_iomanager.py", line 171, in create_reader
pyexcel_io.manager.SupportingPluginAvailableButNotInstalled: Please install pyexcel-xls
Failed to execute script script
The respective python script is :
from pyexcel_xls import save_data , get_data
data = get_data("registered-market-makers-by-security.xls")
save_data("file_to_consume.xls", data)
How can I avoid this error and create a functional .exe file?
My client has windows environment.
I have also tried py2exe but it has some conflicts with windows dll's in my machine.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…