Skip to content

[Fix] Fix AssertionError when importing pip before setuptools #198

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

Merged
merged 2 commits into from
Feb 4, 2023

Conversation

ice-tong
Copy link
Collaborator

@ice-tong ice-tong commented Feb 3, 2023

Motivation

We could get AssertionError when importing pip before setuptools. A workaround is to import setuptools first and filter warnings that are caused by setuptools replacing distutils.

Fix open-mmlab/mmpretrain#1343

Related issues:

Modification

  • mim/__init__.py

@ice-tong ice-tong force-pushed the yancong/fix_download_error branch from 2cb56a9 to f2d9fef Compare February 3, 2023 16:17
@zhouzaida zhouzaida merged commit 959f9c9 into open-mmlab:main Feb 4, 2023
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 this pull request may close these issues.

[Bug] mim download fails with ModuleNotFoundError: No module named 'mmengine'
2 participants