chengzeyi / stable-fast

Best inference performance optimization framework for HuggingFace Diffusers on NVIDIA GPUs.
MIT License
1.16k stars 70 forks source link

Install fatal error C1083: windows11 #145

Closed Nucleon729 closed 4 months ago

Nucleon729 commented 5 months ago

Hi there,

I can't manage to install stable-fast on my machine (windows 11, cuda 12.4)

it gives me this constant errors:

 compilation_unit.cpp
  C:\Users\Shadow\AppData\Local\Temp\pip-install-i5ae3vlx\stable-fast_c5fd99290349404ea1d054a04411f21c\src\sfast\csrc\jit\compilation_unit.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 1
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: 'C:\Users\Shadow\anaconda3\envs\py311\python.exe' -u -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"))
  '"'"''"'"''"'"' % ('"'"'C:\\Users\\Shadow\\AppData\\Local\\Temp\\pip-install-i5ae3vlx\\stable-fast_c5fd99290349404ea1d054a04411f21c\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d 'C:\Users\Shadow\AppData\Local\Temp\pip-wheel-j7pjaocf'
  cwd: C:\Users\Shadow\AppData\Local\Temp\pip-install-i5ae3vlx\stable-fast_c5fd99290349404ea1d054a04411f21c\
  Building wheel for stable-fast (setup.py) ... error
  ERROR: Failed building wheel for stable-fast
  Running setup.py clean for stable-fast
  Running command python setup.py clean
  running clean
  removing 'build\temp.win-amd64-cpython-311' (and everything under it)
  removing 'build\lib.win-amd64-cpython-311' (and everything under it)
  'build\bdist.win-amd64' does not exist -- can't clean it
  'build\scripts-3.11' does not exist -- can't clean it
  removing 'build'
Failed to build stable-fast
ERROR: Could not build wheels for stable-fast, which is required to install pyproject.toml-based projects

any ideas?

HELP!

Nucleon729 commented 5 months ago

@chengzeyi any idea?

Nucleon729 commented 5 months ago

actually I manage to go to the root error:

ninja: error: Stat(qtquickcontrols2/src/imports/controls/fusion/impl/CMakeFiles/qtquickcontrols2fusionstyleimplplugin_resources_qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2.dir/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2/qmlcache_loader.cpp.obj): Filename longer than 260 characters

how to fix that @chengzeyi ? any idea?

thank you

chengzeyi commented 4 months ago

@Nucleon729 Try using the following command to install:

pip3 install -e --no-build-isolation -v --no-use-pep517 --debug
Nucleon729 commented 4 months ago

Hi @chengzeyi

thank you for your reply, here is the log I get after using pip3 install -e --no-build-isolation -v --no-use-pep517 --debug

(py311) C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main>pip3 install -e --no-build-isolation -v --no-use-pep517 --debug Using pip 24.0 from C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip (python 3.11) ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\Shadow\anaconda3\envs\py311\Scripts\pip3-script.py:9 in │ │ │ │ 6 │ │ 7 if name == 'main': │ │ 8 │ sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0]) │ │ ❱ 9 │ sys.exit(main()) │ │ 10 │ │ │ │ ╭────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ main = <function main at 0x0000018BEDA4CF40> │ │ │ │ re = <module 're' from 'C:\Users\Shadow\anaconda3\envs\py311\Lib\re\init.py'> │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\main.py:79 in main │ │ │ │ 76 │ │ logger.debug("Ignoring error %s when setting locale", e) │ │ 77 │ command = create_command(cmd_name, isolated=("--isolated" in cmd_args)) │ │ 78 │ │ │ ❱ 79 │ return command.main(cmd_args) │ │ 80 │ │ │ │ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │ │ │ args = ['install', '-e', '--no-build-isolation', '-v', '--no-use-pep517', '--debug'] │ │ │ │ cmd_args = ['-e', '--no-build-isolation', '-v', '--no-use-pep517', '--debug'] │ │ │ │ cmd_name = 'install' │ │ │ │ command = <pip._internal.commands.install.InstallCommand object at 0x0000018BF135F210> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\base_command.py:101 in │ │ main │ │ │ │ 98 │ def main(self, args: List[str]) -> int: │ │ 99 │ │ try: │ │ 100 │ │ │ with self.main_context(): │ │ ❱ 101 │ │ │ │ return self._main(args) │ │ 102 │ │ finally: │ │ 103 │ │ │ logging.shutdown() │ │ 104 │ │ │ │ ╭────────────────────────────────────── locals ───────────────────────────────────────╮ │ │ │ args = ['-e', '--no-build-isolation', '-v', '--no-use-pep517', '--debug'] │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at 0x0000018BF135F210> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\base_command.py:234 in │ │ _main │ │ │ │ 231 │ │ │ else: │ │ 232 │ │ │ │ run = self.run │ │ 233 │ │ │ │ rich_traceback.install(show_locals=True) │ │ ❱ 234 │ │ │ return run(options, args) │ │ 235 │ │ finally: │ │ 236 │ │ │ self.handle_pip_version_check(options) │ │ 237 │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ always_enabled_features = set() │ │ │ │ args = [] │ │ │ │ intercepts_unhandled_exc = <function Command._main..intercepts_unhandled_exc at │ │ │ │ 0x0000018BF172B240> │ │ │ │ level_number = 15 │ │ │ │ options = <Values at 0x18bf198e710: {'help': None, 'debug_mode': True, │ │ │ │ 'isolated_mode': False, 'require_venv': False, 'python': None, │ │ │ │ 'verbose': 1, 'version': None, 'quiet': 0, 'log': None, │ │ │ │ 'no_input': False, 'keyring_provider': 'auto', 'proxy': '', │ │ │ │ 'retries': 5, 'timeout': 15, 'exists_action': [], │ │ │ │ 'trusted_hosts': [], 'cert': None, 'client_cert': None, │ │ │ │ 'cache_dir': 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, 'features_enabled': [], │ │ │ │ 'deprecated_features_enabled': [], 'requirements': [], │ │ │ │ 'constraints': [], 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': ['--no-build-isolation'], 'dry_run': False, │ │ │ │ 'target_dir': None, 'platforms': None, 'python_version': None, │ │ │ │ 'implementation': None, 'abis': None, 'use_user_site': False, │ │ │ │ 'root_path': None, 'prefix_path': None, 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-mai… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': True, │ │ │ │ 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, 'config_settings': None, │ │ │ │ 'global_options': None, 'compile': True, 'warn_script_location': │ │ │ │ True, 'warn_about_conflicts': True, 'format_control': │ │ │ │ FormatControl(set(), set()), 'prefer_binary': False, │ │ │ │ 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], 'no_index': │ │ │ │ False, 'find_links': [], 'json_report_file': None, 'no_clean': │ │ │ │ False}> │ │ │ │ run = <bound method with_cleanup..wrapper of │ │ │ │ <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x0000018BF135F210>> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x0000018BF135F210> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\req_command.py:245 in │ │ wrapper │ │ │ │ 242 │ │ │ configure_tempdir_registry(self.tempdir_registry) │ │ 243 │ │ │ │ 244 │ │ try: │ │ ❱ 245 │ │ │ return func(self, options, args) │ │ 246 │ │ except PreviousBuildDirError: │ │ 247 │ │ │ # This kind of conflict can occur when the user passes an explicit │ │ 248 │ │ │ # build directory with a pre-existing folder. In that case we do │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [] │ │ │ │ configure_tempdir_registry = <function with_cleanup..configure_tempdir_registry at │ │ │ │ 0x0000018BF1988220> │ │ │ │ func = <function InstallCommand.run at 0x0000018BF1988180> │ │ │ │ options = <Values at 0x18bf198e710: {'help': None, 'debug_mode': True, │ │ │ │ 'isolated_mode': False, 'require_venv': False, 'python': None, │ │ │ │ 'verbose': 1, 'version': None, 'quiet': 0, 'log': None, │ │ │ │ 'no_input': False, 'keyring_provider': 'auto', 'proxy': '', │ │ │ │ 'retries': 5, 'timeout': 15, 'exists_action': [], │ │ │ │ 'trusted_hosts': [], 'cert': None, 'client_cert': None, │ │ │ │ 'cache_dir': 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, 'features_enabled': [], │ │ │ │ 'deprecated_features_enabled': [], 'requirements': [], │ │ │ │ 'constraints': [], 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': ['--no-build-isolation'], 'dry_run': False, │ │ │ │ 'target_dir': None, 'platforms': None, 'python_version': None, │ │ │ │ 'implementation': None, 'abis': None, 'use_user_site': False, │ │ │ │ 'root_path': None, 'prefix_path': None, 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-m… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': True, │ │ │ │ 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, 'config_settings': None, │ │ │ │ 'global_options': None, 'compile': True, │ │ │ │ 'warn_script_location': True, 'warn_about_conflicts': True, │ │ │ │ 'format_control': FormatControl(set(), set()), 'prefer_binary': │ │ │ │ False, 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], 'no_index': │ │ │ │ False, 'find_links': [], 'json_report_file': None, 'no_clean': │ │ │ │ False}> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x0000018BF135F210> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\commands\install.py:342 in │ │ run │ │ │ │ 339 │ │ ) │ │ 340 │ │ │ │ 341 │ │ try: │ │ ❱ 342 │ │ │ reqs = self.get_requirements(args, options, finder, session) │ │ 343 │ │ │ check_legacy_setup_py_options(options, reqs) │ │ 344 │ │ │ │ │ 345 │ │ │ wheel_cache = WheelCache(options.cache_dir) │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [] │ │ │ │ build_tracker = <pip._internal.operations.build.build_tracker.BuildTr… │ │ │ │ object at 0x0000018BF1A746D0> │ │ │ │ directory = <repr-error 'Attempted to access deleted path: │ │ │ │ C:\Users\Shadow\AppData\Local\Temp\pip-install-… │ │ │ │ finder = <pip._internal.index.package_finder.PackageFinder │ │ │ │ object at 0x0000018BEE76E210> │ │ │ │ global_options = [] │ │ │ │ installing_into_current_environment = True │ │ │ │ options = <Values at 0x18bf198e710: {'help': None, 'debug_mode': │ │ │ │ True, 'isolated_mode': False, 'require_venv': False, │ │ │ │ 'python': None, 'verbose': 1, 'version': None, │ │ │ │ 'quiet': 0, 'log': None, 'no_input': False, │ │ │ │ 'keyring_provider': 'auto', 'proxy': '', 'retries': 5, │ │ │ │ 'timeout': 15, 'exists_action': [], 'trusted_hosts': │ │ │ │ [], 'cert': None, 'client_cert': None, 'cache_dir': │ │ │ │ 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, │ │ │ │ 'features_enabled': [], 'deprecated_features_enabled': │ │ │ │ [], 'requirements': [], 'constraints': [], │ │ │ │ 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': ['--no-build-isolation'], 'dry_run': │ │ │ │ False, 'target_dir': None, 'platforms': None, │ │ │ │ 'python_version': None, 'implementation': None, │ │ │ │ 'abis': None, 'use_user_site': False, 'root_path': │ │ │ │ None, 'prefix_path': None, 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stab… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': │ │ │ │ True, 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, │ │ │ │ 'config_settings': None, 'global_options': None, │ │ │ │ 'compile': True, 'warn_script_location': True, │ │ │ │ 'warn_about_conflicts': True, 'format_control': │ │ │ │ FormatControl(set(), set()), 'prefer_binary': False, │ │ │ │ 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], │ │ │ │ 'no_index': False, 'find_links': [], │ │ │ │ 'json_report_file': None, 'no_clean': False}> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object │ │ │ │ at 0x0000018BF135F210> │ │ │ │ session = <pip._internal.network.session.PipSession object at │ │ │ │ 0x0000018BEE7981D0> │ │ │ │ target_python = <pip._internal.models.target_python.TargetPython │ │ │ │ object at 0x0000018BF1A3BDC0> │ │ │ │ target_temp_dir = None │ │ │ │ target_temp_dir_path = None │ │ │ │ upgrade_strategy = 'to-satisfy-only' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\req_command.py:422 in │ │ get_requirements │ │ │ │ 419 │ │ │ requirements.append(req_to_add) │ │ 420 │ │ │ │ 421 │ │ for req in options.editables: │ │ ❱ 422 │ │ │ req_to_add = install_req_from_editable( │ │ 423 │ │ │ │ req, │ │ 424 │ │ │ │ user_supplied=True, │ │ 425 │ │ │ │ isolated=options.isolated_mode, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [] │ │ │ │ finder = <pip._internal.index.package_finder.PackageFinder object at │ │ │ │ 0x0000018BEE76E210> │ │ │ │ options = <Values at 0x18bf198e710: {'help': None, 'debug_mode': True, 'isolated_mode': │ │ │ │ False, 'require_venv': False, 'python': None, 'verbose': 1, 'version': None, │ │ │ │ 'quiet': 0, 'log': None, 'no_input': False, 'keyring_provider': 'auto', │ │ │ │ 'proxy': '', 'retries': 5, 'timeout': 15, 'exists_action': [], │ │ │ │ 'trusted_hosts': [], 'cert': None, 'client_cert': None, 'cache_dir': │ │ │ │ 'c:\users\shadow\appdata\local\pip\cache', 'disable_pip_version_check': │ │ │ │ False, 'no_color': False, 'no_python_version_warning': False, │ │ │ │ 'features_enabled': [], 'deprecated_features_enabled': [], 'requirements': │ │ │ │ [], 'constraints': [], 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': ['--no-build-isolation'], 'dry_run': False, 'target_dir': None, │ │ │ │ 'platforms': None, 'python_version': None, 'implementation': None, 'abis': │ │ │ │ None, 'use_user_site': False, 'root_path': None, 'prefix_path': None, │ │ │ │ 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\src', │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', 'force_reinstall': │ │ │ │ None, 'ignore_installed': None, 'ignore_requires_python': None, │ │ │ │ 'build_isolation': True, 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, 'config_settings': None, │ │ │ │ 'global_options': None, 'compile': True, 'warn_script_location': True, │ │ │ │ 'warn_about_conflicts': True, 'format_control': FormatControl(set(), set()), │ │ │ │ 'prefer_binary': False, 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': 'https://pypi.org/simple', │ │ │ │ 'extra_index_urls': [], 'no_index': False, 'find_links': [], │ │ │ │ 'json_report_file': None, 'no_clean': False}> │ │ │ │ req = '--no-build-isolation' │ │ │ │ requirements = [] │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at 0x0000018BF135F210> │ │ │ │ session = <pip._internal.network.session.PipSession object at 0x0000018BEE7981D0> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\req\constructors.py:240 in │ │ install_req_from_editable │ │ │ │ 237 │ permit_editable_wheels: bool = False, │ │ 238 │ config_settings: Optional[Dict[str, Union[str, List[str]]]] = None, │ │ 239 ) -> InstallRequirement: │ │ ❱ 240 │ parts = parse_req_from_editable(editable_req) │ │ 241 │ │ │ 242 │ return InstallRequirement( │ │ 243 │ │ parts.requirement, │ │ │ │ ╭──────────────────── locals ─────────────────────╮ │ │ │ comes_from = None │ │ │ │ config_settings = None │ │ │ │ constraint = False │ │ │ │ editable_req = '--no-build-isolation' │ │ │ │ global_options = None │ │ │ │ hash_options = None │ │ │ │ isolated = False │ │ │ │ permit_editable_wheels = False │ │ │ │ use_pep517 = False │ │ │ │ user_supplied = True │ │ │ ╰─────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\req\constructors.py:209 in │ │ parse_req_from_editable │ │ │ │ 206 │ │ 207 │ │ 208 def parse_req_from_editable(editable_req: str) -> RequirementParts: │ │ ❱ 209 │ name, url, extras_override = parse_editable(editable_req) │ │ 210 │ │ │ 211 │ if name is not None: │ │ 212 │ │ try: │ │ │ │ ╭─────────────── locals ────────────────╮ │ │ │ editable_req = '--no-build-isolation' │ │ │ ╰───────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\req\constructors.py:126 in │ │ parse_editable │ │ │ │ 123 │ │ │ 124 │ if not link.is_vcs: │ │ 125 │ │ backends = ", ".join(vcs.all_schemes) │ │ ❱ 126 │ │ raise InstallationError( │ │ 127 │ │ │ f"{editable_req} is not a valid editable requirement. " │ │ 128 │ │ │ f"It should either be a path to a local project or a VCS URL " │ │ 129 │ │ │ f"(beginning with {backends})." │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ backends = 'bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, │ │ │ │ git+http, git'+135 │ │ │ │ editable_req = '--no-build-isolation' │ │ │ │ extras = None │ │ │ │ link = <Link --no-build-isolation> │ │ │ │ url = '--no-build-isolation' │ │ │ │ url_no_extras = '--no-build-isolation' │ │ │ │ version_control = 'svn' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ InstallationError: --no-build-isolation is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

Nucleon729 commented 4 months ago

I've added the path to the rep in the command line: pip3 install -e C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main --no-build-isolation -v --no-use-pep517 --debug

(py311) C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main>pip3 install -e C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main --no-build-isolation -v --no-use-pep517 --debug Using pip 24.0 from C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip (python 3.11) Obtaining file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main Running command python setup.py egg_info Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\setup.py", line 257, in ext_modules=get_extensions(), ^^^^^^^^^^^^^^^^ File "C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\setup.py", line 98, in get_extensions raise RuntimeError("Cannot find cutlass. Please run " RuntimeError: Cannot find cutlass. Please run git submodule update --init --recursive. error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. full command: 'C:\Users\Shadow\anaconda3\envs\py311\python.exe' -c ' exec(compile('"'"''"'"''"'"'

This is -- 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 = "" setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\setup.py'"'"',), "", "exec"))' egg_info --egg-base 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' cwd: C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\ Preparing metadata (setup.py) ... error ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\operations\build\metadata_l │ │ egacy.py:64 in generate_metadata │ │ │ │ 61 │ with build_env: │ │ 62 │ │ with open_spinner("Preparing metadata (setup.py)") as spinner: │ │ 63 │ │ │ try: │ │ ❱ 64 │ │ │ │ call_subprocess( │ │ 65 │ │ │ │ │ args, │ │ 66 │ │ │ │ │ cwd=source_dir, │ │ 67 │ │ │ │ │ command_desc="python setup.py egg_info", │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [ │ │ │ │ │ 'C:\Users\Shadow\anaconda3\envs\py311\python.exe', │ │ │ │ │ '-c', │ │ │ │ │ "\nexec(compile('''\n# This is -- a caller that │ │ │ │ pip uses to"+1247, │ │ │ │ │ 'egg_info', │ │ │ │ │ '--egg-base', │ │ │ │ │ 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' │ │ │ │ ] │ │ │ │ build_env = <pip._internal.build_env.NoOpBuildEnvironment object at 0x00000227FDCF92D0> │ │ │ │ details = 'from file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main' │ │ │ │ egg_info_dir = 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' │ │ │ │ isolated = False │ │ │ │ setup_py_path = 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\setup.py' │ │ │ │ source_dir = 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\' │ │ │ │ spinner = <pip._internal.cli.spinners.InteractiveSpinner object at 0x00000227FDD11110> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\utils\subprocess.py:224 in │ │ call_subprocess │ │ │ │ 221 │ │ │ │ │ extra={"markup": True}, │ │ 222 │ │ │ │ ) │ │ 223 │ │ │ │ │ ❱ 224 │ │ │ raise error │ │ 225 │ │ elif on_returncode == "warn": │ │ 226 │ │ │ subprocess_logger.warning( │ │ 227 │ │ │ │ 'Command "%s" had error code %s in %s', │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ all_output = [ │ │ │ │ │ 'Traceback (most recent call last):\n', │ │ │ │ │ ' File "", line 2, in \n', │ │ │ │ │ ' File "", line 34, in \n', │ │ │ │ │ ' File │ │ │ │ "C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\s… │ │ │ │ l'+21, │ │ │ │ │ ' ext_modules=get_extensions(),\n', │ │ │ │ │ ' ^^^^^^^^^^^^^^^^\n', │ │ │ │ │ ' File │ │ │ │ "C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\s… │ │ │ │ l'+26, │ │ │ │ │ ' raise RuntimeError("Cannot find cutlass. Please run "\n', │ │ │ │ │ 'RuntimeError: Cannot find cutlass. Please run `git submodule │ │ │ │ update --init --rec'+9 │ │ │ │ ] │ │ │ │ cmd = [ │ │ │ │ │ 'C:\Users\Shadow\anaconda3\envs\py311\python.exe', │ │ │ │ │ '-c', │ │ │ │ │ "\nexec(compile('''\n# This is -- a │ │ │ │ caller that pip uses to"+1247, │ │ │ │ │ 'egg_info', │ │ │ │ │ '--egg-base', │ │ │ │ │ │ │ │ │ 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' │ │ │ │ ] │ │ │ │ command_desc = 'python setup.py egg_info' │ │ │ │ cwd = 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\' │ │ │ │ env = { │ │ │ │ │ 'ALLUSERSPROFILE': 'C:\ProgramData', │ │ │ │ │ 'APPDATA': 'C:\Users\Shadow\AppData\Roaming', │ │ │ │ │ 'COMMONPROGRAMFILES': 'C:\Program Files\Common Files', │ │ │ │ │ 'COMMONPROGRAMFILES(X86)': 'C:\Program Files (x86)\Common │ │ │ │ Files', │ │ │ │ │ 'COMMONPROGRAMW6432': 'C:\Program Files\Common Files', │ │ │ │ │ 'COMPUTERNAME': 'SHADOW-R3F1D9LB', │ │ │ │ │ 'COMSPEC': 'C:\WINDOWS\system32\cmd.exe', │ │ │ │ │ 'CONDA_DEFAULT_ENV': 'py311', │ │ │ │ │ 'CONDA_EXE': 'C:\Users\Shadow\anaconda3\Scripts\conda.exe', │ │ │ │ │ 'CONDA_EXES': │ │ │ │ '"C:\Users\Shadow\anaconda3\condabin\..\Scripts\conda.exe" ', │ │ │ │ │ ... +45 │ │ │ │ } │ │ │ │ error = <InstallationSubprocessError(reference='subprocess-exited-with-error… │ │ │ │ message='[green]python setup.py egg_info[/] did not run │ │ │ │ successfully.\nexit code: 1', context=<text 'See above for output.' │ │ │ │ []>, note_stmt='This error originates from a subprocess, and is │ │ │ │ likely not a problem with pip.', hint_stmt=None)> │ │ │ │ extra_environ = None │ │ │ │ extra_ok_returncodes = [] │ │ │ │ line = '' │ │ │ │ log_failed_cmd = True │ │ │ │ log_subprocess = <bound method VerboseLogger.verbose of <VerboseLogger │ │ │ │ pip.subprocessor (VERBOSE)>> │ │ │ │ on_returncode = 'raise' │ │ │ │ output = 'Traceback (most recent call last):\n File "", line 2, in │ │ │ │ \n File'+470 │ │ │ │ proc = <Popen: returncode: 1 args: │ │ │ │ ['C:\Users\Shadow\anaconda3\envs\py311\pyt...> │ │ │ │ proc_had_error = True │ │ │ │ show_stdout = False │ │ │ │ showing_subprocess = True │ │ │ │ spinner = <pip._internal.cli.spinners.InteractiveSpinner object at │ │ │ │ 0x00000227FDD11110> │ │ │ │ stdout_only = False │ │ │ │ unset_environ = [] │ │ │ │ use_spinner = False │ │ │ │ used_level = 15 │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ InstallationSubprocessError: python setup.py egg_info exited with 1

The above exception was the direct cause of the following exception:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\Shadow\anaconda3\envs\py311\Scripts\pip3-script.py:9 in │ │ │ │ 6 │ │ 7 if name == 'main': │ │ 8 │ sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0]) │ │ ❱ 9 │ sys.exit(main()) │ │ 10 │ │ │ │ ╭────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ main = <function main at 0x00000227F9C9CF40> │ │ │ │ re = <module 're' from 'C:\Users\Shadow\anaconda3\envs\py311\Lib\re\init.py'> │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\main.py:79 in main │ │ │ │ 76 │ │ logger.debug("Ignoring error %s when setting locale", e) │ │ 77 │ command = create_command(cmd_name, isolated=("--isolated" in cmd_args)) │ │ 78 │ │ │ ❱ 79 │ return command.main(cmd_args) │ │ 80 │ │ │ │ ╭──────────────────────────────────────── locals ─────────────────────────────────────────╮ │ │ │ args = [ │ │ │ │ │ 'install', │ │ │ │ │ '-e', │ │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main', │ │ │ │ │ '--no-build-isolation', │ │ │ │ │ '-v', │ │ │ │ │ '--no-use-pep517', │ │ │ │ │ '--debug' │ │ │ │ ] │ │ │ │ cmd_args = [ │ │ │ │ │ '-e', │ │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main', │ │ │ │ │ '--no-build-isolation', │ │ │ │ │ '-v', │ │ │ │ │ '--no-use-pep517', │ │ │ │ │ '--debug' │ │ │ │ ] │ │ │ │ cmd_name = 'install' │ │ │ │ command = <pip._internal.commands.install.InstallCommand object at 0x00000227FD56FED0> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\base_command.py:101 in │ │ main │ │ │ │ 98 │ def main(self, args: List[str]) -> int: │ │ 99 │ │ try: │ │ 100 │ │ │ with self.main_context(): │ │ ❱ 101 │ │ │ │ return self._main(args) │ │ 102 │ │ finally: │ │ 103 │ │ │ logging.shutdown() │ │ 104 │ │ │ │ ╭────────────────────────────────────── locals ───────────────────────────────────────╮ │ │ │ args = [ │ │ │ │ │ '-e', │ │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main', │ │ │ │ │ '--no-build-isolation', │ │ │ │ │ '-v', │ │ │ │ │ '--no-use-pep517', │ │ │ │ │ '--debug' │ │ │ │ ] │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at 0x00000227FD56FED0> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\base_command.py:234 in │ │ _main │ │ │ │ 231 │ │ │ else: │ │ 232 │ │ │ │ run = self.run │ │ 233 │ │ │ │ rich_traceback.install(show_locals=True) │ │ ❱ 234 │ │ │ return run(options, args) │ │ 235 │ │ finally: │ │ 236 │ │ │ self.handle_pip_version_check(options) │ │ 237 │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ always_enabled_features = set() │ │ │ │ args = [] │ │ │ │ intercepts_unhandled_exc = <function Command._main..intercepts_unhandled_exc at │ │ │ │ 0x00000227FD93B240> │ │ │ │ level_number = 15 │ │ │ │ options = <Values at 0x227fa597510: {'help': None, 'debug_mode': True, │ │ │ │ 'isolated_mode': False, 'require_venv': False, 'python': None, │ │ │ │ 'verbose': 1, 'version': None, 'quiet': 0, 'log': None, │ │ │ │ 'no_input': False, 'keyring_provider': 'auto', 'proxy': '', │ │ │ │ 'retries': 5, 'timeout': 15, 'exists_action': [], │ │ │ │ 'trusted_hosts': [], 'cert': None, 'client_cert': None, │ │ │ │ 'cache_dir': 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, 'features_enabled': [], │ │ │ │ 'deprecated_features_enabled': [], 'requirements': [], │ │ │ │ 'constraints': [], 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': │ │ │ │ ['C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-ma… │ │ │ │ 'dry_run': False, 'target_dir': None, 'platforms': None, │ │ │ │ 'python_version': None, 'implementation': None, 'abis': None, │ │ │ │ 'use_user_site': False, 'root_path': None, 'prefix_path': None, │ │ │ │ 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-mai… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': False, │ │ │ │ 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, 'config_settings': None, │ │ │ │ 'global_options': None, 'compile': True, 'warn_script_location': │ │ │ │ True, 'warn_about_conflicts': True, 'format_control': │ │ │ │ FormatControl(set(), set()), 'prefer_binary': False, │ │ │ │ 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], 'no_index': │ │ │ │ False, 'find_links': [], 'json_report_file': None, 'no_clean': │ │ │ │ False}> │ │ │ │ run = <bound method with_cleanup..wrapper of │ │ │ │ <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x00000227FD56FED0>> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x00000227FD56FED0> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\cli\req_command.py:245 in │ │ wrapper │ │ │ │ 242 │ │ │ configure_tempdir_registry(self.tempdir_registry) │ │ 243 │ │ │ │ 244 │ │ try: │ │ ❱ 245 │ │ │ return func(self, options, args) │ │ 246 │ │ except PreviousBuildDirError: │ │ 247 │ │ │ # This kind of conflict can occur when the user passes an explicit │ │ 248 │ │ │ # build directory with a pre-existing folder. In that case we do │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [] │ │ │ │ configure_tempdir_registry = <function with_cleanup..configure_tempdir_registry at │ │ │ │ 0x00000227FDB98220> │ │ │ │ func = <function InstallCommand.run at 0x00000227FDB98180> │ │ │ │ options = <Values at 0x227fa597510: {'help': None, 'debug_mode': True, │ │ │ │ 'isolated_mode': False, 'require_venv': False, 'python': None, │ │ │ │ 'verbose': 1, 'version': None, 'quiet': 0, 'log': None, │ │ │ │ 'no_input': False, 'keyring_provider': 'auto', 'proxy': '', │ │ │ │ 'retries': 5, 'timeout': 15, 'exists_action': [], │ │ │ │ 'trusted_hosts': [], 'cert': None, 'client_cert': None, │ │ │ │ 'cache_dir': 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, 'features_enabled': [], │ │ │ │ 'deprecated_features_enabled': [], 'requirements': [], │ │ │ │ 'constraints': [], 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': │ │ │ │ ['C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-… │ │ │ │ 'dry_run': False, 'target_dir': None, 'platforms': None, │ │ │ │ 'python_version': None, 'implementation': None, 'abis': None, │ │ │ │ 'use_user_site': False, 'root_path': None, 'prefix_path': None, │ │ │ │ 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-m… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': False, │ │ │ │ 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, 'config_settings': None, │ │ │ │ 'global_options': None, 'compile': True, │ │ │ │ 'warn_script_location': True, 'warn_about_conflicts': True, │ │ │ │ 'format_control': FormatControl(set(), set()), 'prefer_binary': │ │ │ │ False, 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], 'no_index': │ │ │ │ False, 'find_links': [], 'json_report_file': None, 'no_clean': │ │ │ │ False}> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object at │ │ │ │ 0x00000227FD56FED0> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\commands\install.py:377 in │ │ run │ │ │ │ 374 │ │ │ │ │ 375 │ │ │ self.trace_basic_info(finder) │ │ 376 │ │ │ │ │ ❱ 377 │ │ │ requirement_set = resolver.resolve( │ │ 378 │ │ │ │ reqs, check_supported_wheels=not options.target_dir │ │ 379 │ │ │ ) │ │ 380 │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [] │ │ │ │ build_tracker = <pip._internal.operations.build.build_tracker.BuildTr… │ │ │ │ object at 0x00000227FDBCC590> │ │ │ │ directory = <repr-error 'Attempted to access deleted path: │ │ │ │ C:\Users\Shadow\AppData\Local\Temp\pip-install-… │ │ │ │ finder = <pip._internal.index.package_finder.PackageFinder │ │ │ │ object at 0x00000227FAB17110> │ │ │ │ global_options = [] │ │ │ │ installing_into_current_environment = True │ │ │ │ options = <Values at 0x227fa597510: {'help': None, 'debug_mode': │ │ │ │ True, 'isolated_mode': False, 'require_venv': False, │ │ │ │ 'python': None, 'verbose': 1, 'version': None, │ │ │ │ 'quiet': 0, 'log': None, 'no_input': False, │ │ │ │ 'keyring_provider': 'auto', 'proxy': '', 'retries': 5, │ │ │ │ 'timeout': 15, 'exists_action': [], 'trusted_hosts': │ │ │ │ [], 'cert': None, 'client_cert': None, 'cache_dir': │ │ │ │ 'c:\users\shadow\appdata\local\pip\cache', │ │ │ │ 'disable_pip_version_check': False, 'no_color': False, │ │ │ │ 'no_python_version_warning': False, │ │ │ │ 'features_enabled': [], 'deprecated_features_enabled': │ │ │ │ [], 'requirements': [], 'constraints': [], │ │ │ │ 'ignore_dependencies': False, 'pre': False, │ │ │ │ 'editables': │ │ │ │ ['C:\Users\Shadow\Downloads\stable-fast-main\sta… │ │ │ │ 'dry_run': False, 'target_dir': None, 'platforms': │ │ │ │ None, 'python_version': None, 'implementation': None, │ │ │ │ 'abis': None, 'use_user_site': False, 'root_path': │ │ │ │ None, 'prefix_path': None, 'src_dir': │ │ │ │ 'C:\Users\Shadow\Downloads\stable-fast-main\stab… │ │ │ │ 'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │ │ │ 'force_reinstall': None, 'ignore_installed': None, │ │ │ │ 'ignore_requires_python': None, 'build_isolation': │ │ │ │ False, 'use_pep517': False, 'check_build_deps': False, │ │ │ │ 'override_externally_managed': None, │ │ │ │ 'config_settings': None, 'global_options': None, │ │ │ │ 'compile': True, 'warn_script_location': True, │ │ │ │ 'warn_about_conflicts': True, 'format_control': │ │ │ │ FormatControl(set(), set()), 'prefer_binary': False, │ │ │ │ 'require_hashes': False, 'progress_bar': 'on', │ │ │ │ 'root_user_action': 'warn', 'index_url': │ │ │ │ 'https://pypi.org/simple', 'extra_index_urls': [], │ │ │ │ 'no_index': False, 'find_links': [], │ │ │ │ 'json_report_file': None, 'no_clean': False}> │ │ │ │ preparer = <pip._internal.operations.prepare.RequirementPreparer │ │ │ │ object at 0x00000227FA5A8710> │ │ │ │ req = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/st… │ │ │ │ editable=True> │ │ │ │ reqs = [ │ │ │ │ │ <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/st… │ │ │ │ editable=True> │ │ │ │ ] │ │ │ │ resolver = <pip._internal.resolution.resolvelib.resolver.Resolver │ │ │ │ object at 0x00000227FA596C10> │ │ │ │ self = <pip._internal.commands.install.InstallCommand object │ │ │ │ at 0x00000227FD56FED0> │ │ │ │ session = <pip._internal.network.session.PipSession object at │ │ │ │ 0x00000227FD56FB90> │ │ │ │ target_python = <pip._internal.models.target_python.TargetPython │ │ │ │ object at 0x00000227FDC4BDC0> │ │ │ │ target_temp_dir = None │ │ │ │ target_temp_dir_path = None │ │ │ │ upgrade_strategy = 'to-satisfy-only' │ │ │ │ wheel_cache = <pip._internal.cache.WheelCache object at │ │ │ │ 0x00000227FD56CE50> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\resol │ │ ver.py:76 in resolve │ │ │ │ 73 │ def resolve( │ │ 74 │ │ self, root_reqs: List[InstallRequirement], check_supported_wheels: bool │ │ 75 │ ) -> RequirementSet: │ │ ❱ 76 │ │ collected = self.factory.collect_root_requirements(root_reqs) │ │ 77 │ │ provider = PipProvider( │ │ 78 │ │ │ factory=self.factory, │ │ 79 │ │ │ constraints=collected.constraints, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ check_supported_wheels = True │ │ │ │ root_reqs = [ │ │ │ │ │ <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ ] │ │ │ │ self = <pip._internal.resolution.resolvelib.resolver.Resolver object at │ │ │ │ 0x00000227FA596C10> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\facto │ │ ry.py:534 in collect_root_requirements │ │ │ │ 531 │ │ │ │ else: │ │ 532 │ │ │ │ │ collected.constraints[name] = Constraint.from_ireq(ireq) │ │ 533 │ │ │ else: │ │ ❱ 534 │ │ │ │ reqs = list( │ │ 535 │ │ │ │ │ self._make_requirements_from_install_req( │ │ 536 │ │ │ │ │ │ ireq, │ │ 537 │ │ │ │ │ │ requested_extras=(), │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ collected = CollectedRootRequirements(requirements=[], constraints={}, user_requested={}) │ │ │ │ i = 0 │ │ │ │ ireq = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ root_ireqs = [ │ │ │ │ │ <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ ] │ │ │ │ self = <pip._internal.resolution.resolvelib.factory.Factory object at │ │ │ │ 0x00000227FA5A9190> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\facto │ │ ry.py:490 in _make_requirements_from_install_req │ │ │ │ 487 │ │ │ # available to find_candidates for explicit candidate lookup for any │ │ 488 │ │ │ # set of extras. │ │ 489 │ │ │ # The extras are required separately via a second requirement. │ │ ❱ 490 │ │ │ cand = self._make_base_candidate_from_link( │ │ 491 │ │ │ │ ireq.link, │ │ 492 │ │ │ │ template=install_req_drop_extras(ireq) if ireq.extras else ireq, │ │ 493 │ │ │ │ name=canonicalize_name(ireq.name) if ireq.name else None, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ ireq = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ requested_extras = () │ │ │ │ self = <pip._internal.resolution.resolvelib.factory.Factory object at │ │ │ │ 0x00000227FA5A9190> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\facto │ │ ry.py:207 in _make_base_candidate_from_link │ │ │ │ 204 │ │ if template.editable: │ │ 205 │ │ │ if link not in self._editable_candidate_cache: │ │ 206 │ │ │ │ try: │ │ ❱ 207 │ │ │ │ │ self._editable_candidate_cache[link] = EditableCandidate( │ │ 208 │ │ │ │ │ │ link, │ │ 209 │ │ │ │ │ │ template, │ │ 210 │ │ │ │ │ │ factory=self, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ link = <Link file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main> │ │ │ │ name = None │ │ │ │ self = <pip._internal.resolution.resolvelib.factory.Factory object at │ │ │ │ 0x00000227FA5A9190> │ │ │ │ template = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ version = None │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\candi │ │ dates.py:315 in init │ │ │ │ 312 │ │ name: Optional[NormalizedName] = None, │ │ 313 │ │ version: Optional[CandidateVersion] = None, │ │ 314 │ ) -> None: │ │ ❱ 315 │ │ super().init( │ │ 316 │ │ │ link=link, │ │ 317 │ │ │ source_link=link, │ │ 318 │ │ │ ireq=make_install_req_from_editable(link, template), │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ factory = <pip._internal.resolution.resolvelib.factory.Factory object at │ │ │ │ 0x00000227FA5A9190> │ │ │ │ link = <Link file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main> │ │ │ │ name = None │ │ │ │ self = EditableCandidate('file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fas… │ │ │ │ template = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ version = None │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\candi │ │ dates.py:156 in init │ │ │ │ 153 │ │ self._ireq = ireq │ │ 154 │ │ self._name = name │ │ 155 │ │ self._version = version │ │ ❱ 156 │ │ self.dist = self._prepare() │ │ 157 │ │ │ 158 │ def str(self) -> str: │ │ 159 │ │ return f"{self.name} {self.version}" │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ factory = <pip._internal.resolution.resolvelib.factory.Factory object at │ │ │ │ 0x00000227FA5A9190> │ │ │ │ ireq = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ link = <Link file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main> │ │ │ │ name = None │ │ │ │ self = EditableCandidate('file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-… │ │ │ │ source_link = <Link file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main> │ │ │ │ version = None │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\candi │ │ dates.py:222 in _prepare │ │ │ │ 219 │ │ │ 220 │ def _prepare(self) -> BaseDistribution: │ │ 221 │ │ try: │ │ ❱ 222 │ │ │ dist = self._prepare_distribution() │ │ 223 │ │ except HashError as e: │ │ 224 │ │ │ # Provide HashError the underlying ireq that caused it. This │ │ 225 │ │ │ # provides context for the resulting error message to show the │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ self = EditableCandidate('file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-ma… │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\resolution\resolvelib\candi │ │ dates.py:325 in _prepare_distribution │ │ │ │ 322 │ │ ) │ │ 323 │ │ │ 324 │ def _prepare_distribution(self) -> BaseDistribution: │ │ ❱ 325 │ │ return self._factory.preparer.prepare_editable_requirement(self._ireq) │ │ 326 │ │ 327 │ │ 328 class AlreadyInstalledCandidate(Candidate): │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ self = EditableCandidate('file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-ma… │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\operations\prepare.py:696 │ │ in prepare_editable_requirement │ │ │ │ 693 │ │ │ assert req.source_dir │ │ 694 │ │ │ req.download_info = direct_url_for_editable(req.unpacked_source_directory) │ │ 695 │ │ │ │ │ ❱ 696 │ │ │ dist = _get_prepared_distribution( │ │ 697 │ │ │ │ req, │ │ 698 │ │ │ │ self.build_tracker, │ │ 699 │ │ │ │ self.finder, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ req = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main editable=True> │ │ │ │ self = <pip._internal.operations.prepare.RequirementPreparer object at 0x00000227FA5A8710> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\operations\prepare.py:71 in │ │ _get_prepared_distribution │ │ │ │ 68 │ tracker_id = abstract_dist.build_tracker_id │ │ 69 │ if tracker_id is not None: │ │ 70 │ │ with build_tracker.track(req, tracker_id): │ │ ❱ 71 │ │ │ abstract_dist.prepare_distribution_metadata( │ │ 72 │ │ │ │ finder, build_isolation, check_build_deps │ │ 73 │ │ │ ) │ │ 74 │ return abstract_dist.get_metadata_distribution() │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ abstract_dist = <pip._internal.distributions.sdist.SourceDistribution object at │ │ │ │ 0x00000227FDCFAED0> │ │ │ │ build_isolation = False │ │ │ │ build_tracker = <pip._internal.operations.build.build_tracker.BuildTracker object at │ │ │ │ 0x00000227FDBCC590> │ │ │ │ check_build_deps = False │ │ │ │ finder = <pip._internal.index.package_finder.PackageFinder object at │ │ │ │ 0x00000227FAB17110> │ │ │ │ req = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main │ │ │ │ editable=True> │ │ │ │ tracker_id = 'file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\distributions\sdist.py:67 │ │ in prepare_distribution_metadata │ │ │ │ 64 │ │ │ │ self._raise_conflicts("the backend dependencies", conflicting) │ │ 65 │ │ │ if missing: │ │ 66 │ │ │ │ self._raise_missing_reqs(missing) │ │ ❱ 67 │ │ self.req.prepare_metadata() │ │ 68 │ │ │ 69 │ def _prepare_build_backend(self, finder: PackageFinder) -> None: │ │ 70 │ │ # Isolate in a BuildEnvironment and install the build-time │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ build_isolation = False │ │ │ │ check_build_deps = False │ │ │ │ finder = <pip._internal.index.package_finder.PackageFinder object at │ │ │ │ 0x00000227FAB17110> │ │ │ │ self = <pip._internal.distributions.sdist.SourceDistribution object at │ │ │ │ 0x00000227FDCFAED0> │ │ │ │ should_check_deps = False │ │ │ │ should_isolate = False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\req\req_install.py:585 in │ │ prepare_metadata │ │ │ │ 582 │ │ │ │ │ details=details, │ │ 583 │ │ │ │ ) │ │ 584 │ │ else: │ │ ❱ 585 │ │ │ self.metadata_directory = generate_metadata_legacy( │ │ 586 │ │ │ │ build_env=self.build_env, │ │ 587 │ │ │ │ setup_py_path=self.setup_py_path, │ │ 588 │ │ │ │ source_dir=self.unpacked_source_directory, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ details = 'from file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main' │ │ │ │ self = <InstallRequirement object: │ │ │ │ file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main editable=True> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\Shadow\anaconda3\envs\py311\Lib\site-packages\pip_internal\operations\build\metadata_l │ │ egacy.py:71 in generate_metadata │ │ │ │ 68 │ │ │ │ │ spinner=spinner, │ │ 69 │ │ │ │ ) │ │ 70 │ │ │ except InstallationSubprocessError as error: │ │ ❱ 71 │ │ │ │ raise MetadataGenerationFailed(package_details=details) from error │ │ 72 │ │ │ 73 │ # Return the .egg-info directory. │ │ 74 │ return _find_egg_info(egg_info_dir) │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ args = [ │ │ │ │ │ 'C:\Users\Shadow\anaconda3\envs\py311\python.exe', │ │ │ │ │ '-c', │ │ │ │ │ "\nexec(compile('''\n# This is -- a caller that │ │ │ │ pip uses to"+1247, │ │ │ │ │ 'egg_info', │ │ │ │ │ '--egg-base', │ │ │ │ │ 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' │ │ │ │ ] │ │ │ │ build_env = <pip._internal.build_env.NoOpBuildEnvironment object at 0x00000227FDCF92D0> │ │ │ │ details = 'from file:///C:/Users/Shadow/Downloads/stable-fast-main/stable-fast-main' │ │ │ │ egg_info_dir = 'C:\Users\Shadow\AppData\Local\Temp\pip-pip-egg-info-tkca7f1j' │ │ │ │ isolated = False │ │ │ │ setup_py_path = 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\setup.py' │ │ │ │ source_dir = 'C:\Users\Shadow\Downloads\stable-fast-main\stable-fast-main\' │ │ │ │ spinner = <pip._internal.cli.spinners.InteractiveSpinner object at 0x00000227FDD11110> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ MetadataGenerationFailed: metadata generation failed

Nucleon729 commented 4 months ago

All working. was not using the good CUDA version matching the requirements. All good!

thank you for your cooperation

cyandddd commented 3 months ago

i am using cuda 12.3 and it gave the same error. should i go back to 12.1? i thought it is backward compatible. how did you solve it!