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

Terminus Build System not working for Python since Python v3.11 #406

Open
zxyzgt opened this issue Oct 14, 2023 · 0 comments
Open

Terminus Build System not working for Python since Python v3.11 #406

zxyzgt opened this issue Oct 14, 2023 · 0 comments

Comments

@zxyzgt
Copy link

zxyzgt commented Oct 14, 2023

I use the following setting to build system for Python in Sublime. It worked perfectly until Python 3.11. I tested the same settings for Python v3.8, 3.9 and 3.10.9. They are all working. Since v3.11.1 (and the latest v3.12), it gives an error:
"Unable to create process using '"C:\Users\xxx\AppData\Local\Programs\Python\Python311\ -3" -u "c:\My Drive\abc.py"': The system cannot find the file specified."
Dir Python\Python311 has already been added to the system path. Looks like terminus can't find py.exe under the system path.
Sublime is build4152.

The same settings for all versions of the build system:

{
   "target": "terminus_exec",
    "cancel": "terminus_cancel_build",
    "working_dir": "$file_path",

    "cmd": ["py", "-3", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "env": {"PYTHONIOENCODING": "utf-8"},
    "windows": {
        "cmd": ["py", "-3", "-u", "$file"],
    }
}

After I commented the first 3 lines for terminus settings, the default build system works for Python 3.11 and 3.12.
Please help!

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

1 participant