3b1b / 3b1b/manim

manimgl, "AttributeError: module 'numpy' has no attribute 'typeDict'"

Open
#2,032 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
93.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

### 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
from manimlib.__main__ import main
File "/home/elle/.local/lib/python3.8/site-packages/manimlib/__init__.py", line 7, in
from manimlib.animation.animation import *
File "/home/elle/.local/lib/python3.8/site-packages/manimlib/animation/animation.py", line 6, in
from manimlib.mobject.mobject import _AnimationBuilder
File "/home/elle/.local/lib/python3.8/site-packages/manimlib/mobject/mobject.py", line 16, in
from manimlib.utils.color import color_gradient
File "/home/elle/.local/lib/python3.8/site-packages/manimlib/utils/color.py", line 8, in
from manimlib.utils.bezier import interpolate
File "/home/elle/.local/lib/python3.8/site-packages/manimlib/utils/bezier.py", line 5, in
from scipy import linalg
File "/home/elle/.local/lib/python3.8/site-packages/scipy/linalg/__init__.py", line 213, in
from ._sketches import *
File "/home/elle/.local/lib/python3.8/site-packages/scipy/linalg/_sketches.py", line 11, in
from scipy.sparse import csc_matrix
File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/__init__.py", line 229, in
from .base import *
File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/base.py", line 8, in
from .sputils import (isdense, isscalarlike, isintlike,
File "/home/elle/.local/lib/python3.8/site-packages/scipy/sparse/sputils.py", line 17, in
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
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.