Stack Overview Issue

the overview is working after installing libgfortran5 (now showing master image)

However, this error now comes up

and the following when I attempt to use slaves_prep.py

The first error is known.
[SITBX-847] Error “WstxInputFactory not found” caused by s1tbx-cloud module - JIRA (atlassian.net)
It will be fixed with the next version. Meanwhile it can happen that the Word View is not working. IN this case you can use the Worl Maps window.

The second error seems to be related to Python version incompatibilities.
The key differences between Python 2.7.x and Python 3.x with examples (sebastianraschka.com)
I think you are trying to execute Python 2 code with Python 3 environment.

Ok thank you, setting python 2.7 as default resolved that. However, the script now throws “ImportError: No module named pathlib”.

I did install pathlib, but before installing python 2.7 (it installed to Anaconda3), so I tried installing Anaconda2 and pathlib2. but continue receiving

“Requirement already satisfied: pathlib2 in ./anaconda3/lib/python3.9/site-packages (2.3.6)
Requirement already satisfied: six in ./anaconda3/lib/python3.9/site-packages (from pathlib2) (1.16.0)”

and the No module named pathlib error persists.

I did see this thread Snap2stamps error - #205 by Martini
however it seems my issue may be related to how I installed python. Any recommendations?

I always had problems with python 2.7 installed on ubunto 20 and more updated versions (I don’t know why)
i solved your problem by installing ubunto 18 with python 2.7. I hope I was helpful

Ah ok. It’s been ~8 months since I last attempted the process. I was under the impression it could be successfully executed now with SNAP 8 and Ubuntu 20.04. @marpet is changing to Ubuntu 18.04 the only fix here?

I can’t say, sorry. I’m not using Unix, so I have no experience whit it.
But there are some issues with Ubuntu 20.
For example:
Alternatives to libgfortran3 on Ubuntu 20.04 - s1tbx / Problem Reports - STEP Forum (esa.int)

Maybe someone else can help here further?

At this point I decided installing Ubuntu 18.04 as Martini suggested would be better all around given some other installation issues, so I’ll just go from the there. In any case the thread’s original question was resolved!

Would you happen to know which version of SNAP is more recommended currently?

I would always suggest the latest version. Version 8.0.0 with all updates installed.

1 Like

have this issue been solved yet? I am still getting this error while trying to prepare the slaves images for Snap2StaMPS processing, I already installed python2 and pathlib already exists prior to executing the slaves_prep operation before taking the screenshot but I still get the error messege " ImportError: No module named pathlib"

This is the problem with new ubuntu versions. I think it is ubuntu20.04 or greater version that’s why it is having by default python3.8.
Better to degrade your ubuntu version (best is ubuntu18.04) or else uninstall the python3 and keep python2 as default.

I have completed a clean installation of Ubuntu18 but I still have Python3 installed somehow. How can I install pyhton2 and make it default ?

Send me error message

if you need different versions of Python I recommend using anaconda: Managing environments — conda 22.9.0.post17+579cdf206 documentation

As an alternative: https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux

1 Like

Please follow these steps also,

Here. This error message still persists even with Ubuntu 18.04 and python 2.7 as default

Although I have installed the oldest possible pathlib from pathlib2 · PyPI which is supposedly backward compatible

I appreciate it, but I have python2.7 already installed as the default language but the Snap2StaMPS slaves preparation step isn’t proceeding due to the “no module named pathlib” so I do not know what to do to solve this issue

Try this below commands once,

pip install pathlib2

I appreciate it, the slaves preparation has been completed yet the next step isn’t working. Must be something incorrect with the splitting_slaves.py.

The process should be automated but I do not know which subswath will be splitted in the process as I didn’t predefine it

Just remove the space in harddisk names, like My passport change to Mypassport and remaing names also change it. Then try

Unfortunately i cannot change the name of the harddisk, only the folders inside it. Problem has been solved after editing the IW subswath from IW=3 to IW=IW3. Thank you very much. I just wanted to ask something hopefully I am not disturbing anyone by my excessive replies. Do I need the original slave images after splitting them into the preferred subswaths?

Since the following co registration and interferogram creation step is extremely time and space demanding and I need to move into another hard-drive with a little more free space (upon editing the paths I set in the project config file). So, I think Snap2StaMPS workflow only functions on the splitted images afterwards, isn’t it?