Open robouden opened 2 years ago
Solved.
Hi Robouden,
Thanks for sharing. I encountered the same problem while trying running this script on my Mac Monterey where python is python3 by default.
However, I consider redirecting the symbolic link a bit risky and overkill here. May I suggest you just changing the "python colorSchemeTool.py" to "python2 colorSchemeTool.py".
Regards, Haoyu
Generally, it is not good idea to modify symbolic link under /usr/bin
manually unless you are fully-controlled it.
In most situation (especially there's package manager), you should update-alternatives
(Debian-based, including Ububtu), alternatives
(RHEL), or something similar if there are any.
Ran into some issues with running the script. But solved it easy with :
Before running the convert script, run: sudo ln -sf python2 /usr/bin/python
After running the script convert back to python 3 with: sudo ln -sf python3 /usr/bin/python