JetBrains / colorSchemeTool

Apache License 2.0
452 stars 81 forks source link

PopOS - Python command not found #36

Open DocAmaroo opened 2 years ago

DocAmaroo commented 2 years ago

Problem

When I run the sh scrip ./convert.sh, it turns out that:

✔️ Convertion .jsontmTheme succeed ❌ Convertion .tmTheme.icls failed

See partial sample of the error ```bash converting ./vscThemes/min-dark.json to ./tmThemes/min-dark.tmTheme ... #min-dark.json is the theme I tried to convert converting ./tmThemes/Active4D.tmTheme to ./intellijThemes/Active4D.icls ... ./convert.sh: line 31: python : command not found converting ./tmThemes/All Hallow's Eve.tmTheme to ./intellijThemes/All Hallow's Eve.icls ... ./convert.sh: line 31: python : command not found converting ./tmThemes/Amy.tmTheme to ./intellijThemes/Amy.icls ... ./convert.sh: line 31: python : command not found converting ./tmThemes/Blackboard.tmTheme to ./intellijThemes/Blackboard.icls ... ./convert.sh: line 31: python : command not found ... converting ./tmThemes/Zenburnesque.tmTheme to ./intellijThemes/Zenburnesque.icls ... ./convert.sh: line 31: python : command not found ```

Solution

I got it work by changing:

python colorSchemeTool.py "$FILE" "$IJ_OUTDIR$BASE.icls" >> ./colorSchemeTool.log

with

python2 colorSchemeTool.py "$FILE" "$IJ_OUTDIR$BASE.icls" >> ./colorSchemeTool.log

python2 -V: Python 2.7.18

More

On PopOs you can't install python by using the basic command line sudo apt install python, it ended up with an error. But by default, it's already installed (and I think up to date) or it can be installed with sudo apt install python2.

Config:

Here is the result of cat /etc/os-release:

NAME="Pop!_OS"
VERSION="21.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.10"
VERSION_ID="21.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=impish
UBUNTU_CODENAME=impish
LOGO=distributor-logo-pop-os