3b1b / manim

Animation engine for explanatory math videos
MIT License
70.79k stars 6.23k forks source link

Exception 'NoneType' object has no attribute 'check_complete' #2051

Open End-Poem opened 1 year ago

End-Poem commented 1 year ago

Describe the error

Run manimgl in cmd.exe, and run any python code in it, it had wrong.

Code and Error

Code:

Error:

Unhandled exception in event loop: File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\input\win32.py"y callback() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\application\appt context.copy().run(read_from_input) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\application\appt self.key_processor.process_keys() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\key_binding\keys self._process_coroutine.send(key_press) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\key_binding\keys self._call_handler(matches[-1], key_sequence=buffer[:]) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\key_binding\keyr handler.call(event) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\prompt_toolkit\key_binding\keyl result = self.handler(event) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\terminal\shortcuts__ie return newline_or_execute_outer(shell)(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\terminal\shortcuts__ie status, indent = shell.check_complete(check_text) ^^^^^^^^^^^^^^^^^^^^

Exception 'NoneType' object has no attribute 'check_complete' Press ENTER to continue...

Environment

OS System: Windows 10 x64 manim version: master python version:3.11.4

mikolajlubiak commented 1 year ago

From what I see the issue is related to one of the libraries used by manim and not in manim itself. Try reporting this to IPython.

preciousajorgba commented 1 year ago

I had the same issue. There is no problem with your manim version and your python version. The problem is with the IPython version. You need to install this version of IPython:

pip install IPython==8.0.1

source:https://stackoverflow.com/questions/76519814/manim-community-interactive-embed-causes-ipython-curruption-sqlite3-progra

liangkeshulizi commented 1 year ago

same issue. maybe there's some changes in the latest version of ipython leading to this problem. Manimgl should be adapted to the new version or add "ipython == 8.0.1" in the requirements.txt.