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

Flask-Limiter, Dependency of Flaskbb, Fails to install on Python 3.10>= #666

Open
sarahspock opened this issue Apr 21, 2024 · 0 comments
Open

Comments

@sarahspock
Copy link

sarahspock commented Apr 21, 2024

Flask-limiter is a dependency of flaskbb (installed on Mac arm) , but it tries to import safeconfigparser. This was depreciated and removed in versions of python 3.10>= . As a result, flaskbb cannot be installed on recent versions of python.

Downloading Flask-Limiter-1.0.1.tar.gz (89 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.4/89.4 kB 1.1 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-install-2jye8137/flask-limiter_c23070fb5d254ba5bf73f45dee93bb68/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-build-env-budca5bv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-build-env-budca5bv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-build-env-budca5bv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-build-env-budca5bv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 26, in
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-install-2jye8137/flask-limiter_c23070fb5d254ba5bf73f45dee93bb68/versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-install-2jye8137/flask-limiter_c23070fb5d254ba5bf73f45dee93bb68/versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zb/9wf7sv1x35z027293v8r38500000gn/T/pip-install-2jye8137/flask-limiter_c23070fb5d254ba5bf73f45dee93bb68/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant