PyCharm 中的 PyDev 调试器警告:无法找到模块的真实位置且性能较慢

问题描述 投票:0回答:1

我目前正在 PyCharm 中调试我的 Python 代码,并且遇到了来自 PyDev 调试器的一系列警告。我看到的关键信息是:

“这个版本的Python似乎编译不正确(内部生成的文件名不是绝对的)” “调试器可能仍然可以运行,但运行速度会变慢,并且可能会错过断点。” 一系列“无法找到真实位置:...”消息 警告的完整日志在这里。

-------------------------------------------------------------------------------
pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints.
pydev debugger: Related bug: http://bugs.python.org/issue1666807
-------------------------------------------------------------------------------
Connected to pydev debugger (build 221.5921.27)
pydev debugger: Unable to find real location for: <frozen codecs>
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap>
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap_external>
pydev debugger: Unable to find real location for: <frozen zipimport>
pydev debugger: Unable to find real location for: <frozen _collections_abc>
pydev debugger: Unable to find real location for: <frozen os>
pydev debugger: Unable to find real location for: <string>
pydev debugger: Unable to find real location for: <frozen abc>
pydev debugger: Unable to find real location for: <frozen io>
pydev debugger: Unable to find real location for: <frozen posixpath>
pydev debugger: Unable to find real location for: <frozen genericpath>
pydev debugger: Unable to find real location for: <attrs generated repr attr._make.Attribute>
pydev debugger: Unable to find real location for: <attrs generated eq attr._make.Attribute>
pydev debugger: Unable to find real location for: <attrs generated hash attr._make.Attribute>
pydev debugger: Unable to find real location for: <attrs generated repr attr._make._CountingAttr>
pydev debugger: Unable to find real location for: <attrs generated eq attr._make._CountingAttr>
pydev debugger: Unable to find real location for: <attrs generated repr attr._make.Factory>
pydev debugger: Unable to find real location for: <attrs generated eq attr._make.Factory>
pydev debugger: Unable to find real location for: <attrs generated hash attr._make.Factory>
pydev debugger: Unable to find real location for: <attrs generated repr attr._make._AndValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr._make._AndValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr._make._AndValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr._make._AndValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._InstanceOfValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._InstanceOfValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._InstanceOfValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._MatchesReValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._MatchesReValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._MatchesReValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._ProvidesValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._ProvidesValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._ProvidesValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._OptionalValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._OptionalValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._OptionalValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._InValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._InValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._InValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._IsCallableValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._IsCallableValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._IsCallableValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._DeepIterable>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._DeepIterable>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._DeepIterable>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._DeepMapping>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._DeepMapping>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._DeepMapping>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._NumberValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._NumberValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._NumberValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._MaxLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._MaxLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._MaxLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._MinLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._MinLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._MinLengthValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._SubclassOfValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._SubclassOfValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._SubclassOfValidator>
pydev debugger: Unable to find real location for: <attrs generated eq attr.validators._NotValidator>
pydev debugger: Unable to find real location for: <attrs generated hash attr.validators._NotValidator>
pydev debugger: Unable to find real location for: <attrs generated init attr.validators._NotValidator>
pydev debugger: Unable to find real location for: <attrs generated repr attr._version_info.VersionInfo>
pydev debugger: Unable to find real location for: <attrs generated init attr._version_info.VersionInfo>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.helpers.ProxyInfo>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.helpers.ProxyInfo>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.helpers.ProxyInfo>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.helpers.ProxyInfo>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.helpers.MimeType>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.helpers.MimeType>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.helpers.MimeType>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.helpers.MimeType>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.helpers.ETag>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.helpers.ETag>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.helpers.ETag>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.helpers.ETag>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.client_reqrep.ContentDisposition>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.client_reqrep.ContentDisposition>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.client_reqrep.ContentDisposition>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.client_reqrep.ContentDisposition>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.client_reqrep.RequestInfo>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.client_reqrep.RequestInfo>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.client_reqrep.RequestInfo>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.client_reqrep.RequestInfo>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.client_reqrep.ConnectionKey>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.client_reqrep.ConnectionKey>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.client_reqrep.ConnectionKey>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.client_reqrep.ConnectionKey>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestStartParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestStartParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestStartParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestStartParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestChunkSentParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestChunkSentParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestChunkSentParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestChunkSentParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceResponseChunkReceivedParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceResponseChunkReceivedParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceResponseChunkReceivedParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceResponseChunkReceivedParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestEndParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestEndParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestEndParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestEndParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestExceptionParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestExceptionParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestExceptionParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestExceptionParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestRedirectParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestRedirectParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestRedirectParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestRedirectParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceConnectionQueuedStartParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceConnectionQueuedStartParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceConnectionQueuedStartParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceConnectionQueuedStartParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceConnectionQueuedEndParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceConnectionQueuedEndParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceConnectionQueuedEndParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceConnectionQueuedEndParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceConnectionCreateStartParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceConnectionCreateStartParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceConnectionCreateStartParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceConnectionCreateStartParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceConnectionCreateEndParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceConnectionCreateEndParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceConnectionCreateEndParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceConnectionCreateEndParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceConnectionReuseconnParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceConnectionReuseconnParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceConnectionReuseconnParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceConnectionReuseconnParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceDnsResolveHostStartParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceDnsResolveHostStartParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceDnsResolveHostStartParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceDnsResolveHostStartParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceDnsResolveHostEndParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceDnsResolveHostEndParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceDnsResolveHostEndParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceDnsResolveHostEndParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceDnsCacheHitParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceDnsCacheHitParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceDnsCacheHitParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceDnsCacheHitParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceDnsCacheMissParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceDnsCacheMissParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceDnsCacheMissParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceDnsCacheMissParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.tracing.TraceRequestHeadersSentParams>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.tracing.TraceRequestHeadersSentParams>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.tracing.TraceRequestHeadersSentParams>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.tracing.TraceRequestHeadersSentParams>
pydev debugger: Unable to find real location for: <attrs generated repr aiohttp.client.ClientTimeout>
pydev debugger: Unable to find real location for: <attrs generated eq aiohttp.client.ClientTimeout>
pydev debugger: Unable to find real location for: <attrs generated hash aiohttp.client.ClientTimeout>
pydev debugger: Unable to find real location for: <attrs generated init aiohttp.client.ClientTimeout>
2023-09-20 16:16:12 INFO     AWS Environment: staging

我的环境详情:

PyCharm 版本:[PyCharm 2022.1.3(社区版)]

运行时版本:[11.0.15+10-b2043.56 aarch64]

Python版本:[3.11.3]

操作系统:[MacOS Ventura 13.5.2]

其他人是否遇到过此问题或可以提供如何解决该问题的指导?我担心调试器的性能可能会变慢并且缺少断点,这会严重阻碍我的调试过程。

python python-3.x debugging pycharm virtualenv
1个回答
0
投票

我的配置也面临同样的问题

  • Windows 11
  • Python 3.10.5(从 zip 安装),用于 django 项目
  • PyCharm 2023.2.5

正如另一个线程中所说,我尝试重新安装 python :

  • 删除venv
  • 使用最新的 Windows 安装程序重新安装 python 3.10 (3.10.11)
  • 重新创建 venv / 重新安装要求

而且效果很好......但我不知道为什么。

© www.soinside.com 2019 - 2024. All rights reserved.