equinor / webviz-subsurface

Webviz-config plugins for subsurface data.
https://github.com/orgs/equinor/projects/24
GNU General Public License v3.0
57 stars 59 forks source link

VFPAnalysis plugin gives `ModuleNotFoundError` #1251

Open anders-kiaer opened 10 months ago

anders-kiaer commented 10 months ago

Using the VFPAnalysis plugin, with recent version of ecl2df / res2df gives:

  File ".../site-packages/webviz_subsurface/plugins/_vfp_analysis/_utils/_vfp_data_model.py", line 11, in <module>
    from ecl2df.vfp._vfpdefs import (
ModuleNotFoundError: No module named 'ecl2df.vfp._vfpdefs'; 'ecl2df.vfp' is not a package

Changing to

python -c "from ecl2df.vfp import _vfpdefs as defs; print(defs.ALQ)"

seems to work.

Users can workaround this by either using previous version of ecl2df, or comment out VFPAnalsyis plugin.

anders-kiaer commented 9 months ago

from res2df.vfp._vfpdefs import ALQ works with res2df=1.1