Skip to content

Failed to build pyopendds #59

@wikihowconcepts

Description

@wikihowconcepts

Hi i tried the following method you suggested.But still facing the same issue.

set CMAKE_PREFIX_PATH=D:\OpenDDS\OpenDDS-3.25

C:\Users\1037591>cd pyopendds
C:\Users\1037591\pyopendds>pip install pyopendds

Defaulting to user installation because normal site-packages is not writeable

Collecting pyopendds

Using cached pyopendds-0.2.0.tar.gz (37 kB)

Installing build dependencies ... done

Getting requirements to build wheel ... done

Installing backend dependencies ... done

Preparing metadata (pyproject.toml) ... done

Collecting jinja2 (from pyopendds)

Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)

Collecting cmake-build-extension (from pyopendds)

Using cached cmake_build_extension-0.5.1-py3-none-any.whl (13 kB)

Collecting cmake (from cmake-build-extension->pyopendds)

Obtaining dependency information for cmake from https://files.pythonhosted.org/packages/d4/f3/cc82bb2ef5e9d3396007a18ce2c4b5fa57d37ff95e36174b478df6fc0918/cmake-3.27.5-py2.py3-none-win_amd64.whl.metadata

Using cached cmake-3.27.5-py2.py3-none-win_amd64.whl.metadata (6.8 kB)

Collecting ninja (from cmake-build-extension->pyopendds)

Using cached ninja-1.11.1-py2.py3-none-win_amd64.whl (313 kB)

Collecting GitPython (from cmake-build-extension->pyopendds)

Obtaining dependency information for GitPython from https://files.pythonhosted.org/packages/8a/7e/20f7e45878b5aed34320fbeeae8f78acc806e7bd708d00b1c6e64b016f5b/GitPython-3.1.37-py3-none-any.whl.metadata

Using cached GitPython-3.1.37-py3-none-any.whl.metadata (12 kB)

Collecting setuptools-scm (from cmake-build-extension->pyopendds)

Obtaining dependency information for setuptools-scm from https://files.pythonhosted.org/packages/ca/04/4ea91c627355ae6d976bf7f1fc2815372a96b1b87bf290c8d726d10a08a1/setuptools_scm-8.0.3-py3-none-any.whl.metadata

Using cached setuptools_scm-8.0.3-py3-none-any.whl.metadata (6.1 kB)

Collecting MarkupSafe>=2.0 (from jinja2->pyopendds)

Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/be/bb/08b85bc194034efbf572e70c3951549c8eca0ada25363afc154386b5390a/MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl.metadata

Using cached MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl.metadata (3.1 kB)

Collecting gitdb<5,>=4.0.1 (from GitPython->cmake-build-extension->pyopendds)

Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)

Collecting packaging>=20 (from setuptools-scm->cmake-build-extension->pyopendds)

Using cached packaging-23.1-py3-none-any.whl (48 kB)

Requirement already satisfied: setuptools in c:\users\1037591\appdata\roaming\python\python311\site-packages (from setuptools-scm->cmake-build-extension->pyopendds) (68.2.2)

Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython->cmake-build-extension->pyopendds)

Obtaining dependency information for smmap<6,>=3.0.1 from https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl.metadata

Using cached smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)

Using cached MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl (17 kB)

Using cached cmake-3.27.5-py2.py3-none-win_amd64.whl (34.6 MB)

Using cached GitPython-3.1.37-py3-none-any.whl (190 kB)

Using cached setuptools_scm-8.0.3-py3-none-any.whl (41 kB)

Using cached smmap-5.0.1-py3-none-any.whl (24 kB)

Building wheels for collected packages: pyopendds

Building wheel for pyopendds (pyproject.toml) ... error

error: subprocess-exited-with-error

× Building wheel for pyopendds (pyproject.toml) did not run successfully.

│ exit code: 1

╰─> [214 lines of output]

  ERROR setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section

  Traceback (most recent call last):

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools_scm\_integration\pyproject_reading.py", line 53, in read_pyproject

      section = defn.get("tool", {})[tool_name]

                ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^

  KeyError: 'setuptools_scm'



  The above exception was the direct cause of the following exception:



  Traceback (most recent call last):

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools_scm\_integration\setuptools.py", line 121, in infer_version

      config = _config.Configuration.from_file(dist_name=dist_name)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools_scm\_config.py", line 128, in from_file

      pyproject_data = _read_pyproject(name, _load_toml=_load_toml)

                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools_scm\_integration\pyproject_reading.py", line 55, in read_pyproject

      raise LookupError(f"{name} does not contain a tool.{tool_name} section") from e

  LookupError: pyproject.toml does not contain a tool.setuptools_scm section

  C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`

  !!



          ********************************************************************************

          The license_file parameter is deprecated, use license_files instead.



          By 2023-Oct-30, you need to update your project and remove deprecated calls

          or your builds will no longer be supported.



          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.

          ********************************************************************************



  !!

    parsed = self.parsers.get(option_name, lambda x: x)(value)

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-cpython-311

  creating build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\constants.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\DataReader.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\DataWriter.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\DomainParticipant.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\exceptions.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\init_opendds.py -> build\lib.win-amd64-cpython-311\pyopendds

 copying pyopendds\Publisher.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\Subscriber.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\Topic.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\util.py -> build\lib.win-amd64-cpython-311\pyopendds

  copying pyopendds\__init__.py -> build\lib.win-amd64-cpython-311\pyopendds

  creating build\lib.win-amd64-cpython-311\pyopendds\dev

  copying pyopendds\dev\util.py -> build\lib.win-amd64-cpython-311\pyopendds\dev

  copying pyopendds\dev\__init__.py -> build\lib.win-amd64-cpython-311\pyopendds\dev

  creating build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\ast.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\CppOutput.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\generate.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\itl.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\Output.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\PythonOutput.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\__init__.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  copying pyopendds\dev\itl2py\__main__.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py

  creating build\lib.win-amd64-cpython-311\pyopendds\dev\include

  creating build\lib.win-amd64-cpython-311\pyopendds\dev\include\pyopendds

  copying pyopendds\dev\include\pyopendds\common.hpp -> build\lib.win-amd64-cpython-311\pyopendds\dev\include\pyopendds

  copying pyopendds\dev\include\pyopendds\user.hpp -> build\lib.win-amd64-cpython-311\pyopendds\dev\include\pyopendds

  creating build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py\templates

  copying pyopendds\dev\itl2py\templates\CMakeLists.txt -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py\templates

  copying pyopendds\dev\itl2py\templates\setup.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py\templates

  copying pyopendds\dev\itl2py\templates\user.cpp -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py\templates

  copying pyopendds\dev\itl2py\templates\user.py -> build\lib.win-amd64-cpython-311\pyopendds\dev\itl2py\templates

  running build_ext

  -- The CXX compiler identification is GNU 8.3.0

  -- Detecting CXX compiler ABI info

  -- Detecting CXX compiler ABI info - done

  -- Check for working CXX compiler: C:/Strawberry/c/bin/c++.exe - skipped

  -- Detecting CXX compile features

  -- Detecting CXX compile features - done

  -- Found Python3: C:/Program Files/Python311/libs/python311.lib (found version "3.11.5") found components: Development Development.Module Development.Embed

  -- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.32.1")

  CMake Deprecation Warning at D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake:4 (cmake_minimum_required):

    Compatibility with CMake < 3.5 will be removed from a future version of

    CMake.



    Update the VERSION argument <min> value or use a ...<max> suffix to tell

    CMake that the project does not need compatibility with older versions.

  Call Stack (most recent call first):

    CMakeLists.txt:6 (find_package)





  CMake Deprecation Warning at D:/OpenDDS/OpenDDS-3.25/cmake/ace_group.cmake:4 (cmake_minimum_required):

    Compatibility with CMake < 3.5 will be removed from a future version of

    CMake.



    Update the VERSION argument <min> value or use a ...<max> suffix to tell

    CMake that the project does not need compatibility with older versions.

  Call Stack (most recent call first):

    D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake:12 (include)

    CMakeLists.txt:6 (find_package)





  CMake Deprecation Warning at D:/OpenDDS/OpenDDS-3.25/cmake/import_common.cmake:11 (cmake_minimum_required):

    Compatibility with CMake < 3.5 will be removed from a future version of

    CMake.



    Update the VERSION argument <min> value or use a ...<max> suffix to tell

    CMake that the project does not need compatibility with older versions.

  Call Stack (most recent call first):

    D:/OpenDDS/OpenDDS-3.25/cmake/ace_group.cmake:11 (include)

    D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake:12 (include)

    CMakeLists.txt:6 (find_package)





  --   The C compiler identification is GNU 8.3.0

  --   Detecting C compiler ABI info

  --   Detecting C compiler ABI info - done

  --   Check for working C compiler: C:/Strawberry/c/bin/gcc.exe - skipped

  --   Detecting C compile features

  --   Detecting C compile features - done

  --   Performing Test CMAKE_HAVE_LIBC_PTHREAD

  --   Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success

  --   Found Threads: TRUE

  CMake Deprecation Warning at D:/OpenDDS/OpenDDS-3.25/cmake/tao_group.cmake:4 (cmake_minimum_required):

    Compatibility with CMake < 3.5 will be removed from a future version of

    CMake.



    Update the VERSION argument <min> value or use a ...<max> suffix to tell

    CMake that the project does not need compatibility with older versions.

  Call Stack (most recent call first):

    D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake:13 (include)

    CMakeLists.txt:6 (find_package)





  CMake Error at D:/OpenDDS/OpenDDS-3.25/cmake/import_common.cmake:250 (message):

    Missing required dependencies ACE_LIBRARY

  Call Stack (most recent call first):

    D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake:202 (_opendds_found_required_deps)

    CMakeLists.txt:6 (find_package)





  CMake Error at CMakeLists.txt:6 (find_package):

    Found package configuration file:



      D:/OpenDDS/OpenDDS-3.25/cmake/OpenDDSConfig.cmake



    but it set OpenDDS_FOUND to FALSE so package "OpenDDS" is considered to be

    NOT FOUND.





  -- Configuring incomplete, errors occurred!



  ==> Configuring:

  $ cmake -S C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\pyopendds\ext -B C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\build\temp.win-amd64-cpython-311\Release__pyopendds -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\build\lib.win-amd64-cpython-311\_pyopendds -DCMAKE_MAKE_PROGRAM=C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Scripts\ninja.EXE -DPython3_ROOT_DIR=C:\Program Files\Python311 -DCALL_FROM_SETUP_PY:BOOL=ON -DPYOPENDDS_INCLUDE=C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\pyopendds\dev\include -DCMAKE_MAKE_PROGRAM=C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Scripts\ninja.EXE



  ==> Building:

  $ cmake --build C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\build\temp.win-amd64-cpython-311\Release__pyopendds --config Release



  ==> Installing:

  $ cmake --install C:\Users\1037591\AppData\Local\Temp\pip-install-yk3q9vy9\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\build\temp.win-amd64-cpython-311\Release__pyopendds



  Traceback (most recent call last):

    File "C:\Program Files\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>

      main()

    File "C:\Program Files\Python311\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:\Program Files\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel

      return _build_backend().build_wheel(wheel_directory, config_settings,

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\build_meta.py", line 434, in build_wheel

      return self._build_with_temp_dir(

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\build_meta.py", line 419, in _build_with_temp_dir

      self.run_setup()

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup

      exec(code, locals())

    File "<string>", line 19, in <module>

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup

      return distutils.core.setup(**attrs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup

      return run_commands(dist)

             ^^^^^^^^^^^^^^^^^^

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands

      dist.run_commands()

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands

      self.run_command(cmd)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command

      super().run_command(command)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command

      cmd_obj.run()

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\normal\Lib\site-packages\wheel\bdist_wheel.py", line 364, in run

      self.run_command("build")

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command

      self.distribution.run_command(command)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command

      super().run_command(command)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command

      cmd_obj.run()

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run

      self.run_command(cmd_name)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command

      self.distribution.run_command(command)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command

      super().run_command(command)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command

      cmd_obj.run()

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\cmake_build_extension\build_extension.py", line 113, in run

      self.build_extension(ext)

    File "C:\Users\1037591\AppData\Local\Temp\pip-build-env-ewu2s8xp\overlay\Lib\site-packages\cmake_build_extension\build_extension.py", line 229, in build_extension

      subprocess.check_call(configure_command)

    File "C:\Program Files\Python311\Lib\subprocess.py", line 413, in check_call

      raise CalledProcessError(retcode, cmd)

  subprocess.CalledProcessError: Command '['cmake', '-S', 'C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-install-yk3q9vy9\\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\\pyopendds\\ext', '-B', 'C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-install-yk3q9vy9\\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\\build\\temp.win-amd64-cpython-311\\Release__pyopendds', '-GNinja', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX:PATH=C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-install-yk3q9vy9\\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\\build\\lib.win-amd64-cpython-311\\_pyopendds', '-DCMAKE_MAKE_PROGRAM=C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-build-env-ewu2s8xp\\overlay\\Scripts\\ninja.EXE', '-DPython3_ROOT_DIR=C:\\Program Files\\Python311', '-DCALL_FROM_SETUP_PY:BOOL=ON', '-DPYOPENDDS_INCLUDE=C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-install-yk3q9vy9\\pyopendds_1f9a3e71e43b4fe7971dfa02aa9c2858\\pyopendds\\dev\\include', '-DCMAKE_MAKE_PROGRAM=C:\\Users\\1037591\\AppData\\Local\\Temp\\pip-build-env-ewu2s8xp\\overlay\\Scripts\\ninja.EXE']' 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 pyopendds

ERROR: Could not build wheels for pyopendds, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions