open-mmlab/mmtracking

Installation issue

nyanmn opened this issue · 1 comments

nyanmn commented

My OS is Ubuntu 20 with CUDA 11.7.
Pytorch version is 1.13.1+cu117.
When installed MMTraking, the errors are

  cwd: /home/atic/mmtracking/
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

and

writing manifest file '/tmp/pip-pip-egg-info-qnyy85h8/mmtrack.egg-info/SOURCES.txt'
  free(): invalid pointer
  error: subprocess-exited-with-error

How can I fix errors?

The full list of errors are

writing manifest file '/tmp/pip-pip-egg-info-qnyy85h8/mmtrack.egg-info/SOURCES.txt'
  free(): invalid pointer
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: -6
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/atic/anaconda3/envs/open-mmlab/bin/python -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize
  
  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)
  
  __file__ = %r
  sys.argv[0] = __file__
  
  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/home/atic/mmtracking/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-qnyy85h8
  cwd: /home/atic/mmtracking/
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@nyanmn , any update on this, I am also facing a similar issue