Closed falkamelung closed 1 year ago
I was also working fine with isce2 in February 2023, but now suddenly it stops and showing errors here and there. I followed the process as -
1) Installed anaconda3 2) Created a new environment (First Time with specific version of Python 3.7 and repeated for 3.9, 3.11 too; second time without any specific version of python) 3) Activated the newly created environment 4) Installed isce2 as $conda install -c conda-forge isce2 5) Exported the PATHs of topsStack, prepStackToStaMPS, Applications etc. 6) run stackSentinel.py -h
Now it is showing same error in almost all the above trials -
Although the same process was followed earlier and it was working fine.
@hariiirs that is a change introduced in the stack processor. You need to set up the $PYTHONPATH
as well now, in addition to the $PATH
, since version 2.6.2, as described here: https://github.com/isce-framework/isce2/blob/main/contrib/stack/README.md#2-setup-paths-for-stack-processors.
Hopefully this resolves @hariiirs issue but not my issue. If somebody is successful with the installation please let me know.
Version 2.6.3 was released, which should work better with Python 3.10 and 3.11.
It does not solve the problem, unfortunately. With the latest miniconda3 (python 3.10.11) mamba install isce2 -c conda-forge --yes
gives me nearly the same errors as before (see above).
If I first install MintPy (as I usually do):
../tools/miniconda3/bin/conda install --yes --file ../tools/MintPy/requirements.txt
../tools/miniconda3/bin/mamba install isce2 -c conda-forge --yes
the ISCE installation works, but it gives am import error for sqlite3_strlike
(same as previously):
miniconda3[1056] ./share/isce2/topsStack/stackSentinel.py --help
Traceback (most recent call last):
File "/work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/./share/isce2/topsStack/stackSentinel.py", line 16, in <module>
from isceobj.Sensor.TOPS.Sentinel1 import Sentinel1
File "/work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/lib/python3.10/site-packages/isce/components/isceobj/Sensor/TOPS/Sentinel1.py", line 39, in <module>
from .BurstSLC import BurstSLC
File "/work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/lib/python3.10/site-packages/isce/components/isceobj/Sensor/TOPS/BurstSLC.py", line 8, in <module>
from isceobj.Image.Image import Image
File "/work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/lib/python3.10/site-packages/isce/components/isceobj/Image/Image.py", line 38, in <module>
from iscesys.ImageApi.DataAccessorPy import DataAccessor
File "/work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/lib/python3.10/site-packages/isce/components/iscesys/ImageApi/DataAccessorPy.py", line 31, in <module>
from iscesys.ImageApi import DataAccessor as DA
ImportError: /work2/05861/tg851601/stampede2/codetn/rsmas_insar/tools/miniconda3/lib/python3.10/site-packages/isce/components/iscesys/ImageApi/../../../../../.././libspatialite.so.7: undefined symbol: sqlite3_strlike
I use the same environment that worked previously:
export ISCE_HOME=${RSMASINSAR_HOME}/tools/miniconda3/lib/$python_version/site-packages/isce
export ISCE_STACK=${RSMASINSAR_HOME}/tools/miniconda3/share/isce2
export PYTHONPATH=${PYTHONPATH}:${ISCE_HOME}:${ISCE_HOME}/components:${ISCE_STACK}
I would recommend installing mintpy dependencies and isce2 in one command line, such as below, so that conda/mamba could resolve the dependencies at once. I just tried it recently in a fresh environment, and it worked for me with python 3.10 and 3.11.
mamba install --file MintPy/requirements.txt isce2 --yes
It turns out that if I omit running
mamba update mamba --yes
it works fine.
Uff! So updating mamba
introduces a problem.
I noticed when I reinstalled miniconda on my Mac (there was a pysqlite2
and sqlite
import error). At least something good coming out of my Mac dying!
Closing this and hope to never have to reopen again.
When trying to install isce2 using
mamba
and the latest python (3.10.10) I am getting error messages regardingcfitsio
,kealib
,libpng
andfreetype
(full message below). A few months ago (January) it worked fine. I have a working ISCE version installed using python3.10.8. I tried to install using older pythons (3.8, 3.9) and got similar errors (but partly for different packages) (I could not figure out how to force using python3.10.8).Installation using
conda
stopped working for me a while ago. I gave up after solving for 6 hours.Any suggestions are appreciated
To add to the confusion, if I just run the same
mamba
command again it runs through but then I receive an ISCE error