CLion控制台调试出现 "Error during pretty printers setup: Error while executing Python code." 问题


问题描述

CLion Debug 时出现这个问题:

Error during pretty printers setup: Error while executing Python code.

Some features and performance optimizations will not be available. 

解决方案

找到这个文件:

20201229164244

我的里面的原来的内容为:

python
import sys
sys.path.insert(0, sys.path[0] + '/../../gcc-8.1.0/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

现在将其替换为:

python
import sys
sys.path.insert(0, '/your/path/here/python')
sys.path.insert(0, '/your/path/here/python/libstdcxx/v6')
from libstdcxx.v6.printers import register_libstdcxx_printers
end

然后,控制台就不报错了。

按:我不知道为什么要这样改,但是这样改之后确实是不报错了。我这该死的强迫症。

参考:https://stackoverflow.com/questions/26511481/pretty-printers-error-while-executing-python-code-in-eclipse-ubuntu-14


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM