cachet-url-monitor icon indicating copy to clipboard operation
cachet-url-monitor copied to clipboard

No module named 'cachet_url_monitor.plugins'

Open pcevela opened this issue 4 years ago • 4 comments

Hi @mtakaki, this merge broke docker implementation:

[root@x1 alpine-test]# docker pull mtakaki/cachet-url-monitor
Using default tag: latest
latest: Pulling from mtakaki/cachet-url-monitor
Digest: sha256:f3bbd05898ed4bd7e8de6b612c641008f5f2adbaeb7efc2b4401b589eadb97e3
Status: Image is up to date for mtakaki/cachet-url-monitor:latest
docker.io/mtakaki/cachet-url-monitor:latest
[root@x1 alpine-test]# docker run --rm -it -v "$PWD":/usr/src/app/config/ mtakaki/cachet-url-monitor
Traceback (most recent call last):
  File "./cachet_url_monitor/scheduler.py", line 14, in <module>
    from cachet_url_monitor.plugins.token_provider import get_token
ModuleNotFoundError: No module named 'cachet_url_monitor.plugins'

release-0.6.9 is working correctly

pcevela avatar Jun 06 '20 22:06 pcevela

Same issue here

ygwane avatar Jun 08 '20 14:06 ygwane

Same issue here.

Previous release works : release-0.6.9

quadeare avatar Jun 22 '20 13:06 quadeare

Regarding the Dockerfile you are not moving the plugins folder, so a working change could be:

FROM python:3.7.2-alpine
MAINTAINER Mitsuo Takaki <[email protected]>

WORKDIR /usr/src/app

RUN python3.7 -m pip install --upgrade pip
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt

COPY cachet_url_monitor /usr/src/app/cachet_url_monitor
COPY setup.py /usr/src/app/
RUN python3.7 setup.py install

COPY config.yml /usr/src/app/config/
VOLUME /usr/src/app/config/

CMD ["python3.7", "./cachet_url_monitor/scheduler.py", "config/config.yml"]

Not sure if that is the same error for the release ?

dgiebert avatar Jul 07 '20 09:07 dgiebert

same issue on 0.6.10

ezlo-codrin avatar Jun 10 '21 07:06 ezlo-codrin