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 '__main__.cronController'; '__main__' is not a package #92

Open
mtshikomba opened this issue Jan 13, 2021 · 3 comments

Comments

@mtshikomba
Copy link

mtshikomba commented Jan 13, 2021

I've installed all the requirements as mentioned but I keep getting this error. Not sure what the problem is PLEASE HELP.

`D:\OrganiseDesktop-master\OrganiseDesktop-master
(env) λ python organise_desktop\Clean.py
Traceback (most recent call last):
File "organise_desktop\Clean.py", line 4, in
from .cronController import schedule_end, schedule_start
ModuleNotFoundError: No module named 'main.cronController'; 'main' is not a package

D:\OrganiseDesktop-master\OrganiseDesktop-master
(env) λ cd organise_desktop\

D:\OrganiseDesktop-master\OrganiseDesktop-master\organise_desktop
(env) λ python Clean.py
Traceback (most recent call last):
File "Clean.py", line 4, in
from .cronController import schedule_end, schedule_start
ModuleNotFoundError: No module named 'main.cronController'; 'main' is not a package
`

@blavejr
Copy link
Owner

blavejr commented Jan 13, 2021

Hey @dev-mtshikomba, could you let me know which OS you are running on?

@KokoseiJ
Copy link
Collaborator

KokoseiJ commented Jan 14, 2021

I'd assume Windows, judging from his CWD.

While I currently can't access my PC for, 2 more days, I think your environment could be the culprit. Are you sure that you have cronController.py in the same folder where Clean.py is?

EDIT: While you're at it, could you please try python3 -m organise_desktop and see if it works?

@shashank1623
Copy link

The python -m organise_desktop cmd works to solve the problem of relative import

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