Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colormap ValueError #198

Closed
dinsar2008 opened this issue Dec 31, 2022 · 4 comments
Closed

Colormap ValueError #198

dinsar2008 opened this issue Dec 31, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@dinsar2008
Copy link

Hi Morishita,

I am trying to obtain velocity by LiCSBAS. When I get to the step12 **LiCSBAS12_loop_closure.py -d GEOCml1GACOSmaskclip** , the software exits and an error is reported as " ValueError: A colormap named "SCM.roma0" is already registered", and part figures of the loop closure checking results are generated in the folder TS_GEOCml1maskclip/12loop/good_loop_png. The error report as follows.

屏幕截图 2022-12-31 162037

I check the code track, it seems like that the colormap is not created correctly or cited by the multiprocessing/pool.py. I wonder what's going on, and how to fix it?
Any suggestion would be appreciated.

@dinsar2008
Copy link
Author

Maybe it's caused by the enviroment problem. I reinstalled the anaconda3 and LiCSBAS, then this step works through.

@yumorishita yumorishita added the duplicate This issue or pull request already exists label Jan 2, 2023
@yumorishita
Copy link
Owner

@Zuzchan
Copy link

Zuzchan commented Jan 2, 2023

I had the same issue and as you can see your Ubuntu is running Python version3.9, delete the app and reinstalling everything would be just a waste of time,
Here is how I solved it
I installed python3.8 and make an environment work for it and rerun the same stapes and it worked like a miracle

sudo apt update
sudo apt upgrade
sudo apt install python3-venv python3-pip python3-tk
sudo apt install python3.8 python3.8-dev python3.8-venv
python3.8 -m venv work3.8
source work3.8/bin/activate

**to activate it

@dinsar2008
Copy link
Author

Thank you very much, yumorishita and Zuzchan. It works well following your suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants