ERROR with simple python code, requesting help

41 views
Skip to first unread message

John Tylshar

unread,
Aug 20, 2023, 6:09:39 AM8/20/23
to PyInstaller
Hello,
I have a little problem and I dont really know why.
Im trying to do basic app for macos.
Can anobode help me please?

Im sending code (it has only 15 lines) and error screenshots.

Thank you so much for your help.






Code is here:

#python -m pip install selenium
import psutil
import rumps
import socket
import requests
import platform


class memory(rumps.App):
def __init__(self):
super(memory, self).__init__(type(self).__name__, title="System Monitor")
self.menu = ["_______System Monitor_______"]

if __name__ == "__main__":
memory().run()





26615B1A-4975-45F0-B939-E300BEE99689.jpeg5978C5A8-AD3E-4AF8-94F2-59F5CE688789.jpeg

bwoodsend

unread,
Aug 21, 2023, 3:44:53 AM8/21/23
to PyInstaller

You’re running the program in the build directory — that’s not your application! It’s just a temporary space PyInstaller uses to assemble things. Your real application is in the dist directory.

John Tylshar

unread,
Aug 21, 2023, 9:26:02 AM8/21/23
to PyInstaller
I know, what happens when I open the app is here https://groups.google.com/group/pyinstaller/attach/a6efbafc867bd/5978C5A8-AD3E-4AF8-94F2-59F5CE688789.jpeg?part=0.1&view=1

Dne pondělí 21. srpna 2023 v 9:44:53 UTC+2 uživatel bwoodsend napsal:

John Tylshar

unread,
Aug 21, 2023, 9:26:11 AM8/21/23
to PyInstaller
I opened the installer (left screenshot) if I open the app in dist its the right screenshot. 

Dne pondělí 21. srpna 2023 v 9:44:53 UTC+2 uživatel bwoodsend napsal:

You’re running the program in the build directory — that’s not your application! It’s just a temporary space PyInstaller uses to assemble things. Your real application is in the dist directory.

Reply all
Reply to author
Forward
0 new messages