Closed agrouaze closed 2 years ago
if opencv
is installed via conda
. The problem is different:
First thtere this pip error:
Successfully built xsarsea
Installing collected packages: typer, numpy, llvmlite, numba, cftime, netCDF4, xrft, xsarsea
Attempting uninstall: numpy
Found existing installation: numpy 1.23.4
Uninstalling numpy-1.23.4:
Successfully uninstalled numpy-1.23.4
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xsar 0.9.1 requires jinja2<=3.0.3, but you have jinja2 3.1.2 which is incompatible.
Successfully installed cftime-1.6.2 llvmlite-0.39.1 netCDF4-1.6.2 numba-0.56.4 numpy-1.21.0 typer-0.7.0 xrft-1.0.0 xsarsea-0.3.dev56+g0ccc3e3
then import xsarsea
works.
while import xsar
never ends (strace last hints is pointing to cartopy
).
tested on a ubuntu 22.04 and python 3.10 conda
env.
this issue seems to be solved with #42
Following the installation documentation: https://cyclobs.ifremer.fr/static/sarwing_datarmor/xsarsea/installing.html An error occur with
openCV
andnumpy
:possible explanations to investigate are:
'jinja2<=3.0.3',
inxsar/setup.py
'numpy<=1.21', # numba needs numpy<=1.21
inxsarsea/setup.py