GithubHelp home page GithubHelp logo

Comments (14)

umaruta4 avatar umaruta4 commented on August 17, 2024 1

just so anyone wondering how to get the get_directories() function is by :

from manimlib.utils.directories import get_directories

from videos.

TonyCrane avatar TonyCrane commented on August 17, 2024 1

It is a setting in the yml file

from videos.

Futuremappermydud avatar Futuremappermydud commented on August 17, 2024 1

directories:
mirror_module_path: True
output: "/Users/grant/Dropbox/3Blue1Brown/videos"
raster_images: "/Users/grant/Dropbox/3Blue1Brown/images/raster"
vector_images: "/Users/grant/Dropbox/3Blue1Brown/images/vector"
pi_creature_images: "/Users/grant/Dropbox/3Blue1Brown/images/pi_creature/svg"
sounds: "/Users/grant/Dropbox/3Blue1Brown/sounds"
data: "/data"
temporary_storage: "/Users/grant/Dropbox/3Blue1Brown/manim_cache"
universal_import_line: "from manim_imports_ext import *"

from videos.

arun279 avatar arun279 commented on August 17, 2024

I'm having the same issue. can't seem to find this data directory.

from videos.

Nata-4681 avatar Nata-4681 commented on August 17, 2024

Can anyone help with this?


C:\Users\Name\AppData\Local\Programs\Python\Python38\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Traceback (most recent call last):
File "C:/Users/Name/Desktop/videos-master/videos-master/_2022/wordle.py", line 10, in
DATA_DIR = os.path.join(get_directories()["data"], "wordle")
KeyError: 'data
Screenshot 2022-02-07 213005
'

from videos.

Futuremappermydud avatar Futuremappermydud commented on August 17, 2024

Set the path in custom_config.yml and drag it into the folder

from videos.

Nata-4681 avatar Nata-4681 commented on August 17, 2024

Set the path to the "wordle_data" folder in directories "temporary_storage" ?
Screenshot 2022-02-07 221505

from videos.

Futuremappermydud avatar Futuremappermydud commented on August 17, 2024

image

from videos.

Nata-4681 avatar Nata-4681 commented on August 17, 2024

Thanks, seems to have solved the issue. Only problem is manim imports remain unresolved and now pattern_matrix.npy cannot be retrieved.
Screenshot 2022-02-07 222710
Screenshot 2022-02-07 222944

from videos.

sriharshamadala avatar sriharshamadala commented on August 17, 2024

@Nata-4681, if you edit the custom_config.yml to change the 'data' field like "./data" make sure to create a local dir data and a subdir wordle inside it.

from videos.

Frontgecko avatar Frontgecko commented on August 17, 2024

@Nata-4681, if you edit the custom_config.yml to change the 'data' field like "./data" make sure to create a local dir data and a subdir wordle inside it.

I followed the comments in this thread and have the same issue. Created the local data directory with the subdirectory of wordle. When running the python script, it spits out the NPY file but I see no other graphics. When trying to run the python script via command line, I have the same error:
DATA_DIR = os.path.join(get_directories()["data"], "wordle")
KeyError: 'data'
image

from videos.

Frontgecko avatar Frontgecko commented on August 17, 2024

@Nata-4681, if you edit the custom_config.yml to change the 'data' field like "./data" make sure to create a local dir data and a subdir wordle inside it.

I followed the comments in this thread and have the same issue. Created the local data directory with the subdirectory of wordle. When running the python script, it spits out the NPY file but I see no other graphics. When trying to run the python script via command line, I have the same error: DATA_DIR = os.path.join(get_directories()["data"], "wordle") KeyError: 'data' image

Nevermind I figured it out, was attempting to run the wordle.py from the wrong subdirectory. After running it out from manim folder, it ran perfectly. Thank you.

from videos.

Nata-4681 avatar Nata-4681 commented on August 17, 2024

I realized I am actually missing the file itself.. and I cannot find it in the GitHub folder either? Where does one find pattern_matrix.npy? Forgive me if I am missing it but for some reason it is not there?

Screenshot 2022-02-08 220116

from videos.

cornflakesdev avatar cornflakesdev commented on August 17, 2024

I realized I am actually missing the file itself.. and I cannot find it in the GitHub folder either? Where does one find pattern_matrix.npy? Forgive me if I am missing it but for some reason it is not there?

Screenshot 2022-02-08 220116

It is generated, along with the other files not found in the folder, upon the first iteration

from videos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.