2,295
questions
0
votes
0
answers
142
views
Python13 was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings>Manage App Execution Aliases
i am running python -m venv venv
then i encountered the above error
after i turned off python by going here Settings > Manage App Execution Aliases.
I started encountering this error
python : The ...
1
vote
0
answers
51
views
Fastest x86 64 jump table. What are the methods for making very performance oriented jump table?
I am in the process of optimizing a program that interprets some byte code, and depending on it jumps to different instructions. Since we have the instruction in byte code already ordered from 0-17, ...
0
votes
0
answers
34
views
Python code pauses execution randomly till I move the VS Code Terminal
I am running an code which performs inference for several hours. However when it seems to randomly pause.
But when I move the VS Code's terminal border/window slightly, it starts executing. I don't ...
-1
votes
2
answers
100
views
Why will a syntax error prevent Python from running preceding lines? [duplicate]
Why is the CPython interpreter not executing the previous statements if an EOL syntax error occurs in a later line? I thought that an interpreter is supposed to execute all the statements in a file ...
0
votes
0
answers
54
views
Python Scripts Don't Adopt Selected Environment in VSCode
When I select a virtual environment (created with mac default venv command) as my interpreter for a Python file in VS Code, it doesn't change the Python executable path and instead uses my base ...
-1
votes
1
answer
132
views
Why does my pycharm terminal is failing to start
I've been having issues with the terminal in PyCharm recently it always gives me this error message:
Cannot open Local
Failed to start [powershell.exe, -NoExit, -ExecutionPolicy, Bypass, -File, C:\...
0
votes
1
answer
36
views
How can the expression rule be converted into LL(1) without becoming right-associative?
In the following small grammar, I am confused about how this basic rule for defining a binary operator combination can be converted to an LL(1) grammar that will produce a left-associative AST:
...
0
votes
1
answer
78
views
Go Types for BNF Grammar
I'm working on the crafting interpreters book and as a personal project I've decided to implement JLox on Go instead of Java mainly to learn Go.
Currently I'm stuck with the parser, I'm unsure how to ...
1
vote
1
answer
51
views
Python is not finding location of file to parse, even when i have triple-checked it is still there
I am making a interpreted language using python, named Spearhead. My terminal, when trying to run the command "+r {+r is how i run files} [path to file to be interpreted]" It gives me my ...
1
vote
1
answer
47
views
implementing a Tcl "atreturn" feature?
I'm using a Tcl-based framework for building packages (MacPorts) and would like to implement an atexit-like feature where I can print some information in case a build fails and the framework aborts.
A ...
0
votes
2
answers
62
views
subprocess.check_output not catching python errors [closed]
I am creating a Python programming language, named Spearhead. I have a working terminal, made via the Subprocess module. The issue is that I am using check_output to catch python errors, and not ...
0
votes
1
answer
50
views
can't find '__main__' module | breaking subprocess terminal command
I am creating a programming language named Spearhead using Python, I have a parser named Parser.py, inside a subfolder of the Spearhead folder this is all contained in named raw_exec [that has a empty ...
0
votes
0
answers
34
views
Problem with File Descriptor Handling in a C Command Line Interpreter Using Pipes
I'm building a simple command line interpreter in C, and I've encountered an issue with handling file descriptors when using pipes. The interpreter is supposed to support piped commands, but I'm ...
0
votes
0
answers
16
views
PyCharm: Configuring SSH interpreter - automation
I'd like to create a development environment using a python or a bash script.
I want to connect PyCharm to python interpreter in a docker container by running the script. Is that possible? What files ...
-1
votes
2
answers
50
views
Questions about python virtual environment in VScode
So a question I can't find a clear answer to is if my python interpreter that I have selected (where it shows 3.12.5('.venv':venv) is set that way because I selected to create a virtual environment.
...