manimgl, "AttributeError: module 'numpy' has no attribute 'typeDict'"
eszabo12 opened this issue · 0 comments
Describe the error
I am trying to run the manimgl command on Linux.
Code and Error
Code:
manimgl
Error:
(base) elle@yoga:~$ manimgl Traceback (most recent call last): File "/home/elle/.local/bin/manimgl", line 5, in <module> from manimlib.__main__ import main File "/home/elle/.local/lib/python3.8/site-packages/manimlib/__init__.py", line 7, in <module> from manimlib.animation.animation import * File "/home/elle/.local/lib/python3.8/site-packages/manimlib/animation/animation.py", line 6, in <module> from manimlib.mobject.mobject import _AnimationBuilder File "/home/elle/.local/lib/python3.8/site-packages/manimlib/mobject/mobject.py", line 16, in <module> from manimlib.utils.color import color_gradient File "/home/elle/.local/lib/python3.8/site-packages/manimlib/utils/color.py", line 8, in <module> from manimlib.utils.bezier import interpolate File "/home/elle/.local/lib/python3.8/site-packages/manimlib/utils/bezier.py", line 5, in <module> from scipy import linalg File "/home/elle/.local/lib/python3.8/site-packages/scipy/linalg/__init__.py", line 213, in <module> from ._sketches import * File "/home/elle/.local/lib/python3.8/site-packages/scipy/linalg/_sketches.py", line 11, in <module> from scipy.sparse import csc_matrix File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/__init__.py", line 229, in <module> from .base import * File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/base.py", line 8, in <module> from .sputils import (isdense, isscalarlike, isintlike, File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/sputils.py", line 17, in <module> supported_dtypes = [np.typeDict[x] for x in supported_dtypes] File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/sputils.py", line 17, in <listcomp> supported_dtypes = [np.typeDict[x] for x in supported_dtypes] File "/home/elle/.local/lib/python3.8/site-packages/numpy/__init__.py", line 320, in __getattr__ raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'typeDict'
Environment
OS System: Ubuntu 20.04
manim version: most recent pip version
python version: Python 3.10.9
numpy version: '1.23.5'
I know this is an issue solved by downgrading numpy, but just letting you know that the library isn't forward-compatible.