usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
7 stars 9 forks source link

Requirements-ui.txt specifies version of holoviews incompatible with default panels installation #158

Open mattgebert opened 2 weeks ago

mattgebert commented 2 weeks ago

The requirements-ui.txt file specifies a particular version (1.16.2) of holoviews. However, since that version, panel has updated and has removed param_value_if_widget (deprecated) from it's instruction set, which holoviews.core.utils still requires in v1.16.2. This throws an error when trying to use PyHyperScattering.IntegrationUtils.DrawMask;

ImportError: cannot import name 'param_value_if_widget' from 'panel.depends' (d:\Github\pyhyperscattering\venv\Lib\site-packages\panel\depends.py)

Holoviews is now up to v1.19.1. The default panel that installed when I setup the repository was 1.5.2, i.e. the latest build. The change for the panel.depends file can be found here, with the removal being since v1.4.5.

I guess the solutions are to force an earlier version of panel<=1.4.5 alongside holoviews, or use updated version of both repositories.