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

Colab stuck at Building wheels for collected packages: mmcv-full #6909

Closed
lorepieri8 opened this issue Dec 28, 2021 · 6 comments · Fixed by #7310
Closed

Colab stuck at Building wheels for collected packages: mmcv-full #6909

lorepieri8 opened this issue Dec 28, 2021 · 6 comments · Fixed by #7310

Comments

@lorepieri8
Copy link

Describe the bug
Colab notebook is stuck at Building wheels for collected packages: mmcv-full since about 20mins. Is this the expected behaviour?

Reproduction

Run cell number 2 of
https://github.com/open-mmlab/mmdetection/blob/master/demo/MMDet_Tutorial.ipynb

Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.5.1+cu101
  Downloading https://download.pytorch.org/whl/cu101/torch-1.5.1%2Bcu101-cp37-cp37m-linux_x86_64.whl (704.4 MB)
     |████████████████████████████████| 704.4 MB 1.3 kB/s 
Collecting torchvision==0.6.1+cu101
  Downloading https://download.pytorch.org/whl/cu101/torchvision-0.6.1%2Bcu101-cp37-cp37m-linux_x86_64.whl (6.6 MB)
     |████████████████████████████████| 6.6 MB 30.6 MB/s 
Requirement already satisfied: future in /usr/local/lib/python3.7/dist-packages (from torch==1.5.1+cu101) (0.16.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from torch==1.5.1+cu101) (1.19.5)
Requirement already satisfied: pillow>=4.1.1 in /usr/local/lib/python3.7/dist-packages (from torchvision==0.6.1+cu101) (7.1.2)
Installing collected packages: torch, torchvision
  Attempting uninstall: torch
    Found existing installation: torch 1.10.0+cu111
    Uninstalling torch-1.10.0+cu111:
      Successfully uninstalled torch-1.10.0+cu111
  Attempting uninstall: torchvision
    Found existing installation: torchvision 0.11.1+cu111
    Uninstalling torchvision-0.11.1+cu111:
      Successfully uninstalled torchvision-0.11.1+cu111
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchtext 0.11.0 requires torch==1.10.0, but you have torch 1.5.1+cu101 which is incompatible.
torchaudio 0.10.0+cu111 requires torch==1.10.0, but you have torch 1.5.1+cu101 which is incompatible.
Successfully installed torch-1.5.1+cu101 torchvision-0.6.1+cu101
Collecting mmcv-full
  Downloading mmcv-full-1.4.2.tar.gz (405 kB)
     |████████████████████████████████| 405 kB 5.3 MB/s 
Collecting addict
  Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from mmcv-full) (1.19.5)
Requirement already satisfied: packaging in /usr/local/lib/python3.7/dist-packages (from mmcv-full) (21.3)
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (from mmcv-full) (7.1.2)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.7/dist-packages (from mmcv-full) (3.13)
Collecting yapf
  Downloading yapf-0.32.0-py2.py3-none-any.whl (190 kB)
     |████████████████████████████████| 190 kB 40.4 MB/s 
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.7/dist-packages (from packaging->mmcv-full) (3.0.6)
Building wheels for collected packages: mmcv-full
@Nonmy
Copy link

Nonmy commented Jan 6, 2022

same problem

@Manasi-M-Naik
Copy link

Anyone please tell how to solve this problem

@Manasi-M-Naik
Copy link

Manasi-M-Naik commented Aug 7, 2024 via email

@Manasi-M-Naik
Copy link

Manasi-M-Naik commented Aug 7, 2024 via email

@TheGitSlender
Copy link

TheGitSlender commented Aug 10, 2024

!pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118 import torch, torchvision print("torch version:",torch.version, "cuda:",torch.cuda.is_available()) !pip install -U openmim !mim install "mmengine>=0.7.0" !mim install "mmcv>=2.0.0,<2.1.0" #mmcv>=2.0.0rc4,<2.2.0 # Check mmcv installation import mmcv print("mmcv:",mmcv.version) #This method has worked for me on google colab. On Wed, Aug 7, 2024 at 11:49 PM 01fe19bec046 . @.> wrote:

Hello My issue has been solved We need to follow different installation method. On Wed, 7 Aug, 2024, 8:30 pm TheSlender, @.
> wrote: > I have the same issue. No solution found yet. > > — > Reply to this email directly, view it on GitHub > <#6909 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AOIY6MWTAP2T4UYHR5GRD3LZQIZBDAVCNFSM5K37XLKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRXGM3DQNBQGIYQ > . > You are receiving this because you commented.Message ID: > @.***> >

This in fact worked. I figured the whole issue was coming from the fact that mmcv just isn't compatible with new torch versions yet (i was using torch 2.3.1+cu121 the one pre-installed in colab).

@NicolasGonzalezF
Copy link

!pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118 import torch, torchvision print("torch version:",torch.version, "cuda:",torch.cuda.is_available()) !pip install -U openmim !mim install "mmengine>=0.7.0" !mim install "mmcv>=2.0.0,<2.1.0" #mmcv>=2.0.0rc4,<2.2.0 # Check mmcv installation import mmcv print("mmcv:",mmcv.version) #This method has worked for me on google colab. On Wed, Aug 7, 2024 at 11:49 PM 01fe19bec046 . @.> wrote:

Hello My issue has been solved We need to follow different installation method. On Wed, 7 Aug, 2024, 8:30 pm TheSlender, @.
> wrote: > I have the same issue. No solution found yet. > > — > Reply to this email directly, view it on GitHub > <#6909 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AOIY6MWTAP2T4UYHR5GRD3LZQIZBDAVCNFSM5K37XLKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRXGM3DQNBQGIYQ > . > You are receiving this because you commented.Message ID: > @.***> >

omg this is god send mods PLEASE PLEASE ADD THIS TO THE FAQ

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

Successfully merging a pull request may close this issue.

5 participants