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

Converting if you are running Python 3 #39

Open
robouden opened this issue Apr 22, 2022 · 3 comments
Open

Converting if you are running Python 3 #39

robouden opened this issue Apr 22, 2022 · 3 comments

Comments

@robouden
Copy link

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
Copy link
Author

Solved.

@robouden robouden reopened this Apr 22, 2022
@DanielYang59
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants