dmarx / video-killed-the-radio-star

Notebook and tools for end-to-end automation of music video production with generative AI
https://colab.research.google.com/github/dmarx/video-killed-the-radio-star/blob/main/Video_Killed_The_Radio_Star_Defusion.ipynb#scrollTo=oPbeyWtesAoh
MIT License
196 stars 35 forks source link

Not Running Correctly #137

Closed riotsmith closed 1 year ago

riotsmith commented 1 year ago

Can anyone help me with the below. Can't get it to run and allow me to provide the API key.


ModuleNotFoundError Traceback (most recent call last) in <cell line: 24>() 22 import time 23 ---> 24 from omegaconf import OmegaConf 25 26

ModuleNotFoundError: No module named 'omegaconf'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

jinnyhhh commented 1 year ago

I just add !pip install omegaconf at line 23, I think that might fix ur problem cause I just fixed mine by adding. Also make sure that at the end of this coding section, there are two lines about ' from huggingface_hub import notebook_login' and 'notebook_login()' should be you need to let these two lines start from the head( no blank, just delete the blank in front of them). I think this problem is new cause its still working on Thursday, but yesterday I got thins problem too. This might help you, but this method isn't really professional actually, so if I have anything wrong, tell me plz and Im appreciate.

riotsmith commented 1 year ago

Thanks for your help so far! I'm still getting an error saying:

ModuleNotFoundError Traceback (most recent call last) in <cell line: 74>() 72 pass 73 ---> 74 from huggingface_hub import notebook_login 75 76 # to do: if gdrive mounted, check for API token... somewhere on drive?

ModuleNotFoundError: No module named 'huggingface_hub'

I tried starting the code at the head for both lines and it didn't resolve.

Any ideas? Really appreciate your help

riotsmith commented 1 year ago

I managed to get round the previous problem but have since encountered another! Any help would be greatly appreciated!


ModuleNotFoundError Traceback (most recent call last) in <cell line: 2>() 1 import time ----> 2 from vktrs.utils import sanitize_folder_name 3 from omegaconf import OmegaConf 4 5 project_name = 'Peasants Vis' # @param {type:'string'}

ModuleNotFoundError: No module named 'vktrs'


yyahav commented 1 year ago

vktrs should be installed too (like omegaconf etc..) but it raises a new issue: #136

danielamar101 commented 1 year ago

I am running into the same problem as well

yyahav commented 1 year ago

tbh the issue in #136 is not directly related to vktrs, it comes from failed building of pytokenizations: comment in #136

yyahav commented 1 year ago

I've found a fix, will create PR in a few minutes. For the time being - in the Installations cell add the following line: !apt-get install cargo Just before: !pip install vktrs[api,hf]

It's now working:

image image image

yyahav commented 1 year ago

This issue can be closed once #138 is merged.

danielamar101 commented 1 year ago

This fixed it for me. I'm curious as to why, if you could be so kind as to explain.. I'm a bit new to python envs in general.

yyahav commented 1 year ago

@danielamar101 sure - when colab tries to pip install vktrs it has some dependencies already configured within the package like omegaconf and pytokenizations.

pytokenizations doesn't have a wheel for Colab (which is a Python package built for a specific platform), so when pip tries to install pytokenizations it downloads the source instead and tries to build it locally.

pytokenizations was written using Rust language, so the Rust builder should be used to build the package - hence the Cargo, which is Rust builder and package manager. Because Cargo is not installed by default on Colab VM (Virtual Machine that runs your code), trying to build pytokenizations fails, so the whole operation of installing vktrs package fails, and that's why omegaconf is missing too (see the OP error in this issue).

Once Cargo is installed the build of pytokenizations is successful, and pip carries on to install the other dependencies and vktrs package.

danielamar101 commented 1 year ago

Wow thank you for that explanation, will go a long way!