3b1b / 3b1b/manim

Value Error

Đang mở
#265 4 bình luận 0 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ả

While trying the example in the README.md, I get the error:

`D:\manim-master>python extract_scene.py example_scenes.py SquareToCircle -pl
Traceback (most recent call last):
File "extract_scene.py", line 283, in
main()
File "extract_scene.py", line 243, in main
module = get_module(config["file"])
File "extract_scene.py", line 237, in get_module
return get_module_windows(file_name)
File "extract_scene.py", line 222, in get_module_windows
last_module = imp.load_module(part, *load_args)
File ".\example_scenes.py", line 4, in
from .big_ol_pile_of_manim_imports import *
ValueError: Attempted relative import in non-package`

What do I do?

EDIT:

I did a bit of research and instead of using
`python extract_scene.py example_scenes.py SquareToCircle -pl`
I used
`python -m big_ol_pile_of_manim_imports extract_scene.py example_scenes.py SquareToCircle -pl`

Now I don't get any error, but I don't get any preview or output either :P

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.