-
Notifications
You must be signed in to change notification settings - Fork 216
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
Build Error <mock requires Python '>=3.6' but the running Python is 2.7.15> #161
Comments
Having the same issue myself on Ubuntu 18.04 after making the change "FROM alpine:latest as py-ea -> FROM alpine:3.8 as py-ea" Did you have any luck resolving @bcisse ? |
I was able to build version v0.2.1 of the elastalert docker image by modifying the dockerfile to install python3 as follows: *****Dockerfile ***** TO: TO: RUN sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.15/g' setup.py && When I try to start a container using the image, it fails however after a few seconds. The elastalert indices are created in elasticsearch but container fails shortly after with following error: 16:37:18.170Z INFO elastalert-server: Config: No config.dev.json file was found in /opt/elastalert-server/config/config.dev.json. 16:37:21.449Z ERROR elastalert-server: 16:37:21.449Z ERROR elastalert-server: ProcessController: Index create exited with code 1 16:37:22.338Z ERROR elastalert-server: 16:37:22.338Z ERROR elastalert-server: 16:37:22.338Z ERROR elastalert-server: 16:37:22.339Z ERROR elastalert-server: 16:37:22.339Z ERROR elastalert-server: 16:37:22.340Z ERROR elastalert-server: 16:37:22.340Z ERROR elastalert-server: 16:37:22.384Z ERROR elastalert-server: ProcessController: ElastAlert exited with code 1 |
In my testing I saw this error a few times. fwiw, I have been using #157 and it works great on python3. I would also prehaps prefer a base ubuntu. See the commits for a possible solution |
For those who want to stick to python 2.7 the below works
|
@jibsonline Using your config I get this error. Am I missing something ? Installed /usr/lib/python2.7/site-packages/croniter-0.3.37-py2.7.egg |
Hi,
I'm having trouble building the elastalert docker container on Ubuntu 18.04 using the instructions at https://github.com/bitsensor/elastalert. Initial builds failed with same error message mentioned in #147 but even after modifying the dockerfile to have "FROM alpine:3.8 as py-ea" instead of "FROM alpine:latest as py-ea" as recommended, builds are still failing but with a different error:
mock requires Python '>=3.6' but the running Python is 2.7.15
You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.15/g' setup.py && python setup.py install && pip install -r requirements.txt' returned a non-zero code: 1
Makefile:6: recipe for target 'build' failed
make: *** [build] Error 1
Any help or insight on how to resolve this will be greatly appreciated.
The text was updated successfully, but these errors were encountered: