-
Notifications
You must be signed in to change notification settings - Fork 233
Failing to pip install on Windows #507
Comments
I'm getting the same issue, when trying to |
It seems my issue was related to a space in the path. It seems @imdat1guy also has a space in his path ( Moving the directory to a path with no spaces solved my issue and I was able to install. |
I changed the path so that there's no spaces but I'm still facing issues. Seems like something goes wrong with CMake. Output: (ballspot311) E:\repos\VideoProcessingFramework>pip install . --verbose -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator--
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
|
I had the same error. I changed all the backslashes in my path to forward slashes and then it worked fine. Credit where it's due, the README does indeed use forward slashes, but I think we could be forgiven for defaulting to backslashes on windows. No clue why this occurs! |
Describe the bug
I am trying to pip install the library on windows 10 but it's failing and I'am not sure why.
To Reproduce
Steps to reproduce the behavior:
set SKBUILD_CONFIGURE_OPTIONS="-DTC_FFMPEG_ROOT=C:/path/to/your/ffmpeg/installation/ffmpeg/"
(ballspot311) E:\Passion Projects\AI\Football Machine Vision\testing stuff\VideoProcessingFramework>pip install . --verbose
Using pip 23.2.1 from C:\Users\PC\anaconda3\envs\ballspot311\Lib\site-packages\pip (python 3.11)
Processing e:\passion projects\ai\football machine vision\testing stuff\videoprocessingframework
Running command pip subprocess to install build dependencies
Ignoring ninja: markers 'platform_system != "Windows"' don't match your environment
Collecting setuptools>=42
Obtaining dependency information for setuptools>=42 from https://files.pythonhosted.org/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl.metadata
Using cached setuptools-68.0.0-py3-none-any.whl.metadata (6.4 kB)
Collecting scikit-build
Obtaining dependency information for scikit-build from https://files.pythonhosted.org/packages/fa/af/b3ef8fe0bb96bf7308e1f9d196fc069f0c75d9c74cfaad851e418cc704f4/scikit_build-0.17.6-py3-none-any.whl.metadata
Using cached scikit_build-0.17.6-py3-none-any.whl.metadata (14 kB)
Collecting numpy
Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/2f/2a/34fe0b64e78347f4ea128868df0034a97e0f92b476f62947b0976caba820/numpy-1.25.1-cp311-cp311-win_amd64.whl.metadata
Using cached numpy-1.25.1-cp311-cp311-win_amd64.whl.metadata (5.7 kB)
Collecting cmake>=3.21
Obtaining dependency information for cmake>=3.21 from https://files.pythonhosted.org/packages/78/cf/42d206fc2679902e9408688a6e75215215e7781faf88653b2738c599e70a/cmake-3.27.0-py2.py3-none-win_amd64.whl.metadata
Using cached cmake-3.27.0-py2.py3-none-win_amd64.whl.metadata (6.9 kB)
Collecting distro (from scikit-build)
Using cached distro-1.8.0-py3-none-any.whl (20 kB)
Collecting packaging (from scikit-build)
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting wheel>=0.32.0 (from scikit-build)
Obtaining dependency information for wheel>=0.32.0 from https://files.pythonhosted.org/packages/17/11/f139e25018ea2218aeedbedcf85cd0dd8abeed29a38ac1fda7f5a8889382/wheel-0.41.0-py3-none-any.whl.metadata
Using cached wheel-0.41.0-py3-none-any.whl.metadata (2.2 kB)
Using cached setuptools-68.0.0-py3-none-any.whl (804 kB)
Using cached scikit_build-0.17.6-py3-none-any.whl (84 kB)
Using cached numpy-1.25.1-cp311-cp311-win_amd64.whl (15.0 MB)
Using cached cmake-3.27.0-py2.py3-none-win_amd64.whl (34.6 MB)
Using cached wheel-0.41.0-py3-none-any.whl (64 kB)
Installing collected packages: cmake, wheel, setuptools, packaging, numpy, distro, scikit-build
Successfully installed cmake-3.27.0 distro-1.8.0 numpy-1.25.1 packaging-23.1 scikit-build-0.17.6 setuptools-68.0.0 wheel-0.41.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
:8: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Traceback (most recent call last):
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging\requirements.py", line 35, in init
parsed = _parse_requirement(requirement_string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging_parser.py", line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging_parser.py", line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging_parser.py", line 115, in _parse_requirement_details
marker = _parse_requirement_marker(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging_parser.py", line 147, in _parse_requirement_marker
tokenizer.raise_syntax_error(
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging_tokenizer.py", line 165, in raise_syntax_error
raise ParserSyntaxError(
setuptools.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after URL and whitespace)
PytorchNvCodec @ file://E:\Passion Projects\AI\Football Machine Vision\testing stuff\VideoProcessingFramework/src/PytorchNvCodec/
~~~~~~~~~~~~~~~~~~^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 290, in check_extras
list(itertools.starmap(_check_extra, value.items()))
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 306, in _check_extra
list(_reqs.parse(reqs))
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_vendor\packaging\requirements.py", line 37, in init
raise InvalidRequirement(str(e)) from e
setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after URL and whitespace)
PytorchNvCodec @ file://E:\Passion Projects\AI\Football Machine Vision\testing stuff\VideoProcessingFramework/src/PytorchNvCodec/
~~~~~~~~~~~~~~~~~~^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\PC\anaconda3\envs\ballspot311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\PC\anaconda3\envs\ballspot311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\anaconda3\envs\ballspot311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 21, in
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 488, in setup
) = _parse_setuptools_arguments(kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 207, in _parse_setuptools_arguments
dist = upstream_Distribution(setup_attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 486, in init
_Distribution.init(
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 283, in init
self.finalize_options()
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 925, in finalize_options
ep(self)
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 945, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "C:\Users\PC\AppData\Local\Temp\pip-build-env-u9u7ioss\overlay\Lib\site-packages\setuptools\dist.py", line 292, in check_extras
raise DistutilsSetupError(
distutils.errors.DistutilsSetupError: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
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.
full command: 'C:\Users\PC\anaconda3\envs\ballspot311\python.exe' 'C:\Users\PC\anaconda3\envs\ballspot311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py' get_requires_for_build_wheel 'C:\Users\PC\AppData\Local\Temp\tmpx9jnhtd8'
cwd: E:\Passion Projects\AI\Football Machine Vision\testing stuff\VideoProcessingFramework
Getting requirements to build wheel ... error
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.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: