mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
125 stars 49 forks source link

No module named 'Schedule' #85

Closed LabodiDavid closed 4 years ago

LabodiDavid commented 4 years ago

I followed the installation instructions.

Finished processing dependencies for cachet-url-monitor==0.6.7
(cachet-url-monitor) root@S1-Linux-VM:/home/servers/cachet-url-monitor# python3 cachet_url_monitor/scheduler.py config.yml
Traceback (most recent call last):
  File "cachet_url_monitor/scheduler.py", line 8, in <module>
    import schedule
ModuleNotFoundError: No module named 'schedule'

When i trying to install 'Schedule'

(cachet-url-monitor) root@S1-Linux-VM:/home/servers/cachet-url-monitor# pip install schedule
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: schedule in ./lib/python2.7/site-packages (0.6.0)
mtakaki commented 4 years ago

Did you create a virtualenv with python3? Based on your last error, you're using python2. Can you try this (you can replace cachet-url-monitor for the name of the folder where you cloned it)?

$ python3 -m venv cachet-url-monitor
$ cd cachet-url-monitor
$ source bin/activate
$ pip install -r requirements.txt

If you already have a virtualenv setup in that folder, you need to remove the existing folders.

mtakaki commented 4 years ago

I'm closing this issue as I haven't gotten any answer. Please, feel free to re-open it if it happens again.