Pycharm关于编译的问题- pydev debugger: process 5924 is connecting(process finished with exit code 139 ())

作者最近在使用pycharm IDE的时候,遇到了一个编译的问题,相信很多人都有遇到这个问题:

一 、 pydev debugger: process 5924 is connecting Process finished with exit code 1

            我一开始认为是程序太大了,导致我的debugger用不了,但是后来才发现并不是的,下面给出解决方案:

            setting->python Debugger

           该页面有一个pyQt compatiblede 对应于auto,只要把前面的√去掉就好了,由于pyqt5不兼容。

二、process finished with exit code 139 (interrupted by signal 11 sigsegv) 

      作者当时也查找了很久关于这个问题,作者最终找到的解决方案是:到达工程解释器里面,找到pyqt,然后点击右边的“-”,去掉即可进行debug了。

E:\pythonProject\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 55147 --file E:/pythonProject/Test_Single.py ------------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------- D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py:1816: DeprecationWarning: currentThread() is deprecated, use current_thread() instead dummy_thread = threading.currentThread() pydev debugger: process 7316 is connecting Connected to pydev debugger (build 202.6948.78) Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module> main() ~~~~^^ File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main globals = debugger.run(setup['file'], None, None, is_module) File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1360, in run m = save_main_module(file, 'pydevd') File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_utils.py", line 43, in save_main_module from imp import new_module ModuleNotFoundError: No module named 'imp' Process finished with exit code 1
03-15
D:\python312\python.exe D:\PyCharm\plugins\python-ce\helpers\pydev\pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 52303 --file D:/download/process(1)/process/process1.py ------------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------- D:\PyCharm\plugins\python-ce\helpers\pydev\pydevd.py:1844: DeprecationWarning: currentThread() is deprecated, use current_thread() instead dummy_thread = threading.currentThread() Connected to pydev debugger (build 211.7628.24) 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 abc> pydev debugger: Unable to find real location for: <frozen zipimport> pydev debugger: Unable to find real location for: D:/python312/Lib/site-packages/typing-3.7.4.3-py3.12.egg!/ 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: <frozen ntpath> pydev debugger: Unable to find real location for: <string> pydev debugger: Unable to find real location for: <frozen importlib.util> pydev debugger: Unable to find real location for: <frozen posixpath> pydev debugger: Unable to find real location for: <frozen genericpath> Process finished with exit code 0
最新发布
04-03
从您提供的日志来看,这是 PyCharm 调试 Python 程序时生成的日志信息。以下是逐步分析和解释: --- ### 日志解读 1. **Python 版本编译问题** ``` pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute) ``` 这段警告表明当前使用的 Python 解释器版本可能存在一些内部编译问题。虽然调试功能仍能正常运行,但可能会有性能下降或断点丢失的风险。 相关链接:`http://bugs.python.org/issue1666807` #### 可能的原因及解决办法: - 您正在使用较新的 Python 版本(例如 `3.12`),而某些工具尚未完全适配该版本。 - 尝试更换为更稳定的 Python 版本(如 `3.9` 或 `3.10`),看是否还有类似警告。 2. **DeprecationWarning 提示** ``` DeprecationWarning: currentThread() is deprecated, use current_thread() instead ``` 此处提示旧函数 `currentThread()` 已经废弃,应改为使用新函数 `current_thread()`。这通常是由于依赖库未及时更新所致。 #### 可能的原因及解决办法: - 更新您的 PyDev 插件至最新版本。 - 如果插件已是最新的,则等待开发者修复此问题。 3. **Debugger 的路径定位问题** ``` pydev debugger: Unable to find real location for: <frozen ...> ``` 上述大量日志显示 Debugger 无法找到某些模块的真实位置,包括 `<frozen>` 和其他系统模块(如 `codecs`, `importlib`)。这是因为这些核心模块是直接嵌入 Python 中的“冻结”模块,而不是以普通文件形式存在。 #### 影响说明: - 这种情况对调试影响较小,因为核心模块一般不会修改其逻辑。 - 若需深入调试这些模块的功能实现,可能需要查看官方源码。 4. **退出状态** ``` Process finished with exit code 0 ``` 最终程序成功结束,返回值为 `0`,表示一切正常完成。 --- ### 总结 尽管出现了上述若干警告,但总体上并不妨碍程序的基本运行。如果您希望减少这些问题的发生,可以采取以下措施: - 使用稳定版的 Python (推荐选择主流长期支持版本)。 - 升级或切换 IDE 的调试组件(如升级 PyDev 到最新的兼容版本)。 - 避免混合安装不同来源的包(如避免同时通过 pip 安装和手动放置 `.egg` 包)。 --- ####
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值