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 'global_state' #213

Open
kemjim opened this issue Dec 30, 2022 · 4 comments
Open

ModuleNotFoundError: No module named 'global_state' #213

kemjim opened this issue Dec 30, 2022 · 4 comments

Comments

@kemjim
Copy link

kemjim commented Dec 30, 2022

I am using Python 3.9.12 and I installed easygui.
When I import it, it says "ModuleNotFoundError: No module named 'global_state'"
Did anyone have a similar issue? If so, how did you resolve it?

@spyoungtech
Copy link
Contributor

spyoungtech commented Dec 30, 2022

@kemjim did you by chance name any of your Python files or project directories as easygui or boxes?

Can you provide the full stacktrace?

@kemjim
Copy link
Author

kemjim commented Dec 30, 2022

Hello @spyoungtech, I didn't name any files as easygui or boxes. My directory name is photo_project. I have a virtual environment in that directory where I installed rembg and easygui.
My file's name is project.py

@zadacka
Copy link
Collaborator

zadacka commented Jan 2, 2023

Hi @kemjim - likely you need to install the tkinter library.

Can you try installing the dependent library. Assuming 'nix, something like:
sudo apt-get install python3-tk

And let us know how you get on, please?

This might be useful too:
https://stackoverflow.com/questions/68673016/modulenotfounderror-no-module-named-global-state

Side note: it isn't a very helpful error message that you see - we should maybe have easygui do a check at import time so that we could prefix the ModuleNotFound error with some helpful text.

@bthnakkurt
Copy link

bthnakkurt commented Nov 17, 2023

Hi @kemjim - likely you need to install the tkinter library.

Can you try installing the dependent library. Assuming 'nix, something like: sudo apt-get install python3-tk

And let us know how you get on, please?

This might be useful too: https://stackoverflow.com/questions/68673016/modulenotfounderror-no-module-named-global-state

Side note: it isn't a very helpful error message that you see - we should maybe have easygui do a check at import time so that we could prefix the ModuleNotFound error with some helpful text.

i wonder can't we use easygui with tk by installing from pip?

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