flask-autoindex icon indicating copy to clipboard operation
flask-autoindex copied to clipboard

flask_autoindex 0.6.6 incompatible with Python 3.12

Open DirkRichter opened this issue 1 year ago • 3 comments

The imp module has been removed in Python 3.12, thus flask_autoindex 0.6.6 run into problem:

app\app.py:11: in <module>
    import flask_autoindex
.venv\Lib\site-packages\flask_autoindex\__init__.py:12: in <module>
    from . import icons
.venv\Lib\site-packages\flask_autoindex\icons.py:4: in <module>
    from .entry import File, Default
.venv\Lib\site-packages\flask_autoindex\entry.py:2: in <module>
    from future import standard_library
.venv\Lib\site-packages\future\standard_library\__init__.py:65: in <module>
    import imp
E   ModuleNotFoundError: No module named 'imp'

https://discuss.python.org/t/how-do-i-migrate-from-imp/27885

DirkRichter avatar Dec 15 '23 09:12 DirkRichter

it's future that's incompatible with Py3.12, please remove it's usage

a-detiste avatar Dec 19 '23 07:12 a-detiste

future was removed in git on Apr 9, 2020: https://github.com/general03/flask-autoindex/commit/424246242c9f40aeb9ac2c8c63f4d2234024256e

but last release 0.6.6 was on Mar 30, 2020: https://github.com/general03/flask-autoindex/tags

Thus it seems that just a new release is required!

DirkRichter avatar Dec 19 '23 07:12 DirkRichter

@general03 are you still maintaining this package/project?

calderonth avatar Jun 19 '24 08:06 calderonth