Closed riotsmith closed 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.
ModuleNotFoundError Traceback (most recent call last)
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
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)
ModuleNotFoundError: No module named 'vktrs'
vktrs
should be installed too (like omegaconf etc..) but it raises a new issue: #136
I am running into the same problem as well
tbh the issue in #136 is not directly related to vktrs
, it comes from failed building of pytokenizations
:
comment in #136
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:
This issue can be closed once #138 is merged.
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.
@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.
Wow thank you for that explanation, will go a long way!
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.