JetBrains / colorSchemeTool

Apache License 2.0
452 stars 81 forks source link

Converting if you are running Python 3 #39

Open robouden opened 2 years ago

robouden commented 2 years ago

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

robouden commented 2 years ago

Solved.

DanielYang59 commented 2 years ago

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

KisaragiEffective commented 9 months ago

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.