Using Py2app With Tkinter And Openpyxl And Multiple Files?
From searching around this is what my setup.py is right now. When I build my application using the -A mode (alias) then try to run it I get this error: In the console I find this
Solution 1:
I found the solution to my own problem. openpyxl is a library contained in a .egg file. py2app and py2exe don't play nicely with .egg files. Once I unzipped the .egg file and placed it in my project everything worked nicely. Also my setup.py file didn't need to be nearly as complicated, below is the setup.py that works. Also, I stopped building it in alias mode and it worked just fine.
"""
Script for building the example.
Usage:
python setup.py py2app
"""
from setuptools import setup
setup(
app=['notebook_tracker.pyw'],
setup_requires=["py2app"],
)
Post a Comment for "Using Py2app With Tkinter And Openpyxl And Multiple Files?"