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

Unzip File From Drive ERROR #46

Open
alalalex-m opened this issue Jul 30, 2024 · 0 comments
Open

Unzip File From Drive ERROR #46

alalalex-m opened this issue Jul 30, 2024 · 0 comments

Comments

@alalalex-m
Copy link

The original code would lead to this error:

Archive:  /content/drive/MyDrive/assets/KiwKiw.zip
/content/KiwKiw
  Installing build dependencies ... done
......
  Preparing metadata (setup.py) ... done
WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq==0.12.2->-r requirements.txt (line 7)) has invalid metadata: .* suffix can only be used with == or != operators
    PyYAML (>=5.1.*)
            ~~~~~~^
Please use pip<24.1 if you need to use this version.
......
ERROR: Cannot install -r requirements.txt (line 7) and fairseq because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

This error is caused by a dependency conflict between the version of omegaconf and fairseq. fairseq depends on a version of omegaconf that has a metadata error with the latest pip version, causing the installation to fail.
You can try to resolve this issue by using a lower version of pip. You can follow the steps below:

  1. Downgrade the pip to version 24.0.
  2. Reinstall the dependencies.
    Here is the updated code:
#@title Unzip File From Drive

# Downgrade pip to version 24.0
!pip install pip==24.0

!unzip -n /content/drive/MyDrive/assets/KiwKiw.zip -d /content
%cd /content/KiwKiw

!pip install -r requirements.txt -q
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

1 participant