duarteocarmo / coronabar

🦠 A menu bar app to track coronavirus cases all over the world
https://github.com/duarteocarmo/coronabar
MIT License
39 stars 7 forks source link

How do you compile it? #1

Closed energetictree closed 4 years ago

energetictree commented 4 years ago

I tried to compiled and it can compiled however when I tried to run it gives error with button Open Console and terminate.

duarteocarmo commented 4 years ago

You need to use py2app. Here are the instructions in the rumps documentation.

However, I have seen that error before in the computers of some users. Users with older macOS versions than mine are getting that error.

Can you give me a bit more details?

energetictree commented 4 years ago

After followed the hint from https://stackoverflow.com/questions/59519402/py2app-modules-not-found-conditional-imports by running ./dist/XXX.app/Contents/MacOS/XXX from terminal there is error: ModuleNotFoundError: No module named 'pkg_resources.py2_warn'

Issue resolved after compiled with: python3 setup.py py2app --packages=pkg_resources

thanks