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

ImportError: cannot import name secure_filename #16

Open
utopictown opened this issue Jul 19, 2021 · 1 comment
Open

ImportError: cannot import name secure_filename #16

utopictown opened this issue Jul 19, 2021 · 1 comment

Comments

@utopictown
Copy link

i got this error when starting the container

Traceback (most recent call last):
  File "./file_server.py", line 3, in <module>
    from werkzeug import secure_filename
ImportError: cannot import name secure_filename

how to reproduce:
docker run -p 8000:8000 maaydin/flask-file-server

Macbook Pro M1 Big Sur 11.4

@kairusds
Copy link

kairusds commented Aug 15, 2021

Replace werkzeug with werkzeug.utils on file_server.py and rebuild it.

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