dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.83k stars 965 forks source link

No module named schedule.__main__; 'schedule' is a package and cannot be directly executed #447

Closed joris-devdata closed 3 years ago

joris-devdata commented 3 years ago

Hello,

This is the message i had from vs code debug. i have installed schedule 1.0.0 in a virtual env python 3.9.1 version. if i run it with jupyterlab, i have no problem.

I have checked that my python interpreter is correctly configured (Python 3.9.1 64-bit ('venvp39') and that scheduler is installed in my 'venvp39' folder.

What should I do with VSC (version1.54.1) please ? i haven't found a solution on google or stackoverflow for the moment.

Thanks for your help ;-) image_490

joris-devdata commented 3 years ago

Works perfectly in jupyterlab image_491

SijmenHuizenga commented 3 years ago

Hi @joris-devdata, I'm glad to hear you are giving schedule a try. The problem you are experiencing seems to be caused by visual studio code since schedule works fine in jupterlab. I think you will be getting better help asking the VSC community, either on Github, Reddit or Stackoverflow.

joris-devdata commented 3 years ago

Allright, i will. As soon as i have an answer, i will share ;-)