general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
112 stars 36 forks source link

flask_autoindex 0.6.6 incompatible with Python 3.12 #71

Open DirkRichter opened 6 months ago

DirkRichter commented 6 months ago

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

a-detiste commented 6 months ago

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

DirkRichter commented 6 months ago

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!

calderonth commented 2 weeks ago

@general03 are you still maintaining this package/project?