BUG: Compatibility Issue with pydantic_core (or maybe typing_extensions) and pydevd debugger

| Traceback (most recent call last):
|   File "/opt/.pycharm_helpers/pydev/pydevd.py", line 16, in <module>
|   File "/opt/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_collect_try_except_info.py", line 12, in <module>
|   File "/opt/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_constants.py", line 262, in <module>
|   File "/opt/.pycharm_helpers/pydev/_pydev_imps/_pydev_saved_modules.py", line 22, in <module>
|   File "/usr/local/lib/python3.13/xmlrpc/server.py", line 110, in <module>
|   File "/usr/local/lib/python3.13/inspect.py", line 155, in <module>
|   File "/usr/local/lib/python3.13/tokenize.py", line 35, in <module>
|   File "/opt/project/api/entitlements/routers/token.py", line 3, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/__init__.py", line 7, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/applications.py", line 17, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 28, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/params.py", line 6, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/openapi/models.py", line 4, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/_compat/__init__.py", line 1, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/_compat/main.py", line 12, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/_compat/may_v1.py", line 4, in <module>
|   File "/usr/local/lib/python3.13/site-packages/fastapi/types.py", line 5, in <module>
|   File "/usr/local/lib/python3.13/site-packages/pydantic/__init__.py", line 5, in <module>
|   File "/usr/local/lib/python3.13/site-packages/pydantic/_migration.py", line 4, in <module>
|   File "/usr/local/lib/python3.13/site-packages/pydantic/version.py", line 5, in <module>
|   File "/usr/local/lib/python3.13/site-packages/pydantic_core/__init__.py", line 30, in <module>
|   File "/usr/local/lib/python3.13/site-packages/pydantic_core/core_schema.py", line 16, in <module>
|   File "/usr/local/lib/python3.13/site-packages/typing_extensions.py", line 1060, in <module>
 | AttributeError: partially initialized module 'inspect' from '/usr/local/lib/python3.13/inspect.py' has no attribute 'signature' (most likely due to a circular import)
… exited with code 1
I cant use Youtrack so i post here, if anyone know the fix im trying to run pydevd debugger in a docker compose


PyCharm 2025.3.2
Build #PY-253.30387.127, built on January 27, 2026
Source revision: c3a2fac393b13
Licensed to XXXXXX XXXXXXX / XXXX XXXXXX
You have a perpetual fallback license for this version.
Subscription is active until January 5, 2027.
Runtime version: 21.0.9+10-b1163.94 aarch64 (JCEF 137.0.17)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 26.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 14
Metal Rendering is ON
Registry:
 ide.experimental.ui=true
Non-Bundled Plugins:
 org.intellij.plugins.hcl (253.30387.20)
 com.intellij.kubernetes (253.30387.23)
 com.intellij.bigdatatools.kafka (253.25909.4)
 name.kropp.intellij.makefile (253.28294.218)
 io.cygert.forceprojecttabs (2.0)
 net.seesharpsoft.intellij.plugins.csv (4.2.0)
 com.github.copilot (1.5.63-243)

 

0
1 comment

Hi there

As I can see there is another case related to this:
https://youtrack.jetbrains.com/issue/PY-87992

Can I confirm this is related to the same issue and if so can we follow up only in Youtrack the investigation so we do not have duplication ? 

Kind regards,

0

Please sign in to leave a comment.