Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

_pydevd_sys_monitoring_cython._get_func_code_info KeyError

Open
#1,757 6 comments 0 reactions 1 assignee View on GitHub

@KacieKK is already working on this.

Since Dec 9, 2024.

Assessment

This issue has not been assessed yet.

Description

bug needs repro

Python: 3.12.7
vs code: 1.95.3 (user setup)
OS: Windows_NT x64 10.0.19045
Python Debugger: v2024.12.0

If I execute "start debugging", error occurs. If I choose to "run without debugging", nothing happens.
Upgrade python debugger extension to prerelease v2024.13.2024112901 didn't help. Downgrade to v2024.10.0 helps.

Traceback

Traceback (most recent call last):
  File "_pydevd_sys_monitoring\\_pydevd_sys_monitoring_cython.pyx", line 555, in _pydevd_sys_monitoring_cython._get_func_code_info
KeyError: (629, 'd:\\PythonEnv\\whisper\\Lib\\site-packages\\librosa\\core\\spectrum.py', <code object __overlap_add at 0x00000213EB954F60, file "d:\PythonEnv\whisper\Lib\site-packages\librosa\core\spectrum.py", line 629>)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\PythonEnv\Python312\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\PythonEnv\Python312\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy\__main__.py", line 71, in <module>
    cli.main()
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 501, in main
    run()
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 351, in run_file
    runpy.run_path(target, run_name="__main__")
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 310, in run_path
    return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 127, in _run_module_code
    _run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name)
  File "c:\Users\zhao\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 118, in _run_code
    exec(code, run_globals)
  File "D:\Download\test.py", line 9, in <module>
    output_files = separator.separate(audio_file)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\audio_separator\separator\separator.py", line 774, in separate
    output_files = self.model_instance.separate(audio_file_path, primary_output_name, secondary_output_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\audio_separator\separator\architectures\vr_separator.py", line 194, in separate
    self.primary_source = self.spec_to_wav(y_spec).T
                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\audio_separator\separator\architectures\vr_separator.py", line 354, in spec_to_wav
    wav = spec_utils.cmb_spectrogram_to_wave(spec, self.model_params, is_v51_model=self.is_vr_51_model)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\audio_separator\separator\uvr_lib_v5\spec_utils.py", line 362, in cmb_spectrogram_to_wave
    wave = spectrogram_to_wave(spec_s, bp["hl"], mp, d, is_v51_model)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\audio_separator\separator\uvr_lib_v5\spec_utils.py", line 319, in spectrogram_to_wave
    wave_left = librosa.istft(spec_left, hop_length=hop_length)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\PythonEnv\whisper\Lib\site-packages\librosa\core\spectrum.py", line 571, in istft
    __overlap_add(head_buffer, ytmp, hop_length)
  File "<stringsource>", line 69, in cfunc.to_py.__Pyx_CFunc_893235__29_pydevd_sys_monitoring_cython_object__lParen__etc_to_py_4code_18instruction_offset.wrap        
  File "_pydevd_sys_monitoring\\_pydevd_sys_monitoring_cython.pyx", line 1662, in _pydevd_sys_monitoring_cython._start_method_event
  File "_pydevd_sys_monitoring\\_pydevd_sys_monitoring_cython.pyx", line 562, in _pydevd_sys_monitoring_cython._get_func_code_info
AssertionError: <code object istft at 0x00000213EA22FC60, file "d:\PythonEnv\whisper\Lib\site-packages\librosa\core\spectrum.py", line 393> != <code object __overlap_add at 0x00000213EB954F60, file "d:\PythonEnv\whisper\Lib\site-packages\librosa\core\spectrum.py", line 629>

reproduce from scratch

create a virtual python environment using venv, and pip install "audio-separator[gpu]".

test.py

from audio_separator.separator import Separator

audio_file = "audio_cut.mp3"

separator = Separator(model_file_dir=r"C:\Users\zhao\.audio-separator-models")
separator.load_model(model_filename="UVR-DeNoise-Lite.pth")

output_files = separator.separate(audio_file)
print(f"Separation complete! Output file(s): {' '.join(output_files)}")

breakpoint set to the last line.

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.