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?
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?
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 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
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?