microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.84k stars 137 forks source link

CXXABI requirement #772

Open 5tomato opened 3 years ago

5tomato commented 3 years ago

Environment data

Expected behaviour

When running a code using the python debugger, python should import packages as expected. As of version 1.60 of VSCode, the software is once again compatible with RHEL7. See issue: https://github.com/microsoft/vscode/issues/115784#issue-801518348, that was resolved in 1.60.

Actual behaviour

When running the debugger, packages like pyqtgraph and many others cannot be imported for the same reason as stated in #115784 for the main VSCode software. The shared object libstdc++.so.6 with version CXXABI_1.3.9 is not found.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Install the latest version of both VSCode and the python extension on a machine with RHEL7 operating system.
  2. Run the debugger on a file that has import pyqtgraph or import yaml
fabioz commented 2 years ago

The debugger can actually work without any native components by setting the following environment variables:

PYDEVD_USE_CYTHON=0 PYDEVD_LOAD_NATIVE_LIB=0

The downside is that not having cython may make the debugger slower (but it should still be at an acceptable level) and not having native libs would make it so that the attach to process doesn't work.

So, this should be a reasonable workaround.

Alternatively it's also possible to compile the cython/native libs in the target machine.