-
Notifications
You must be signed in to change notification settings - Fork 137
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
PyInt_FromLong not found #1100
Comments
Can you provide the logs when that happens? See: https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs for details on how to collect the logs. |
Hey @fabioz, here are two files, let me know if this works for you. debugpy.server-17949.log Here's a screenshot of the console |
I am seeing the same message when I launch a debug task from vscode. Python 3.11.0 on Ubuntu 20.04 from deadsnake's ppa (on a new vanilla .venv dir installed with print("Hello World!") my {
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"logToFile": true
}
]
} Console oputput
debugpy.adapter-2555.log |
Thanks for the logs. I'll be able to investigate this properly tomorrow. |
If it helps, I just tried the exact same thing on Windows 11, python 3.11.0 installed from the Microsoft Store and it worked OK without any debugpy.server-12764.log |
Having the same problem here, PopOS 22 with Python 3.11 installed |
Same here in pyton dev container. Here is repo, so you could reproduce locally. |
@alexandr-osprey this is already fixed in main. |
The same here, with Fedora and Python 3.9. |
@int19h @karthiknadig maybe it'd be good to do another debugpy release and update vscode-python with it as this issue is fixed but anyone trying debugpy on Python 3.11/Linux is bound to hit this issue... |
If you happen to be using VSCode server with remote extensions, you can workaround this in the meantime. I've done this and it seems to work fine. Obviously, no guarantees. All commands are executed on the remote system.
Obviously this is hacky. Works for me though! Thank you @fabioz! |
@jdphenix I made a trivial update to your suggestion. Pasting this block in a Linux terminal on the current VSCode should seamlessly fix the issue in one shot. I'm on Python 3.11.1.
Reference: https://adamgradzki.com/visual-studio-code-fix-for-python-311-debugging.html |
Had to change the |
I'm still hitting this with Python 3.11 on Linux and with the latest vscode installation |
Same here, no changes since I opened the issue |
Check microsoft/vscode-python#20253 (comment) They are releasing a new vesion of the python extension for VS Code soon. In the mean time, if you switch to the preview version of the python extension, the problem is solved. I tested it yesterday. |
Environment data
Actual behavior
Debugger prints constantly
PyInt_FromLong not found.
Expected behavior
Debugger to work without this behavior
Steps to reproduce:
The text was updated successfully, but these errors were encountered: