Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'infi.systray' #28

Open
gauthierbuttez opened this issue Aug 6, 2020 · 3 comments
Open

ModuleNotFoundError: No module named 'infi.systray' #28

gauthierbuttez opened this issue Aug 6, 2020 · 3 comments

Comments

@gauthierbuttez
Copy link

Hi,
I tested your demo code in Python 3.7.7 on Windows 10:

from infi.systray import SysTrayIcon
def say_hello(systray):
    print("Hello, World!")
menu_options = (("Say Hello", None, say_hello),)
systray = SysTrayIcon("icon.ico", "Example tray icon", menu_options)
systray.start()

And I get this error message:
ModuleNotFoundError: No module named 'infi.systray'

@pythonrohan12345
Copy link

answer of this error is to type "pip install infi.systray" in command prompt because its an different package in infi

@WanderingApps
Copy link

WanderingApps commented Jan 19, 2022

When I complied with pyinstaller I had to add --hidden-import pkg_resources --hidden-import infi.systray to my pyinstaller arguments to resolve this error.

@Masgame
Copy link

Masgame commented Apr 26, 2022

Use "python -m pip install infi.systray" instead of "pip install infi.systray"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants