NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k stars 233 forks source link

pip install src/PytorchNvCodec failed:Unknown distribution option: 'cmake_install_dir' #558

Closed chenj133 closed 9 months ago

chenj133 commented 11 months ago

Describe the bug pip install src/PytorchNvCodec failed

To Reproduce

  1. PyNvCodec has been installed.
  2. pip install src/PytorchNvCodec.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots ![Uploading image.png…]()

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-d4i6h843/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-d4i6h843/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-d4i6h843/pip-egg-info
     cwd: /tmp/pip-req-build-d4i6h843/
Complete output (10 lines):
running egg_info
creating /tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info
writing /tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info/dependency_links.txt
writing requirements to /tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info/requires.txt
writing top-level names to /tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info/top_level.txt
writing manifest file '/tmp/pip-req-build-d4i6h843/pip-egg-info/PytorchNvCodec.egg-info/SOURCES.txt'
/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'cmake_install_dir'
  warnings.warn(msg)
error: package directory '../PytorchNvCodec' does not exist
----------------------------------------

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

chenj133 commented 11 months ago

image

chenj133 commented 11 months ago

image cmake version is 3.16.3