In a Windows environment, the download failed when using pip install in the Python terminal.

61 views
Skip to first unread message

mengxing bai

unread,
Apr 2, 2025, 5:17:59 AMApr 2
to dv-users
(.venv) PS G:\event-camera\code\myevent1\pythonProject> pip  install dv-processing
Collecting dv-processing
  Using cached dv_processing-1.7.9.tar.gz (9.5 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
  ╰─> [50 lines of output]
      Using git hash
      Traceback (most recent call last):
        File "G:\event-camera\code\myevent1\pythonProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "G:\event-camera\code\myevent1\pythonProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "G:\event-camera\code\myevent1\pythonProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\23063\AppData\Local\Temp\pip-build-env-38u65yjy\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\23063\AppData\Local\Temp\pip-build-env-38u65yjy\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\23063\AppData\Local\Temp\pip-build-env-38u65yjy\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 208, in <module>
        File "<string>", line 199, in get_version
        File "C:\Users\23063\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 474, in check_output
          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
                 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     **kwargs).stdout
                     ^^^^^^^^^
        File "C:\Users\23063\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 556, in run
          with Popen(*popenargs, **kwargs) as process:
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\23063\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1038, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
          ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              pass_fds, cwd, env,
                              ^^^^^^^^^^^^^^^^^^^
          ...<5 lines>...
                              gid, gids, uid, umask,
                              ^^^^^^^^^^^^^^^^^^^^^^
                              start_new_session, process_group)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\23063\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1550, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                             ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
                                   # no special security
                                   ^^^^^^^^^^^^^^^^^^^^^
          ...<4 lines>...
                                   cwd,
                                   ^^^^
                                   startupinfo)
                                   ^^^^^^^^^^^^
      FileNotFoundError: [WinError 2]  The system cannot find the specified file.
      [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.

note: This error originates from a subprocess, and is likely not a problem with pip.
(.venv) PS G:\event-camera\code\myevent1\pythonProject>     

Luca Longinotti

unread,
Apr 2, 2025, 10:33:56 AMApr 2
to dv-u...@googlegroups.com
That's because it's trying to compile the dv-processing Python module from scratch and that won't work without a lot of very specific preparation.
Usually it should just download the pre-build binary on Windows, but we've only published those for Python up to version 3.11. So Python 3.12 and 3.13 are currently not supported.
We are working on an updated release. For now an easy woarkaround is to select an older Python version for your virtual environment.
-- 
Luca Longinotti (llongi)

Senior Software Engineer
iniVation AG - https://inivation.com/
A SynSense Group company
Reply all
Reply to author
Forward
0 new messages