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

[Bug] MMCV-Full required but failed installation #2148

Open
3 tasks done
OtenMoten opened this issue Jul 12, 2024 · 2 comments
Open
3 tasks done

[Bug] MMCV-Full required but failed installation #2148

OtenMoten opened this issue Jul 12, 2024 · 2 comments
Assignees
Labels
kind/bug something isn't working

Comments

@OtenMoten
Copy link

OtenMoten commented Jul 12, 2024

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmagic

Environment

computer_info.json

PyCharm 2024.1.1 (Professional Edition)
Build #PY-241.15989.155, built on April 29, 2024

Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Reproduces the problem - code sample

mim install mmcv-full>=1.7.2

Reproduces the problem - command or script

mim install mmcv-full>=1.7.2

Reproduces the problem - error message

error.txt

Additional information

No response

@OtenMoten OtenMoten added the kind/bug something isn't working label Jul 12, 2024
@OtenMoten
Copy link
Author

OtenMoten commented Jul 12, 2024

I've deinstalled mmcv and installed mmcv-full 1.7.2 and now this error appears:

C:\Users\Kevin\Documents\PyCharmProjects\tools\mmagic\.venv\lib\site-packages\mmcv\__init__.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Kevin\Documents\PyCharmProjects\tools\mmagic\main.py", line 1, in <module>
    import mmagic
  File "C:\Users\Kevin\Documents\PyCharmProjects\tools\mmagic\.venv\lib\site-packages\mmagic\__init__.py", line 35, in <module>
    assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \
AssertionError: mmcv==1.7.2 is used but incompatible. Please install mmcv-full>=(2, 0, 0, 0, 0, 0), <(2, 2, 0, 0, 0, 0).

in this code:

import mmagic


def main():

    print(mmagic.__version__)


if __name__ == '__main__':

    main()

@impaktor
Copy link

impaktor commented Oct 16, 2024

I'm getting the same error.
It seems it depends on mmcv-full > 2.0.0, but there's no such version? Seems like 1.7.2 is the highest version my package manager can find.

I'm following the README install instructions, I've also followed the instructions in the docs, I've tried using both the mim installer, as well as poetry.

At the time of writing, latest commit is 9 months ago, and open issues seem to go unanswered.

Related: #1968 #2146 #1821

Update: I've also tried building the docker image but that fails (AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'), nor does using the requirements.txt file in the repo solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants