You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched related issues but cannot get the expected help. ✅
I have read the FAQ documentation but cannot get the expected help. ✅
The bug has not been fixed in the latest version. ✅
Describe the bug mim install mmpretrain prints the following warnings with pip>=24.1:
Ignoring mmcv: markers 'extra == "mim"' don't match your environment
Ignoring mmdet: markers 'extra == "mim"' don't match your environment
Ignoring mmengine: markers 'extra == "mim"' don't match your environment
Followed by failed import of mmcv when importing the package. Basically, mim is failing to install its dependencies
Reproduction
What command or script did you run?
conda create -n mm python=3.8
conda deactivate
conda activate mm
pip install --upgrade pip
pip install openmim
pip install torch
mim install mmpretrain
python -c "import mmpretrain"
pip list
Did you make any modifications on the code or config? Did you understand what you have modified? No
What dataset did you use? N/A
Environment
Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here. N/A, see pip list above, python=3.8.12
You may add addition that may be helpful for locating the problem, such as
How you installed PyTorch [e.g., pip, conda, source]: yes, torch==2.3.1, CUDA Version: 12.2
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
Error traceback
If applicable, paste the error trackback here.
Traceback (most recent call last):
File "<string>", line 1, in<module>
File "/home/alex/miniconda3/envs/mm/lib/python3.8/site-packages/mmpretrain/__init__.py", line 2, in<module>
import mmcv
ModuleNotFoundError: No module named 'mmcv'
Bug fix
Reverting to pip<=24.0 resolved this issue. I believe the problem is related to this part of openmim, where we hack the pip installer to accept mim extras. This was working in previous pip versions but no longer works
The earliest version of pip where the bug is observed is 24.1b1
@ice-tong seemed to address this issue with the patched_requires code but I'm afraid the fix is no longer working
The text was updated successfully, but these errors were encountered:
alexh-deeplite
changed the title
Mim instal fails to install dependencies
Mim install fails to install dependencies
Jul 9, 2024
Checklist
Describe the bug
mim install mmpretrain
prints the following warnings with pip>=24.1:Followed by failed import of mmcv when importing the package. Basically, mim is failing to install its dependencies
Reproduction
conda create -n mm python=3.8 conda deactivate conda activate mm pip install --upgrade pip pip install openmim pip install torch mim install mmpretrain python -c "import mmpretrain" pip list
Output:
Environment
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here. N/A, see pip list above, python=3.8.12$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
If applicable, paste the error trackback here.
Bug fix
Reverting to pip<=24.0 resolved this issue. I believe the problem is related to this part of openmim, where we hack the pip installer to accept mim extras. This was working in previous pip versions but no longer works
The earliest version of pip where the bug is observed is 24.1b1
@ice-tong seemed to address this issue with the
patched_requires
code but I'm afraid the fix is no longer workingThe text was updated successfully, but these errors were encountered: