-
Notifications
You must be signed in to change notification settings - Fork 333
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
[bug] v1.3.0 ModuleNotFoundError: No module named 'importlib.metadata' (v1.2.0 is OK) #586
Labels
bug
Something isn't working
Comments
The latest versions of flask-restx require python >= 3.8 (and although it may still work, only officially supports flask >= 2.0.0).
All python versions previous to 3.8 are now end of life and no longer supported.
…On Mon, Dec 18, 2023 at 05:25, Seunggabi Kim ***@***.***(mailto:On Mon, Dec 18, 2023 at 05:25, Seunggabi Kim <<a href=)> wrote:
***** BEFORE LOGGING AN ISSUE *****
- Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
- Please check if a similar issue already exists or has been closed before. Seriously, nobody here is getting paid. Help us out and take five minutes to make sure you aren't submitting a duplicate.
- Please review the [guidelines for contributing](https://github.com/python-restx/flask-restx/blob/master/CONTRIBUTING.rst)
Code
from
your_code
import
your_buggy_implementation
Repro Steps (if applicable)
- ...
- ...
- Broken!
Expected Behavior
A description of what you expected to happen.
# PYTHONPATH=$PYTHONPATH:../ python3 app.py
Traceback (most recent call last):
File "app.py", line 5, in <module>
from flask_restx import Api
File "/usr/local/lib/python3.6/site-packages/flask_restx/__init__.py", line 1, in <module>
from . import fields, reqparse, apidoc, inputs, cors
File "/usr/local/lib/python3.6/site-packages/flask_restx/fields.py", line 22, in <module>
from .marshalling import marshal
File "/usr/local/lib/python3.6/site-packages/flask_restx/marshalling.py", line 7, in <module>
from .utils import unpack
File "/usr/local/lib/python3.6/site-packages/flask_restx/utils.py", line 43, in <module>
BaseResponse = import_werkzeug_response()
File "/usr/local/lib/python3.6/site-packages/flask_restx/utils.py", line 30, in import_werkzeug_response
import importlib.metadata
ModuleNotFoundError: No module named 'importlib.metadata'
Actual Behavior
A description of the unexpected, buggy behavior.
Error Messages/Stack Trace
If applicable, add the stack trace produced by the error
Environment
- Python version: 3.6.8
- Flask version: 1.1.2
- Flask-RESTX version: 1.3.0
- Other installed Flask extensions
Additional Context
- Flask-RESTX version: 1.2.0 is OK
—
Reply to this email directly, [view it on GitHub](#586), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACT3Q3DMVSWJO3GEOND7UCDYJ7HTTAVCNFSM6AAAAABAY6PXM6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DKNZWGY3TCOA).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
jason-the-j
pushed a commit
to jason-the-j/flask-restx
that referenced
this issue
Feb 19, 2024
include python_requires option on setup for pip to resolve python dependency accordingly. prevent installing the latest flask_restx regardless of python version. fixes python-restx#586
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
***** BEFORE LOGGING AN ISSUE *****
Code
Repro Steps (if applicable)
Expected Behavior
A description of what you expected to happen.
Actual Behavior
A description of the unexpected, buggy behavior.
Error Messages/Stack Trace
If applicable, add the stack trace produced by the error
Environment
3.6.8
1.1.2
1.3.0
Additional Context
1.2.0
is OKThe text was updated successfully, but these errors were encountered: