Possible to build rti.connext package for 7.1 on Ubuntu 18?

4 posts / 0 new
Last post
Offline
Last seen: 2 months 5 days ago
Joined: 06/07/2023
Posts: 5
Possible to build rti.connext package for 7.1 on Ubuntu 18?

I have successfully built the Connext Python API package for version 7.0 under Ubuntu 18.04 (for, and using, Python 3.6.9).

I have successfully built the Connext Python API package for version 7.1 under Ubuntu 22.04 (for, and using, Python 3.10.5).

I have not been able to build version 7.1 under Ubuntu 18.04 using either version of Python. Later this year, we'll be upgrading the OS department-wide, but for now still mostly stuck on Ubuntu 18. The target for our project using Connext Python will be Ubuntu 22 but that environment is not widely available yet.

The output of the `pip wheel .` command (with Python 3.10.6)   aborts with the following:

      -- Found RTIConnextDDS: /home/mcowpert@na.jnj.com/rti_connext_dds-7.1.0 (found suitable version "7.1.0.0", minimum required is "7.1.0") found components: core
      CMake Error at /tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
        Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development.Module)
        (found suitable exact version "3.10.6")
      Call Stack (most recent call first):
        /tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
        /tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython/Support.cmake:3824 (find_package_handle_standard_args)
        /tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython3.cmake:545 (include)
        connextdds/CMakeLists.txt:8 (find_package)
      
      
      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "/home/mcowpert@na.jnj.com/src/venv/rti_p3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/home/mcowpert@na.jnj.com/src/venv/rti_p3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/mcowpert@na.jnj.com/src/venv/rti_p3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 434, in build_wheel
          return self._build_with_temp_dir(
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 260, in <module>
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 364, in run
          self.run_command("build")
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 224, in run
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/cmake/data/bin/cmake', '/home/mcowpert@na.jnj.com/src/connextdds-py/modules', '-DBUILD_SHARED_LIBS=ON', '-DCONNEXTDDS_DIR=/home/mcowpert@na.jnj.com/rti_connext_dds-7.1.0', '-DCONNEXTDDS_ARCH=x64Linux4gcc7.3.0', '-DCMAKE_BUILD_TYPE=Release', '-Dpybind11_DIR=/tmp/pip-build-env-ry6sj2uo/overlay/lib/python3.10/site-packages/pybind11/share/cmake/pybind11', '-DRTI_PYTHON_MAJOR_VERSION=3', '-DRTI_PYTHON_MINOR_VERSION=10', '-DRTI_PLATFORM_DIR=/home/mcowpert@na.jnj.com/src/connextdds-py/platform/x64Linux4gcc7.3.0', '-DCMAKE_PREFIX_PATH=/home/mcowpert@na.jnj.com/src/connextdds-py/platform/x64Linux4gcc7.3.0', '-DRTI_CONNEXTDDS_LIBRARY_OUTPUT_DIRECTORY=/home/mcowpert@na.jnj.com/src/connextdds-py/build/lib.linux-x86_64-cpython-310/rti', '-DRTI_LOGGING_DISTLOG_LIBRARY_OUTPUT_DIRECTORY=/home/mcowpert@na.jnj.com/src/connextdds-py/build/lib.linux-x86_64-cpython-310/rti/logging', '-DRTI_REQUEST__UTIL_NATIVE_LIBRARY_OUTPUT_DIRECTORY=/home/mcowpert@na.jnj.com/src/connextdds-py/build/lib.linux-x86_64-cpython-310/rti/request', '-DRTI_LINK_OPTIMIZATIONS_ON=1']' returned non-zero exit status 1.

 

Keywords:
maxx's picture
Offline
Last seen: 8 months 6 days ago
Joined: 08/26/2020
Posts: 9

Hi Michael,

Does the Simple Installation work?

As you have access to the RTI Support, it may be best to file a support case. They can attempt to recreate the issue on your specific platform. Otherwise, I will reach out to you directly to follow up. 

Thanks,

Maxx

 

Offline
Last seen: 2 months 5 days ago
Joined: 06/07/2023
Posts: 5

The failures I encountered *are* from "Simple Installation."

However, my co-worker noticed that in fact, RTI 7.1 library installation provides the wheel files for Python 3.6 through 3.10. This solves my problem, so good.

Consider updating the Simple Installation page to direct users to those wheels instead of running them through build instructions.

maxx's picture
Offline
Last seen: 8 months 6 days ago
Joined: 08/26/2020
Posts: 9

Hi Michael,

Were you able to run 'pip install .' without specifically building the wheel? In any case, it's something to look into. Glad you were able to use those wheel files intended for tools support.

Future releases will provide a pre-built pip distribution.

Maxx