lipku / python_rtmpstream

python库,实现推送实时rtmp音视频流
MIT License
68 stars 20 forks source link

报错 #8

Open Tiandishihua opened 5 months ago

Tiandishihua commented 5 months ago

root@sd-server-01:~/avatar/rtmp_streaming/python# pip install . Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple Processing /root/avatar/rtmp_streaming/python Preparing metadata (setup.py) ... done Building wheels for collected packages: rtmp-streaming Building wheel for rtmp-streaming (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [67 lines of output] running bdist_wheel running build running build_ext Building with cfg = Release -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- pybind11 v2.12.0 dev1 -- Found PythonInterp: /opt/anaconda3/envs/python37/bin/python (Required is at least version "3.6") CMake Error at pybind11/tools/FindPythonLibsNew.cmake:163 (message): Python config failure:

  Call Stack (most recent call first):
    pybind11/tools/pybind11Tools.cmake:50 (find_package)
    pybind11/tools/pybind11Common.cmake:188 (include)
    pybind11/CMakeLists.txt:237 (include)

  -- Configuring incomplete, errors occurred!
  See also "/root/avatar/rtmp_streaming/python/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/root/avatar/rtmp_streaming/python/setup.py", line 125, in <module>
      setup(
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 79, in run
      _build_ext.run(self)
    File "/usr/lib/python3.10/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/usr/lib/python3.10/distutils/command/build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.10/distutils/command/build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "/root/avatar/rtmp_streaming/python/setup.py", line 113, in build_extension
      subprocess.check_call(
    File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/root/avatar/rtmp_streaming/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/avatar/rtmp_streaming/python/build/lib.linux-x86_64-3.10/', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_VERBOSE_MAKEFILE=ON', '-DEXAMPLE_VERSION_INFO=0.0.1', '-GNinja']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rtmp-streaming Running setup.py clean for rtmp-streaming Failed to build rtmp-streaming ERROR: Could not build wheels for rtmp-streaming, which is required to install pyproject.toml-based projects