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

min install an older version of mmdet #237

Open
lpplbiubiubiub opened this issue Feb 20, 2024 · 0 comments
Open

min install an older version of mmdet #237

lpplbiubiubiub opened this issue Feb 20, 2024 · 0 comments

Comments

@lpplbiubiubiub
Copy link

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug
when i install mmdet==2.23.0, the mmdet will not be installed successfully but the latest version is ok

Reproduction

  1. What command or script did you run?
 mim install mmdet==2.23.0
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
  2. What dataset did you use?

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
    mmcv 2.0.1
    mmdet 3.1.0
    mmdet3d 1.3.0
    mmengine 0.10.2

  2. You may add addition that may be helpful for locating the problem, such as

    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Looking in links: https://download.openmmlab.com/mmcv/dist/cu116/torch1.13.0/index.html
Collecting mmdet==2.23.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ff/13/db18fe68c3480664b8571674fb9f5258e39b76f759985a510287075a9cce/mmdet-2.23.0-py3-none-any.whl (1.4 MB)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting mmdet==2.23.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/59/1a/f0e34f622d2d0c7be84356c39d2c829fd1e1ffb1d15b4b36d185946f7c8b/mmdet-2.23.0.tar.gz (747 kB)
  Preparing metadata (setup.py) ... done
Saved /tmp/tmpd_iisg61/mmdet-2.23.0.tar.gz
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting mmdet==2.23.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/59/1a/f0e34f622d2d0c7be84356c39d2c829fd1e1ffb1d15b4b36d185946f7c8b/mmdet-2.23.0.tar.gz (747 kB)
  Preparing metadata (setup.py) ... done
Saved /tmp/tmpqb1x06sk/mmdet-2.23.0.tar.gz
...
...
...
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Exception:
Traceback (most recent call last):
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
    return func(self, options, args)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/commands/download.py", line 132, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
    result = self._result = resolver.resolve(
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
    return bool(self._sequence)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
    return any(self)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 44, in _iter_built
    for version, func in infos:
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 284, in iter_index_candidate_infos
    result = self._finder.find_best_candidate(
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 890, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 831, in find_all_candidates
    page_candidates = list(page_candidates_it)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/sources.py", line 134, in page_candidates
    yield from self._candidates_from_page(self._link)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 791, in process_project_url
    index_response = self._link_collector.fetch_response(project_url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 461, in fetch_response
    return _get_index_content(location, session=self.session)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 364, in _get_index_content
    resp = _get_simple_response(url, session=session)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 135, in _get_simple_response
    resp = session.get(
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/network/session.py", line 519, in request
    return super().request(method, url, *args, **kwargs)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 575, in request
    prep = self.prepare_request(req)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 486, in prepare_request
    p.prepare(
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/requests/models.py", line 372, in prepare
    self.prepare_auth(auth, url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_vendor/requests/models.py", line 603, in prepare_auth
    r = auth(self)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 437, in __call__
    url, username, password = self._get_url_and_credentials(req.url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 402, in _get_url_and_credentials
    username, password = self._get_new_credentials(original_url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 350, in _get_new_credentials
    index_url = self._get_index_url(url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 298, in _get_index_url
    url = remove_auth_from_url(url).rstrip("/") + "/"
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 574, in remove_auth_from_url
    return _transform_url(url, _get_netloc)[0]
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 542, in _transform_url
    purl = urllib.parse.urlsplit(url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/urllib/parse.py", line 448, in urlsplit
    cached = _parse_cache.get(key, None)
RecursionError: maximum recursion depth exceeded in comparison
pip download failed with args: ['mmdet==2.23.0', '-d', '/tmp/tmp035_211_', '--no-deps', '--no-binary', ':all:']
ERROR: Exception:
Traceback (most recent call last):
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
    return func(self, options, args)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/commands/download.py", line 142, in run
    requirement_set.warn_legacy_versions_and_specifiers()
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/req/req_set.py", line 104, in warn_legacy_versions_and_specifiers
    for dep in req.get_dist().iter_dependencies():
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/pip/_internal/metadata/pkg_resources.py", line 221, in iter_dependencies
    return self._dist.requires(extras)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/mim/commands/install.py", line 207, in patched_requires
    mmdeps_text = get_mmdeps_from_mmpkg(self.project_name,
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/mim/commands/install.py", line 321, in get_mmdeps_from_mmpkg
    mminstall_content = get_mminstall_from_pypi(mmpkg, index_url=index_url)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/site-packages/mim/commands/install.py", line 351, in get_mminstall_from_pypi
    exit(status_code)
  File "/mnt/data-1/data/peng.li/package/conda/envs/j5_v157/lib/python3.8/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: 2
pip download failed with args: ['mmdet==2.23.0', '-d', '/tmp/tmpqb1x06sk', '--no-deps', '--no-binary', ':all:']

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

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