-
Couldn't load subscription status.
- Fork 176
Description
Description
Installing debugpy-python2 fails on both Linux and Windows.
Is it reproducible in vim?
Reproducible in Vim
Works with clean config?
Yes
Sample project works?
Reproducible with sample project
Minimal Reproduction
List of steps to reproduce:
$ ~/.vim/plugged/vimspector/install_gadget.py --force-enable-python2
Installing debugpy-python2@1.5.1...
Checksum matches for ~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/v1.5.1.zip, using it
Extracting ~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/v1.5.1.zip to ~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root
Removing dir ~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root
~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py:564: SyntaxWarning: invalid escape sequence '\s'
mo = re.search(r'=\s*"(.*)"', line)
Compiling extension modules (set SKIP_CYTHON_BUILD=1 to omit)
running build_ext
building '_pydevd_bundle.pydevd_cython' extension
creating build/temp.linux-x86_64-cpython-313/_pydevd_bundle
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DPy_BUILD_CORE_MODULE=1 -I/usr/include/python3.13 -c _pydevd_bundle/pydevd_cython.c -o build/temp.linux-x86_64-cpython-313/_pydevd_bundle/pydevd_cython.o -flto -O3
_pydevd_bundle/pydevd_cython.c:216:12: fatal error: longintrepr.h: Nu există un astfel de fișier sau director
216 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
Traceback (most recent call last):
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/setup.py", line 150, in
version=versioneer.get_version(),
~~~~~~~~~~~~~~~~~~~~~~^^
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 1481, in get_version
return get_versions()["version"]
~~~~~~~~~~~~^^
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 1413, in get_versions
cfg = get_config_from_root(root)
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
Traceback (most recent call last):
File "~/.vim/plugged/vimspector/python3/vimspector/installer.py", line 579, in InstallGadget
gadget[ 'do' ]( name, root, spec )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "~/.vim/plugged/vimspector/python3/vimspector/gadgets.py", line 150, in
'do': lambda name, root, gadget: installer.InstallDebugpy( name,
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
root,
^^^^^
gadget ),
^^^^^^^^
File "~/.vim/plugged/vimspector/python3/vimspector/installer.py", line 407, in InstallDebugpy
CheckCall( [ sys.executable,
~~~~~~~~~^^^^^^^^^^^^^^^^^^^
'setup.py',
^^^^^^^^^^^
'build',
^^^^^^^^
'--build-platlib', os.path.join( 'build', 'lib' ) ] )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/.vim/plugged/vimspector/python3/vimspector/installer.py", line 109, in CheckCall
subprocess.check_call( cmd, *args, **kwargs )
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'setup.py', 'build', '--build-platlib', 'build/lib']' returned non-zero exit status 1.
- FAILED installing debugpy-python2: Command '['/usr/bin/python3', 'setup.py', 'build', '--build-platlib', 'build/lib']' returned non-zero exit status 1.
Failed to install adapters:
* debugpy-python2
:VimspectorInstall debugpy-python2
Installing debugpy-python2@1.5.1...
~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py:564: SyntaxWarning: invalid escape sequence '\s'
mo = re.search(r'=\s*"(.*)"', line)
running build_ext
building '_pydevd_bundle.pydevd_cython' extension
creating build/temp.linux-x86_64-cpython-313/_pydevd_bundle
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DPy_BUILD_CORE_MODULE=1 -I/usr/include/python3.13 -c _pydevd_bundle/pydevd_cython.c -o build/temp.linux-x86_64-cpython-313/_pydevd_bundle/pydevd_cython.o -flto -O3
_pydevd_bundle/pydevd_cython.c:216:12: fatal error: longintrepr.h: No such file or directory
216 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
Compiling extension modules (set SKIP_CYTHON_BUILD=1 to omit)
Traceback (most recent call last):
File "\~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/setup.py", line 150, in
version=versioneer.get_version(),
~~~~~~~~~~~~~~~~~~~~~~^^
File "\~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 1481, in get_version
return get_versions()["version"]
~~~~~~~~~~~~^^
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 1413, in get_versions
cfg = get_config_from_root(root)
File "~/.vim/plugged/vimspector/gadgets/linux/download/debugpy-python2/1.5.1/root/debugpy-1.5.1/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
- FAILED installing debugpy-python2: Command '['/usr/bin/python3', 'setup.py', 'build', '--build-platlib', 'build/lib']' returned non-zero exit status 1.
NOTE: You set --basedir to ~/.vim/plugged/vimspector/python3/vimspector/../... Therefore you must ensure this is in your vimrc:
let g:vimspector_base_dir='~/.vim/plugged/vimspector'
Failed to install adapters:
- debugpy-python2
Re-run with --verbose for more info on failures
The issue is that setup.py build --build-platlib build/lib for debugpy-python2 is called with python3 instead of python2.
Reproducible on Ubuntu 25.04 and Windows 7. I have not tested any other OS.
Expected Behaviour
Assuming that python2 is available in $PATH, gadget installation should succeed.
Actual Behaviour
Installation fails.
Additional information
No response
Installation Type
Plugin Manager (git clone)
Vimspector version
Debug Info
Log file
Vim version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Apr 03 2025 14:08:49)
Included patches: 1-948, 950-967
Python version
No response
Neovim diagnostics
Operating System
No response
Declaration
- I have read and understood CONTRIBUTING.md
- I have read and understood the CODE_OF_CONDUCT.md