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

Module doesn't run in superuser #14

Closed
LunaticPython2003 opened this issue Oct 14, 2023 · 1 comment · Fixed by #17
Closed

Module doesn't run in superuser #14

LunaticPython2003 opened this issue Oct 14, 2023 · 1 comment · Fixed by #17
Labels
bug Something isn't working hacktoberfest Label for Hacktoberfest help wanted Extra attention is needed

Comments

@LunaticPython2003
Copy link
Collaborator

LunaticPython2003 commented Oct 14, 2023

Description

If the script is started as superuser, it crashes instantly without moving in to the main menu.

Expected Behavior

Should display the main menu

Steps to reproduce

cd fsociety && sudo python -m fsociety3

Logs attached

traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/madhurjya/Documents/fsociety/fsociety3/main.py", line 81, in
main()
File "/home/madhurjya/Documents/fsociety/fsociety3/main.py", line 77, in main
import main as fsociety_main
ModuleNotFoundError: No module named 'main'

@LunaticPython2003 LunaticPython2003 added bug Something isn't working help wanted Extra attention is needed hacktoberfest Label for Hacktoberfest labels Oct 14, 2023
@swarnabha-dev
Copy link
Contributor

@LunaticPython2003 Please assign me this as I have done fixing the error of running with sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest Label for Hacktoberfest help wanted Extra attention is needed
Projects
None yet
2 participants