Hi, I’m fairly new to all of this and have been learning Python and have been using Sublime to do so.
Currently when I try to use the build system that I configured, i receive the following message:
Traceback (most recent call last):
File “/Users/patrickheath/Desktop/program_course/crash_course/chapter_10/10_1_files_readingcode.py”, line 3, in
with open(filename) as fileobject:
FileNotFoundError: [Errno 2] No such file or directory: ‘learning_python.txt’
I managed to do some research at the start so I could use the interactive terminal, and this has been working perfectly until now. This is the buildsystem configuration that has been working enabling the interactive terminal to work at the bottom of the screen.
{
“target”: “terminus_exec”,
“cancel”: “terminus_cancel_build”,
"focus": true,
"shell_cmd": "/Library/Frameworks/Python.framework/Versions/3.8/bin/Python3 -u \"$file\"",
"file_regex": "file \"(...*?)\", line ([0-9]+)"
,
“selector”: “source.python”,
"env": {"PYTHONIOENCODING": "utf-8"},
"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile \"${file}\"",
}
]
}
Is there something simple in that I can change to enable it to run? I have tried some of the other build systems that I have found, these allow the file to open, but they are not interactive. I have been trying various different ways that I have found online, but these aren’t changing.
Many thanks