OrganiseDesktop icon indicating copy to clipboard operation
OrganiseDesktop copied to clipboard

ModuleNotFoundError: No module named '__main__.cronController'; '__main__' is not a package

Open mtshikomba opened this issue 4 years ago • 3 comments

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 `

mtshikomba avatar Jan 13 '21 00:01 mtshikomba

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

blavejr avatar Jan 13 '21 08:01 blavejr

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?

KokoseiJ avatar Jan 14 '21 03:01 KokoseiJ

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

shashank1623 avatar Oct 01 '22 17:10 shashank1623