Пытаюсь встроить IPython, но stdin == Нет
Я пытаюсь встроить ipython в блендер. Blender поставляется с собственным python, поэтому, чтобы получить доступ ко всем моим собственным библиотекам, я копирую список из моей переменной sys.path ipython3 и выполняю:
import sys
for p in
sys.path.append(p)
import IPython
IPython embed
Я получаю следующую ошибку:
>>> import IPython
>>> IPython.embed()
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "/usr/lib/python3/dist-packages/IPython/frontend/terminal/embed.py", line 282, in embed
_embedded_shell = InteractiveShellEmbed(**kwargs)
File "/usr/lib/python3/dist-packages/IPython/frontend/terminal/embed.py", line 97, in __init__
display_banner=display_banner
File "/usr/lib/python3/dist-packages/IPython/frontend/terminal/interactiveshell.py", line 360, in __init__
user_module=user_module, custom_exceptions=custom_exceptions
File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 455, in __init__
self.init_readline()
File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 1844, in init_readline
self.refill_readline_hist()
File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 1853, in refill_readline_hist
stdin_encoding = sys.stdin.encoding or "utf-8"
AttributeError: 'NoneType' object has no attribute 'encoding'
Любые идеи, как я могу заставить его работать?