Have a Flask app that was working just fine prior to updating my Mac to Sonoma. Now unable to install pyviz. All other packages are installing correctly. Have tried downgrading Python from 3.12 to an earlier release but haven’t found success. Desperate for help. Thanks!
(.venv) macbook-pro-2:spotifywebapp Chris$ pip install pyviz
Collecting pyviz
Using cached pyviz-0.10.3-py2.py3-none-any.whl (16.4 MB)
Collecting bokeh>=1.2.0 (from pyviz)
Using cached bokeh-3.3.3-py3-none-any.whl.metadata (12 kB)
Collecting holoviews>=1.12.3 (from pyviz)
Using cached holoviews-1.18.1-py2.py3-none-any.whl.metadata (20 kB)
Collecting hvplot>=0.4.0 (from pyviz)
Using cached hvplot-0.9.1-py2.py3-none-any.whl.metadata (20 kB)
Collecting datashader>=0.7.0 (from pyviz)
Using cached datashader-0.16.0-py2.py3-none-any.whl.metadata (11 kB)
Collecting panel>=0.6.0 (from pyviz)
Using cached panel-1.3.6-py2.py3-none-any.whl.metadata (24 kB)
Collecting param>=1.9.1 (from pyviz)
Using cached param-2.0.1-py3-none-any.whl.metadata (5.9 kB)
Collecting pyct>=0.4.6 (from pyct[cmd]>=0.4.6->pyviz)
Using cached pyct-0.5.0-py2.py3-none-any.whl (15 kB)
Collecting ipython<=7.1.1,>=5.4.0 (from pyviz)
Using cached ipython-7.1.1-py3-none-any.whl (764 kB)
Requirement already satisfied: numpy>=1.16.4 in ./.venv/lib/python3.12/site-packages (from pyviz) (1.26.3)
Collecting rise (from pyviz)
Using cached rise-5.7.1-py2.py3-none-any.whl (4.3 MB)
Collecting dask>=0.18.2 (from dask[complete]>=0.18.2->pyviz)
Using cached dask-2024.1.0-py3-none-any.whl.metadata (3.7 kB)
Collecting notebook>=5.5 (from pyviz)
Using cached notebook-7.0.6-py3-none-any.whl.metadata (10 kB)
Collecting matplotlib==3.0.3 (from pyviz)
Using cached matplotlib-3.0.3.tar.gz (36.6 MB)
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
╰─> [29 lines of output]
Traceback (most recent call last):
File "/Users/Chris/Desktop/spotifywebapp/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/Chris/Desktop/spotifywebapp/.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 "/Users/Chris/Desktop/spotifywebapp/.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/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-build-env-wvot59ba/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/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-build-env-wvot59ba/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-build-env-wvot59ba/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-build-env-wvot59ba/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 53, in <module>
File "/private/var/folders/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-install-_aln1klx/matplotlib_26f7188e52274b2dae3811fd69e3090f/versioneer.py", line 1410, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/private/var/folders/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-install-_aln1klx/matplotlib_26f7188e52274b2dae3811fd69e3090f/versioneer.py", line 1344, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/c_/m3248b653bnb515zr8fdy6zc0000gn/T/pip-install-_aln1klx/matplotlib_26f7188e52274b2dae3811fd69e3090f/versioneer.py", line 401, 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.