Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyError : 'data' from wordle.py #18

Closed
umaruta4 opened this issue Feb 7, 2022 · 14 comments
Closed

keyError : 'data' from wordle.py #18

umaruta4 opened this issue Feb 7, 2022 · 14 comments

Comments

@umaruta4
Copy link

umaruta4 commented Feb 7, 2022

DATA_DIR = os.path.join(get_directories()["data"], "wordle")
KeyError: 'data'

after checking what get_directories() returns, I can't seem to find any key named data

so what is inside this 'data' ?

@umaruta4
Copy link
Author

umaruta4 commented Feb 7, 2022

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

from manimlib.utils.directories import get_directories

@arun279
Copy link

arun279 commented Feb 7, 2022

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

@TonyCrane
Copy link

It is a setting in the yml file

@Nata-4681
Copy link

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
'

@Futuremappermydud
Copy link

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

@Nata-4681
Copy link

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

@Futuremappermydud
Copy link

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 *"

@Futuremappermydud
Copy link

image

@Nata-4681
Copy link

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

@sriharshamadala
Copy link

@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.

@Frontgecko
Copy link

@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

@Frontgecko
Copy link

@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.

@Nata-4681
Copy link

Nata-4681 commented Feb 9, 2022

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

@cornflakesdev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants