Closed rmcd-mscb closed 1 year ago
FYI - adding python=3.9 to above mamba create
command results in the same error.
pinning pynhd and pygeoogc back a few versions works
mamba create -n hyrtest_39 python=3.9 pynhd=0.13.6 "shapely<2.0" pygeoogc=0.13.6
Rich, thanks for reporting the issue.
The new HyRiver libraries (0.14) drop support for shapely<2.0
. So, since you're pinning shapely<0.2
, it does correctly install the previous version of pynhd
(0.13.12) but installs pygeoogc
(0.14) since shapely
is not a dependency for pygeoogc
. So, as a workaround, you need to pin pygeoogc<0.14
:
mamba create -n hyrtest pynhd "shapely<2.0" 'pygeoogc<0.14'
I fixed the issue in pygeoogc
. Though, you need to wait for an hour or so, for conda-forge
to build the fix and add it to their repository.
Thanks @cheginit!
What happened?
When creating a conda environment, with dependencies, pynhd and shapely<2.0, importing pynhd results in a shapely import error.
What did you expect to happen?
No response
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment