flask-file-server icon indicating copy to clipboard operation
flask-file-server copied to clipboard

ImportError: cannot import name secure_filename

Open utopictown opened this issue 3 years ago • 1 comments

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

utopictown avatar Jul 19 '21 13:07 utopictown

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

kairusds avatar Aug 15 '21 06:08 kairusds