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

[Error] chapter 14 docker file do not work properly on M1 Macbook #57

Open
lih0905 opened this issue Mar 30, 2022 · 1 comment
Open

Comments

@lih0905
Copy link

lih0905 commented Mar 30, 2022

On Macbook Pro M1 Max, after running docker-compose up -d, the following error occured on port 8083 and 8082.

Traceback (most recent call last):

  File "app.py", line 4, in <module>

    from flask import Flask, render_template

  File "/usr/local/lib/python3.7/site-packages/flask/__init__.py", line 14, in <module>

    from jinja2 import escape

ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/__init__.py)

Traceback (most recent call last):

  File "app.py", line 4, in <module>

    from flask import Flask, render_template

  File "/usr/local/lib/python3.7/site-packages/flask/__init__.py", line 14, in <module>

    from jinja2 import escape

ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/__init__.py)

Also, 'minio_init-1' and 'initdb-adduser-1' are remained as 'EXITED(0)'.

@AlyElashram
Copy link

You can change the requirements.txt I mentioned this in the newest issue I opened. Check it out.

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

2 participants