Reputation: 113
Running a python script on VS outputs this error. How to pass -Xfrozen_modules=off to python to disable frozen modules?
I was trying to update the python version from 3.6 to 3.11 and then started seeing this message.
Upvotes: 11
Views: 14401
Reputation: 489
In the example screenshots, the project I was using (i.e. "YourProjectName" in the following instructions) was "PythonExperiment".
-Xfrozen_modules=off
into the Interpreter Arguments textbox.Upvotes: 0
Reputation: 333
If you are using VS Code you can add "pythonArgs": ["-Xfrozen_modules=off"]
to your debug configuration in launch.json
, like this:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python (Xfrozen=off)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"pythonArgs": ["-Xfrozen_modules=off"]
}
]
}
There is some additional context in the GitHub Issue fabioz/PyDev.Debugger/issues/213.
Upvotes: 14