3b1b / 3b1b/manim

Problem with pip installation | No module named 'manimlib.imports'

Đang mở
#541 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
93.9k
Fork
7.7k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
4

Mô tả

Hello,
I tried to install manim via pip on a fresh linux system (Fedora 30), although the installation went smoothly, I got a module not found `ModuleNotFoundError` stating that there's no file `imports.py`. The error is pasted below

```
Media will be stored in ./media/. You can change this behavior by writing a different directory to media_dir.txt.
Traceback (most recent call last):
File "/home/jarwin/Documents/envs/manimations/bin/manim", line 10, in
sys.exit(main())
File "/home/jarwin/Documents/envs/manimations/lib64/python3.7/site-packages/manimlib/__init__.py", line 10, in main
config = manimlib.config.get_configuration(args)
File "/home/jarwin/Documents/envs/manimations/lib64/python3.7/site-packages/manimlib/config.py", line 158, in get_configuration
module = get_module(args.file)
File "/home/jarwin/Documents/envs/manimations/lib64/python3.7/site-packages/manimlib/config.py", line 153, in get_module
spec.loader.exec_module(module)
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "svg_test1.py", line 3, in
from manimlib.imports import *
ModuleNotFoundError: No module named 'manimlib.imports'

```

I went and looked at the installation directory, and there was indeed no `imports.py` file.

![Screenshot from 2019-05-20 14-25-02](https://user-images.githubusercontent.com/5101224/58009781-cff0ce80-7b0c-11e9-9401-71b865d8e45d.png)

To fix this I manually added `imports.py` file at the same location given in the screenshot.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.