luosiallen / Diff-Foley

Diff-Foley: Synchronized Video-to-Audio Synthesis with Latent Diffusion Models
Apache License 2.0
147 stars 15 forks source link

Inquiry about the environment requriements #17

Closed Danny-C-Auditore closed 4 months ago

Danny-C-Auditore commented 4 months ago

Collecting deform-conv  
Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 2
  ╰─> [65 lines of output]
      Collecting setuptools>=40.8.0
        Downloading setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
      Downloading setuptools-69.5.1-py3-none-any.whl (894 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━                 542.7/894.6 kB 5.8 kB/s eta 0:01:01
      ERROR: Exception:
      Traceback (most recent call last):
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
          yield
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
          data = self._fp_read(amt) if not fp_closed else b""
                 ^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
          return self._fp.read(amt) if amt is not None else self._fp.read()
                 ^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read
          data: bytes = self.__fp.read(amt)
                        ^^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/http/client.py", line 479, in read
          s = self.fp.read(amt)
              ^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/socket.py", line 707, in readinto
          return self._sock.recv_into(b)
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/ssl.py", line 1252, in recv_into
          return self.read(nbytes, buffer)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/ssl.py", line 1104, in read
          return self._sslobj.read(len, buffer)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      TimeoutError: The read operation timed out

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
          status = run_func(*args)
                   ^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
          return func(self, options, args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 377, in run
          requirement_set = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve
          self.factory.preparer.prepare_linked_requirements_more(reqs)
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 552, in prepare_linked_requirements_more
          self._complete_partial_requirements(
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 467, in _complete_partial_requirements
          for link, (filepath, _) in batch_download:
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/network/download.py", line 183, in __call__
          for chunk in chunks:
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
          for chunk in iterable:
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
          for chunk in response.raw.stream(
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
          data = self.read(amt=amt, decode_content=decode_content)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 560, in read
          with self._error_catcher():
        File "/x/miniconda3/lib/python3.12/contextlib.py", line 158, in __exit__
          self.gen.throw(value)
        File "/x/miniconda3/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
          raise ReadTimeoutError(self._pool, None, "Read timed out.")
      pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

When install the package deform-conv, it always went wrong, or it tells me, No module named 'Cython', even though this package has already been installed:

(base)XXX:/workspace$ pip install --use-pep517 deform-conv==0.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting deform-conv==0.0.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7d/8d/9f2ce9b86be46fdab86aaa1b25ad4b96e2b69d37d341576cbd6a34d56854/deform_conv-0.0.0.tar.gz (66 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/X/miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/X/miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/X/miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-b92gxup4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-b92gxup4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-b92gxup4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-b92gxup4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 3, in <module>
      ModuleNotFoundError: No module named 'Cython'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Thanks!

sivannavis commented 3 months ago

Hi, are you able to solve this? I'm having trouble with "deform-conv==0.0.0" every time I try to install the requirements.