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

No module named 'cachet_url_monitor.plugins' #105

Open
pcevela opened this issue Jun 6, 2020 · 4 comments
Open

No module named 'cachet_url_monitor.plugins' #105

pcevela opened this issue Jun 6, 2020 · 4 comments
Assignees

Comments

@pcevela
Copy link

pcevela commented Jun 6, 2020

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

@ygwane
Copy link

ygwane commented Jun 8, 2020

Same issue here

@mtakaki mtakaki self-assigned this Jun 15, 2020
@quadeare
Copy link

Same issue here.

Previous release works : release-0.6.9

@dgiebert
Copy link
Contributor

dgiebert commented Jul 7, 2020

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 <mitsuotakaki@gmail.com>

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 ?

@ezlo-codrin
Copy link

same issue on 0.6.10

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

6 participants