pycharm - "Indicated packet length too large" error when using remote interpreter in PyCharm
问题描述
I am setting up a remote SSH interpreter in PyCharm, but when I try to select the interpreter's location on the remote machine, I get the following error:
Indicated packet length 1952805748 too large
How can I fix this?
解决方案
I got this error because my .bashrc
file printed to stdout. .bashrc
is sourced when PyCharm connects to a remote interpreter's machine over SFTP. It has to be silent, otherwise it interferes with the SFTP protocol.
The solution is to exit .bashrc
early when not running interactively by putting this line at the top:
# If not running interactively, return early
[[ $- == *i* ]] || return
Further reading:
推荐阅读
- c# - “钥匙不存在。” 签约时
- firebase-realtime-database - 使用两个不同的数据库实时部署 Firebase 函数 onWrite
- powerbi-embedded - 当我点击它时,有什么方法可以打印数据的详细信息?
- elasticsearch - Logstash 未在安全(https)kibana 中创建索引
- java - 如何查找重复的字符
- excel - Aggregation/Summation of text and numeric fields
- php - 将多个php代码条件转换为SQL命令
- c++ - 为什么 std::unique_ptr 与赋值运算符不兼容?
- flutter - 即使更改了手机的日期和时间,如何(强制)从 Flutter 中的不同时区获取实际时间
- binary - .inf 文件包含不明确的字符!!如何阅读它的内容