3b1b / videos

Code for the manim-generated scenes used in 3blue1brown videos
5.79k stars 1.55k forks source link

scenes.py InitialDemo won't work - Errno 13 #45

Open jakecminihan opened 2 years ago

jakecminihan commented 2 years ago

Hi there,

Per the title, I can't get scenes.py InitialDemo to work. Here is my the terminal output:

(base) jake@Jake-PC-UBU20:~/Documents/videos-master/_2022/wordle$ manimgl scenes.py InitialDemo
ManimGL v1.5.0
Traceback (most recent call last):
  File "/home/jake/anaconda3/bin/manimgl", line 8, in <module>
    sys.exit(main())
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/__main__.py", line 25, in main
    scene.run()
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/scene/scene.py", line 78, in run
    self.setup()
  File "scenes.py", line 964, in setup
    super().setup()
  File "scenes.py", line 334, in setup
    self.show_possible_words()
  File "scenes.py", line 521, in show_possible_words
    shown_words = self.get_shown_words()
  File "scenes.py", line 489, in get_shown_words
    return self.get_grid_of_words(
  File "scenes.py", line 266, in get_grid_of_words
    full_text_mob = Text(full_string, font="Consolas", font_size=font_size)
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/mobject/svg/text_mobject.py", line 70, in __init__
    file_name = self.text2svg()
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/mobject/svg/text_mobject.py", line 236, in text2svg
    dir_name = get_text_dir()
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/utils/directories.py", line 20, in get_text_dir
    return guarantee_existence(os.path.join(get_temp_dir(), "Text"))
  File "/home/jake/anaconda3/lib/python3.9/site-packages/manimlib/utils/file_ops.py", line 16, in guarantee_existence
    os.makedirs(path)
  File "/home/jake/anaconda3/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/home/jake/anaconda3/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/home/jake/anaconda3/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  [Previous line repeated 2 more times]
  File "/home/jake/anaconda3/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/Users'

I'm running Ubuntu 20.04, Python 3.9, all dependencies installed. simulations.py runs fine. I downloaded the repository and am running the code from documents/videos-master/_2022/wordle - in this directory is custom, data,__pycache__, custom_config.yml,footnote.py,manim_imports_ext.yml,scenes.py and simulations.py. Both .py files have the import sys sys.path.append... fix. Any insight into what I need to do to fix this would be mighty appreciated!

hanbinzhang commented 2 years ago

try to modify the custom_config.yml change the temporary_storage to somewhere you have permission to access in custom_config.yml

directories: 
  temporary_storage: "/your/path"