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

AttributeError: 'module' object has no attribute 'fspath' #4050

Closed
lzchen opened this issue May 14, 2021 · 3 comments
Closed

AttributeError: 'module' object has no attribute 'fspath' #4050

lzchen opened this issue May 14, 2021 · 3 comments
Milestone

Comments

@lzchen
Copy link

lzchen commented May 14, 2021

AttributeError: 'module' object has no attribute 'fspath' exception is thrown when running app = flask.Flask(__name__) for flask v1.13.

Version is Python 2.7 and 3.5. I realize fspath is only available for Python version >= 3.6 but there shouldn't be any breaking changes from Flask 1.1.2 => 1.1.3, so the classifiers here are actually incorrect.

@davidism
Copy link
Member

davidism commented May 14, 2021

Please note that Python 3.5 is no longer supported by us or CPython. Also, 1.1.x, despite being the previous release, is no longer supported due to the magnitude of the 2.x release. I advise you to use a tool like pip-compile to pin your dependencies, and/or begin upgrading to newer Python and Flask versions as soon as possible.

@davidism davidism added this to the 1.1.4 milestone May 14, 2021
@davidism
Copy link
Member

fixed by #4049

@davidism
Copy link
Member

1.1.4 is available on PyPI

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants