Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic_idl_DIR=$(realpath ..) pip install . - MacOS (Error) #28

Open
Danny875 opened this issue Oct 11, 2021 · 28 comments
Open

basic_idl_DIR=$(realpath ..) pip install . - MacOS (Error) #28

Danny875 opened this issue Oct 11, 2021 · 28 comments

Comments

@Danny875
Copy link

Hi,

I have tried given the real path to the "basic_output" directory, as you indicated, but it still doesn't work. After I typed the following command:

basic_idl_DIR=/Users/dannyguest/Downloads/pyopendds/tests/basic_test/build/basic_output pip install .

The error that I'm getting is the following:

Processing /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Requirement already satisfied: pyopendds in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pybasic==0.0.0) (0.1.0)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyopendds->pybasic==0.0.0) (3.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from jinja2->pyopendds->pybasic==0.0.0) (2.0.1)
Building wheels for collected packages: pybasic
  Building wheel for pybasic (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-wheel-pgva0ptj
       cwd: /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/
  Complete output (38 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-universal2-3.10
  creating build/lib.macosx-10.9-universal2-3.10/pybasic
  copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
  creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
  copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
  running build_ext
  -- The CXX compiler identification is AppleClang 13.0.0.13000029
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 (found suitable exact version "3.10.0") found components: Development Development.Module Development.Embed
  CMake Error at CMakeLists.txt:10 (find_package):
    By not providing "FindOpenDDS.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "OpenDDS", but
    CMake did not find one.
  
    Could not find a package configuration file provided by "OpenDDS" with any
    of the following names:
  
      OpenDDSConfig.cmake
      opendds-config.cmake
  
    Add the installation prefix of "OpenDDS" to CMAKE_PREFIX_PATH or set
    "OpenDDS_DIR" to a directory containing one of the above files.  If
    "OpenDDS" provides a separate development package or SDK, be sure it has
    been installed.
  
  
  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeOutput.log".
  See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeError.log".
  error: "cmake /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
  ----------------------------------------
  ERROR: Failed building wheel for pybasic
  Running setup.py clean for pybasic
Failed to build pybasic
Installing collected packages: pybasic
    Running setup.py install for pybasic ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-zbf3oepc/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic
         cwd: /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/
    Complete output (38 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/pybasic
    copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
    creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    running build_ext
    -- The CXX compiler identification is AppleClang 13.0.0.13000029
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 (found suitable exact version "3.10.0") found components: Development Development.Module Development.Embed
    CMake Error at CMakeLists.txt:10 (find_package):
      By not providing "FindOpenDDS.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "OpenDDS", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "OpenDDS" with any
      of the following names:
    
        OpenDDSConfig.cmake
        opendds-config.cmake
    
      Add the installation prefix of "OpenDDS" to CMAKE_PREFIX_PATH or set
      "OpenDDS_DIR" to a directory containing one of the above files.  If
      "OpenDDS" provides a separate development package or SDK, be sure it has
      been installed.
    
    
    -- Configuring incomplete, errors occurred!
    See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeOutput.log".
    See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeError.log".
    error: "cmake /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-q0r5nh6_/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-zbf3oepc/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic Check the logs for full command output.

Is there any fix for this issue?

Thank you very much!

@iguessthislldo
Copy link
Member

I think I told you the wrong thing in #27. I meant to say "replace $(realpath ..) in the command with the path to build" since that is the .. from basic_output. So try: basic_idl_DIR=/Users/dannyguest/Downloads/pyopendds/tests/basic_test/build pip install .

@Danny875
Copy link
Author

Danny875 commented Oct 11, 2021

I have just tried it and unfortunately I'm still getting an error:

145-2-173-42:basic_output dannydragoi$ basic_idl_DIR=/Users/dannyguest/Downloads/pyopendds/tests/basic_test/build pip install .
Processing /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Requirement already satisfied: pyopendds in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pybasic==0.0.0) (0.1.0)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyopendds->pybasic==0.0.0) (3.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from jinja2->pyopendds->pybasic==0.0.0) (2.0.1)
Building wheels for collected packages: pybasic
  Building wheel for pybasic (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-wheel-5wqg0k1o
       cwd: /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/
  Complete output (43 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-universal2-3.10
  creating build/lib.macosx-10.9-universal2-3.10/pybasic
  copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
  creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
  copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
  running build_ext
  -- The CXX compiler identification is AppleClang 13.0.0.13000029
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 (found suitable exact version "3.10.0") found components: Development Development.Module Development.Embed
  -- Looking for C++ include pthread.h
  -- Looking for C++ include pthread.h - found
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  CMake Error at CMakeLists.txt:11 (find_package):
    By not providing "Findbasic_idl.cmake" in CMAKE_MODULE_PATH this project
    has asked CMake to find a package configuration file provided by
    "basic_idl", but CMake did not find one.
  
    Could not find a package configuration file provided by "basic_idl" with
    any of the following names:
  
      basic_idlConfig.cmake
      basic_idl-config.cmake
  
    Add the installation prefix of "basic_idl" to CMAKE_PREFIX_PATH or set
    "basic_idl_DIR" to a directory containing one of the above files.  If
    "basic_idl" provides a separate development package or SDK, be sure it has
    been installed.
  
  
  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeOutput.log".
  See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeError.log".
  error: "cmake /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
  ----------------------------------------
  ERROR: Failed building wheel for pybasic
  Running setup.py clean for pybasic
Failed to build pybasic
Installing collected packages: pybasic
    Running setup.py install for pybasic ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-ees_dbjv/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic
         cwd: /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/
    Complete output (43 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/pybasic
    copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
    creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    running build_ext
    -- The CXX compiler identification is AppleClang 13.0.0.13000029
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 (found suitable exact version "3.10.0") found components: Development Development.Module Development.Embed
    -- Looking for C++ include pthread.h
    -- Looking for C++ include pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    CMake Error at CMakeLists.txt:11 (find_package):
      By not providing "Findbasic_idl.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "basic_idl", but CMake did not find one.
    
      Could not find a package configuration file provided by "basic_idl" with
      any of the following names:
    
        basic_idlConfig.cmake
        basic_idl-config.cmake
    
      Add the installation prefix of "basic_idl" to CMAKE_PREFIX_PATH or set
      "basic_idl_DIR" to a directory containing one of the above files.  If
      "basic_idl" provides a separate development package or SDK, be sure it has
      been installed.
    
    
    -- Configuring incomplete, errors occurred!
    See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeOutput.log".
    See also "/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeError.log".
    error: "cmake /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"'; __file__='"'"'/private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-req-build-429yfnvg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-ees_dbjv/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic Check the logs for full command output.

@Danny875
Copy link
Author

Hi Fred,

Do you have any updates?

Thank you in advance!

@iguessthislldo
Copy link
Member

I don't see anything wrong with the command, so does basic_idlConfig.cmake exist in the build directory? It lists two that it's looking for, but basic_idlConfig.cmake is apparently the one that should be created when CMake is ran.

@Danny875
Copy link
Author

Danny875 commented Oct 16, 2021

Yes, the basic_idlConfig.cmakeexists in the build directory. Instead, I tried executing this command without pip install basic_idl_DIR=/Users/dannyguest/Downloads/pyopendds/tests/basic_test/build and there were no errors, but when I tried to execute the next two command to test the example, I encountered the following error:

145-2-173-31:~ dannydragoi$ cd /Users/dannydragoi/Downloads/OpenDDS-3.18 
145-2-173-31:OpenDDS-3.18 dannydragoi$ source setenv.sh
145-2-173-31:OpenDDS-3.18 dannydragoi$ cd /Users/dannydragoi/Downloads/pyopendds-master 
145-2-173-31:pyopendds-master dannydragoi$ cd tests/basic_test
145-2-173-31:basic_test dannydragoi$ 
145-2-173-31:basic_test dannydragoi$ mkdir build
mkdir: build: File exists
145-2-173-31:basic_test dannydragoi$ cd build
145-2-173-31:build dannydragoi$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
145-2-173-31:build dannydragoi$ make
Consolidate compiler generated dependencies of target basic_idl
[ 77%] Built target basic_idl
Consolidate compiler generated dependencies of target publisher
[100%] Built target publisher
145-2-173-31:build dannydragoi$ itl2py -o basic_output basic_idl basic.itl
145-2-173-31:build dannydragoi$ cd basic_output
145-2-173-31:basic_output dannydragoi$ basic_idl_DIR=/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build 
145-2-173-31:basic_output dannydragoi$ cd ../..
145-2-173-31:basic_test dannydragoi$ bash run_test.sh
Traceback (most recent call last):
  File "/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/subscriber.py", line 6, in <module>
    from pybasic.basic import Reading
ModuleNotFoundError: No module named 'pybasic'
Wating for Subscriber...
Error: Timedout waiting for subscriber
Publisher exited with status 1
Subscriber exited with status 1

What could be the issue?

@iguessthislldo
Copy link
Member

iguessthislldo commented Oct 16, 2021

Running pip install on the result of itl2py is what is supposed to make pybasic available to Python, so if skipping that caused it to complain about pybasic being missing, then it isn't surprising to me. I can't recreate this because it doesn't do this on my Linux machine and I don't have access to macOS at the moment to try it there.

This is a guess, but maybe can't see it basic_idl_DIR environment variable? I can't see how else this would be happening. I couldn't find anything in the find_package CMake documentation that said it acts any different under macOS. Since I can't recreate this, I'd like you to try these steps so I can get some more info:

  1. Add these lines after project(_pybasic CXX) and before the find_package lines in basic_output/CmakeLists.txt. This will tell use what things look like from CMake's perspective.
message("HEY! basic_idl_DIR environment variables is $ENV{basic_idl_DIR}")
message("HEY! basic_idl_DIR cmake variables is ${basic_idl_DIR}")
  1. Completely replace setup.py in basic_output with the following lines. This will tell some info about things from the python script and has a possible workaround I will explain in step 4.
from setuptools import setup, find_packages
from pathlib import Path
import os

from pyopendds.dev.cmake import \
    CMakeWrapperExtension, CMakeWrapperBuild, get_include_path

extra_vars={
    'PYOPENDDS_INCLUDE': get_include_path(),
}

def file_status(what, method, path):
  print('HEY! {} (from {}) is {}: it does {}exist'.format(
    what, method, repr(str(path)), '' if path.exists() else 'NOT '))
  return path if path.exists() else None

def method_status(method, basic_idl_dir):
  if basic_idl_dir is None:
    print('HEY! basic_idl_dir from', method, 'is None')
    return
  basic_idl_dir = Path(basic_idl_dir)
  d = file_status('basic_idl_dir', method, basic_idl_dir)
  if d is not None:
    basic_idl_config = basic_idl_dir / 'basic_idlConfig.cmake'
    if file_status('basic_idl_config', method, basic_idl_config) is not None:
      return d
  return None
  
method_status("environment", os.environ.get('basic_idl_DIR', None))
cmake_var = method_status("__file__", Path(__file__).resolve().parent.parent)
if cmake_var is not None:
    extra_vars['basic_idl_DIR'] = str(cmake_var)

setup(
    name='pybasic',
    packages=find_packages(),
    ext_modules=[CMakeWrapperExtension(
        name='_pybasic',
        cmakelists_dir='.',
        extra_vars=extra_vars,
    )],
    cmdclass={'build_ext': CMakeWrapperBuild},
    install_requires=[
        'pyopendds',
    ],
)
  1. Run the same basic_idl_DIR=.../build pip install . command in basic_output as before and post the result. This should tell us if CMake is actually getting the basic_idl_DIR environment variable.

  2. If the first basic_idl_DIR message from CMake is blank, then there might be a workaround that I put in setup.py that I mentioned before. Try running python3 setup.py and post what it prints to the screen. This is what pip actually runs internally but this makes sure it's run in place so it can see the contents of the build directory. So we don't have to pass that information manually and in addition to that it passes it more directly to CMake.

@Danny875
Copy link
Author

The errors encountered after making the changes mentioned in step 1 and step 2 and after executing step 3 are shown below:

145-2-173-31:basic_output dannydragoi$ basic_idl_DIR=/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build pip install . 
Processing /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pyopendds in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pybasic==0.0.0) (0.1.0)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyopendds->pybasic==0.0.0) (3.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from jinja2->pyopendds->pybasic==0.0.0) (2.0.1)
Building wheels for collected packages: pybasic
  Building wheel for pybasic (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-wheel-o1xljpg3
       cwd: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/
  Complete output (33 lines):
  HEY! basic_idl_dir (from environment) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build': it does exist
  HEY! basic_idl_config (from environment) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_idlConfig.cmake': it does exist
  HEY! basic_idl_dir (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build': it does exist
  HEY! basic_idl_config (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_idlConfig.cmake': it does exist
  running bdist_wheel
  running build
  running build_py
  running build_ext
  HEY! basic_idl_DIR environment variables is /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
  HEY! basic_idl_DIR cmake variables is /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/temp.macosx-10.9-universal2-3.10
  Consolidate compiler generated dependencies of target _pybasic
  [ 50%] Building CXX object CMakeFiles/_pybasic.dir/_pybasic.cpp.o
  In file included from /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/_pybasic.cpp:1:
  /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:33:12: error: '_typeobject' is not polymorphic
      return dynamic_cast<PyObject*>(&PyLong_Type);
             ^                       ~~~~~~~~~~~~
  /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:93:12: error: '_typeobject' is not polymorphic
      return dynamic_cast<PyObject*>(&PyUnicode_Type);
             ^                       ~~~~~~~~~~~~~~~
  /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:245:5: error: 'topic_types_' is a private member of 'pyopendds::TopicTypeBase'
      topic_types_.insert(TopicTypes::value_type(Type<IdlType>::get_python_class(), type));
      ^
  /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:144:21: note: declared private here
    static TopicTypes topic_types_;
                      ^
  3 errors generated.
  make[2]: *** [CMakeFiles/_pybasic.dir/_pybasic.cpp.o] Error 1
  make[1]: *** [CMakeFiles/_pybasic.dir/all] Error 2
  make: *** [all] Error 2
  error: "cmake --build . --config Debug" returned non-zero result: 2
  ----------------------------------------
  ERROR: Failed building wheel for pybasic
  Running setup.py clean for pybasic
Failed to build pybasic
Installing collected packages: pybasic
  Attempting uninstall: pybasic
    Found existing installation: pybasic 0.31.dev0
    Uninstalling pybasic-0.31.dev0:
      Successfully uninstalled pybasic-0.31.dev0
    Running setup.py install for pybasic ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-smbunaf9/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic
         cwd: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/
    Complete output (50 lines):
    HEY! basic_idl_dir (from environment) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build': it does exist
    HEY! basic_idl_config (from environment) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_idlConfig.cmake': it does exist
    HEY! basic_idl_dir (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build': it does exist
    HEY! basic_idl_config (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_idlConfig.cmake': it does exist
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/pybasic
    copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
    creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    running build_ext
    -- The CXX compiler identification is AppleClang 13.0.0.13000029
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    HEY! basic_idl_DIR environment variables is /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
    HEY! basic_idl_DIR cmake variables is /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
    -- Found Python3: /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 (found suitable exact version "3.10.0") found components: Development Development.Module Development.Embed
    -- Looking for C++ include pthread.h
    -- Looking for C++ include pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/temp.macosx-10.9-universal2-3.10
    [ 50%] Building CXX object CMakeFiles/_pybasic.dir/_pybasic.cpp.o
    In file included from /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/_pybasic.cpp:1:
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:33:12: error: '_typeobject' is not polymorphic
        return dynamic_cast<PyObject*>(&PyLong_Type);
               ^                       ~~~~~~~~~~~~
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:93:12: error: '_typeobject' is not polymorphic
        return dynamic_cast<PyObject*>(&PyUnicode_Type);
               ^                       ~~~~~~~~~~~~~~~
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:245:5: error: 'topic_types_' is a private member of 'pyopendds::TopicTypeBase'
        topic_types_.insert(TopicTypes::value_type(Type<IdlType>::get_python_class(), type));
        ^
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include/pyopendds/user.hpp:144:21: note: declared private here
      static TopicTypes topic_types_;
                        ^
    3 errors generated.
    make[2]: *** [CMakeFiles/_pybasic.dir/_pybasic.cpp.o] Error 1
    make[1]: *** [CMakeFiles/_pybasic.dir/all] Error 2
    make: *** [all] Error 2
    error: "cmake --build . --config Debug" returned non-zero result: 2
    ----------------------------------------
  Rolling back uninstall of pybasic
  Moving to /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pybasic-0.31.dev0.dist-info/
   from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/~ybasic-0.31.dev0.dist-info
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-smbunaf9/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic Check the logs for full command output.

After executing python3 setup.py command from step 4, the following error was shown:

145-2-173-31:basic_output dannydragoi$ python3 setup.py
HEY! basic_idl_dir from environment is None
HEY! basic_idl_dir (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build': it does exist
HEY! basic_idl_config (from __file__) is '/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_idlConfig.cmake': it does exist
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

What I noticed is that after executing itl2py -o basic_output basic_idl basic.itl, both setup.py and CMakeLists.txt have been modified to the initial content. So what I did was to add the changes you mentioned after running this command, so that it doesn't get modified.

@iguessthislldo
Copy link
Member

After executing python3 setup.py command from step 4, the following error was shown:

Sorry, I made a mistake with telling you what command to run again. It should have been python3 setup.py install, but since the pip command got further this time for some reason, I think we can focus on the errors it made.

So I haven't compiled PyOpenDDS with clang before today. I was able to reproduce them locally and I have pushed a fix for them.

Also in this comit I made changes to itl2py so it will try to take care of the basic_idl_DIR automatically, so it doesn't have to be passed in anymore.

If you get the latest changes in the repo, reinstall pyopendds from that, and regenerate basic_output, then it should work this time (hopefully).

@Danny875
Copy link
Author

I tested it again with the new version and I had no errors until I run the last command: bash run_test.sh, which generated the following error:

Dannys-MacBook-Pro:basic_test dannydragoi$ bash run_test.sh
Wating for Subscriber...
(1511|4585045504) TransportRegistry::create_inst: transport_type=rtps_udp is not registered.
(1511|4585045504) NOTICE: not using file configuration - no configuration file specified.
(1511|4585045504) NOTICE: Service_Participant::get_domain_participant_factory - This is OpenDDS 3.18.0 using ACE 7.0.3
(1511|4585045504) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(1511|4585045504) ERROR: Service_Participant::load_discovery_configuration(): Unable to load libraries for rtps_discovery
(1511|4585045504) ERROR: Service_Participant::get_Discovery failed attempt to load default RTPS discovery for domain 34.
(1511|4585045504) ERROR: DomainParticipantImpl::enable, no discovery found for domain id: 34.
(1511|4585045504) ERROR: DomainParticipantFactoryImpl::create_participant, unable to enable DomainParticipant.
Failed to Create Participant
Exception ignored in: <function DomainParticipant.__del__ at 0x10d321480>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/DomainParticipant.py", line 22, in __del__
    participant_cleanup(self)
TypeError: Python object does not have a valid capsule pointer
(1511|4585045504) DomainParticipantFactoryImpl::~DomainParticipantFactoryImpl()
(1511|4585045504) Service_Participant::~Service_Participant()
Error: Timedout waiting for subscriber
Publisher exited with status 1
Subscriber exited with status 1

@iguessthislldo
Copy link
Member

Alright, this is progress. The actual problem is this because the rest of the errors in the log would be caused by it:

(1511|4585045504) TransportRegistry::create_inst: transport_type=rtps_udp is not registered.

So this means the OpenDDS core library couldn't find or load the rtps_udp library for some reason. This could happen because the libOpenDDS_Rtps_Udp library is missing or if OpenDDS was configured with --static, which PyOpenDDS could be changed to handle, but doesn't at the moment.

If you didn't pass --static to configure, I'd check to make sure the libOpenDDS_Rtps_Udp was built. It should be in $DDS_ROOT/lib/libOpenDDS_Rtps_Udp.dylib (or something like that). If it's not, then there might have been an error while building OpenDDS that you missed.

@Danny875
Copy link
Author

I have tried to configure again OpenDDS with and without the --static and the same error appeared. I also checked if libOpenDDS_Rtps_Udp.dylib is present in the directory you mentioned and it is indeed there in both cases.

What could be wrong?

@iguessthislldo
Copy link
Member

In basic_test/build, can you run the C++ publisher without issue?

./publisher -DCPSConfigFile ../rtps.ini -DCPSDebugLevel 1

@Danny875
Copy link
Author

Yes, it seems that there are no issues listed when running ./publisher -DCPSConfigFile ../rtps.ini -DCPSDebugLevel 1 in basic_test/build.

This is the output:

145-2-173-224:~ dannydragoi$ cd /Users/dannydragoi/Downloads/OpenDDS-3.18 
145-2-173-224:OpenDDS-3.18 dannydragoi$ source setenv.sh
145-2-173-224:OpenDDS-3.18 dannydragoi$ cd /Users/dannydragoi/Downloads/pyopendds-master 
145-2-173-224:pyopendds-master dannydragoi$ cd tests/basic_test
145-2-173-224:basic_test dannydragoi$ mkdir build
mkdir: build: File exists
145-2-173-224:basic_test dannydragoi$ cd build
145-2-173-224:build dannydragoi$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build
145-2-173-224:build dannydragoi$ make
Consolidate compiler generated dependencies of target basic_idl
[ 77%] Built target basic_idl
Consolidate compiler generated dependencies of target publisher
[100%] Built target publisher
145-2-173-224:build dannydragoi$ ./publisher -DCPSConfigFile ../rtps.ini -DCPSDebugLevel 1
(3898|4545121792) NOTICE: using DCPSDebugLevel value from command option (overrides value if it's in config file)
(3898|4545121792) NOTICE: Service_Participant::load_domain_ranges(): config does not have a [DomainRange] section.
(3898|4545121792) NOTICE: TransportRegistry::load_transport_templates(): config does not have a [transport_template] section.
(3898|4545121792) NOTICE: Service_Participant::load_domain_configuration(): failed to open [domain] section - using code default.
(3898|4545121792) NOTICE: StaticDiscovery::parse_topics no [topic] sections.
(3898|4545121792) NOTICE: StaticDiscovery::parse_datawriterqos no [datawriterqos] sections.
(3898|4545121792) NOTICE: StaticDiscovery::parse_datareaderqos no [datareaderqos] sections.
(3898|4545121792) NOTICE: StaticDiscovery::parse_publisherqos no [publisherqos] sections.
(3898|4545121792) NOTICE: StaticDiscovery::parse_subscriberqos no [subscriberqos] sections.
(3898|4545121792) NOTICE: StaticDiscovery::parse_endpoints no [endpoint] sections.
(3898|4545121792) NOTICE: Service_Participant::get_domain_participant_factory - This is OpenDDS 3.18.0 using ACE 7.0.3
(3898|4545121792) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(3898|4545121792) Service_Participant::network_config_monitor(). Creating NetworkConfigModifier
(3898|4545121792) NetworkConfigModifier::open() enumerating interfaces.
Wating for Subscriber...
Error: Timedout waiting for subscriber
(3898|4545121792) DomainParticipantFactoryImpl::~DomainParticipantFactoryImpl()
(3898|4545121792) NetworkConfigModifier::close()
(3898|4545121792) Service_Participant::~Service_Participant()

@Danny875
Copy link
Author

Hi Fred,

Do you have some updates?

@iguessthislldo
Copy link
Member

I finally tried this out on macOS myself and it did it had the same problem. Setting ACE_DEBUG=1 and DYLD_PRINT_APIS=1 environment variables is the most information I can get from it at the moment:

ACE (37713|4635000256) SG::process_directive, repo=0x7f87a8e627a0 - dynamic OpenDDS_Rtps_Udp Service_Object * OpenDDS_Rtps_Udp:_make_RtpsUdpLoader()
ACE (37713|4635000256) SG::process_directives_i, repo=0x7f87a8e627a0 - dynamic OpenDDS_Rtps_Udp Service_Object * OpenDDS_Rtps_Udp:_make_RtpsUdpLoader()
ACE (37713|4635000256) - SCG:<ctor=0x7ffee8d4fe38> - config=0x7f87a8e5efe0 repo=0x7f87a8e627a0 superceded by repo=0x7f87a8e627a0
ACE (37713|4635000256) SG::initialize - repo=0x7f87a8e627a0, name=OpenDDS_Rtps_Udp - looking up in the repo
ACE (37713|4635000256) STDG::<ctor>, repo=0x7f87a8e627a0, name=OpenDDS_Rtps_Udp - beginning at [37]
ACE (37713|4635000256) LN::open_dll - path=OpenDDS_Rtps_Udp
dlopen_internal(libOpenDDS_Rtps_Udp.dylib, 0x00000009)
  dlopen_internal() failed, error: 'dlopen(libOpenDDS_Rtps_Udp.dylib, 9): image not found'
dlerror()
ACE (37713|4635000256) DLL_Handle::open ("libOpenDDS_Rtps_Udp.dylib", 0x9) -> failed: dlopen(libOpenDDS_Rtps_Udp.dylib, 9): image not found
dlopen_internal(OpenDDS_Rtps_Udp.dylib, 0x00000009)
  dlopen_internal() failed, error: 'dlopen(OpenDDS_Rtps_Udp.dylib, 9): image not found'
dlerror()
ACE (37713|4635000256) DLL_Handle::open ("OpenDDS_Rtps_Udp.dylib", 0x9) -> failed: dlopen(OpenDDS_Rtps_Udp.dylib, 9): image not found
dlopen_internal(OpenDDS_Rtps_Udp, 0x00000009)
  dlopen_internal() failed, error: 'dlopen(OpenDDS_Rtps_Udp, 9): image not found'
dlerror()
ACE (37713|4635000256) DLL_Handle::open ("OpenDDS_Rtps_Udp", 0x9) -> failed: dlopen(OpenDDS_Rtps_Udp, 9): image not found
dlerror()
ACE (37713|4635000256) DLL_Handle::open ("OpenDDS_Rtps_Udp"): Invalid handle error: no error
ACE (37713|4635000256) DLL_Manager::open_dll: Could not open dll OpenDDS_Rtps_Udp.
ACE (37713|4635000256) DLL_Handle::close - OpenDDS_Rtps_Udp (handle=0, refcount=0)
dlerror()
ACE (37713|4635000256) LN::open_dll - Failed to open OpenDDS_Rtps_Udp: no error reported
ACE (37713|4635000256) Unable to create service object for OpenDDS_Rtps_Udp

There are other variables for debugging the dynamic linker (man dyld on macOS), but either they don't didn't help or didn't seem relevant. Something like LD_DEBUG=files,libs on Linux might be very helpful because that with the linker shows what paths it's considering. The closest thing I could find on macOS is DYLD_PRINT_LIBRARIES=1 and DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 and they only print what library file was picked afterwards. That's useless to know why a library file wasn't picked.

So it's trying to open the rtps_udp library because it wasn't linked at compile time, but it's not finding it for some reason. When I get the publisher, which currently links at compile time to do a similar thing, it still works, so it might be something specific trying to do it within Python on macOS.

There is this Python bug that would explain it because the system has to use DYLD_LIBRARY_PATH to find the library. However I don't think this is the case because 1. We're both using Python versions which shouldn't have the issue according to versions mentioned in the ticket, and 2. when I tried to replicate the example command from the ticket, it worked like it should.

So I still don't know why it's doing it and I don't think I can look into anymore because the machine I'm remotely connecting to using ssh keeps freezing the connection.

I think there is a workaround for this though. Try adding this to the basic_output/CMakeLists.txt:

target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS)

Then run pip install . and try running run_test.sh again. This should make it link the library at compile time so it doesn't have to go searching for it at runtime.

It was a bit tricky for me to try this out with my ssh session that kept freezing, but it fixed the issue and I was able to successfully run the test after I did it.

This might make it tricky if you want move the libraries though because the paths would be fixed at compile time. You might have to look into using install_name_tool if you want to do that.

@Danny875
Copy link
Author

Thank you for your response!

I have tried adding the target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS) to the basic_output/CMakeLists.txt, after the following line: cmake_minimum_required(VERSION 3.12).

After that, I have navigated to the OpenDDS directory and enabled the environment with the source setenv.sh command and then I changed the directory to PyOpenDDS with the normal steps as before. When I typed the last command run_test.sh I got the same error as before. I checked to see if the CMakeLists.txt looks the way it was modified last time and I noticed that the line that I just added: target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS) was removed.

What are the steps that you followed in order to successfully run the test?

Thank you in advance for your help!

@iguessthislldo
Copy link
Member

I have tried adding the target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS) to the basic_output/CMakeLists.txt, after the following line: cmake_minimum_required(VERSION 3.12).

You should add it to the end of the file or at least somewhere after Python3_add_library(_pybasic MODULE _pybasic.cpp). I don't think CMake will like trying to add dependencies to a library that hasn't been declared yet.

I checked to see if the CMakeLists.txt looks the way it was modified last time and I noticed that the line that I just added: target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS) was removed.

Don't rerun itl2py, it will override the CMakeLists.txt along with everything else in that directory.

@iguessthislldo
Copy link
Member

These are the exact steps assuming basic_output has already been generated:

cd basic_output
echo 'target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS)' >> CMakeLists.txt
pip install .

# Run Basic Test
cd ../..
bash run_test.sh

@Danny875
Copy link
Author

Danny875 commented Oct 28, 2021

Thank you for your response!

I have followed the steps and I checked if the command you mentioned was added in the CMakeLists and it was there. After running the last command, bash run_test.sh, I'm still getting the error.

145-2-173-233:basic_output dannydragoi$ cd ../..
145-2-173-233:basic_test dannydragoi$ bash run_test.sh
Wating for Subscriber...
(2987|4683398656) TransportRegistry::create_inst: transport_type=rtps_udp is not registered.
(2987|4683398656) NOTICE: not using file configuration - no configuration file specified.
(2987|4683398656) NOTICE: Service_Participant::get_domain_participant_factory - This is OpenDDS 3.18.0 using ACE 7.0.3
(2987|4683398656) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(2987|4683398656) ERROR: Service_Participant::load_discovery_configuration(): Unable to load libraries for rtps_discovery
(2987|4683398656) ERROR: Service_Participant::get_Discovery failed attempt to load default RTPS discovery for domain 34.
(2987|4683398656) ERROR: DomainParticipantImpl::enable, no discovery found for domain id: 34.
(2987|4683398656) ERROR: DomainParticipantFactoryImpl::create_participant, unable to enable DomainParticipant.
Failed to Create Participant
Exception ignored in: <function DomainParticipant.__del__ at 0x10f7ff400>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/DomainParticipant.py", line 22, in __del__
    participant_cleanup(self)
TypeError: Python object does not have a valid capsule pointer
(2987|4683398656) DomainParticipantFactoryImpl::~DomainParticipantFactoryImpl()
(2987|4683398656) Service_Participant::~Service_Participant()
Error: Timedout waiting for subscriber
Publisher exited with status 1
Subscriber exited with status 1

What could be wrong?

@iguessthislldo
Copy link
Member

In run_test.sh can you change the line:

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$dir" python3 subscriber.py &

to

DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$dir" python3 subscriber.py &

and run it again and post what it prints?

@Danny875
Copy link
Author

Thank you for your response!

After running it again, the following was printed in the terminal:

Successfully installed pybasic-0.0.0
145-2-173-233:basic_output dannydragoi$ cd ../..
145-2-173-233:basic_test dannydragoi$ bash run_test.sh
dyld: loaded: <B8802007-44C3-3666-985C-F8D0063E7A38> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
dyld: loaded: <B1F218E7-68ED-36D1-A8CD-FAFA8ABF80C6> /Library/Frameworks/Python.framework/Versions/3.10/Python
dyld: loaded: <DBD0A184-CD98-3225-8E9B-D5BFE0D30562> /usr/lib/libSystem.B.dylib
dyld: loaded: <8CF9D741-ADFF-3D5E-ACDE-DC342701EE0D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: <8C7C49A1-4211-3E4C-BA3D-160D675EEE96> /usr/lib/libobjc.A.dylib
dyld: loaded: <F72C2D50-7279-3497-8A59-56908F9661F3> /usr/lib/liboah.dylib
dyld: loaded: <BE0E6C60-675A-3739-A47A-67C650B1F790> /usr/lib/libfakelink.dylib
dyld: loaded: <AC994BC1-F9CC-359C-A7B5-F2821EAEF650> /usr/lib/libicucore.A.dylib
dyld: loaded: <9E4B6591-74E3-3B36-91C4-851FAA567DAA> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
dyld: loaded: <D0CDDF98-1C04-300F-B685-4A4C59C04C42> /usr/lib/libc++abi.dylib
dyld: loaded: <FD6DB1CB-B14B-3404-8BEB-B459C2F6C303> /usr/lib/libc++.1.dylib
dyld: loaded: <B51FAB34-AA9C-38C5-95F1-E5E54B21EA67> /usr/lib/system/libcache.dylib
dyld: loaded: <CF1E0E70-9F6C-3FAF-82B2-D55F7C9EBB03> /usr/lib/system/libcommonCrypto.dylib
dyld: loaded: <1C049207-1719-39AC-A2A9-6E5BE28AA138> /usr/lib/system/libcompiler_rt.dylib
dyld: loaded: <B0F35A80-D5E3-33DD-A47D-ACBFE1300523> /usr/lib/system/libcopyfile.dylib
dyld: loaded: <D211160D-E22F-3440-8054-1F5824519C7F> /usr/lib/system/libcorecrypto.dylib
dyld: loaded: <8144B0BD-90D2-3EAE-999F-AB0D14082088> /usr/lib/system/libdispatch.dylib
dyld: loaded: <3DE0178A-0AEE-3D08-AE19-6C6403F69BA1> /usr/lib/system/libdyld.dylib
dyld: loaded: <698AF6EE-08BB-36CF-B7AD-9EC16E36FA0B> /usr/lib/system/libkeymgr.dylib
dyld: loaded: <4A353070-A560-3A98-8869-28C92435C6B2> /usr/lib/system/liblaunch.dylib
dyld: loaded: <A4F4D532-7824-3E4E-8FB6-45617415E7DD> /usr/lib/system/libmacho.dylib
dyld: loaded: <3244B57B-9FDF-373E-9F96-A7BAD7534F23> /usr/lib/system/libquarantine.dylib
dyld: loaded: <1AEE3D84-32F9-35FB-8036-B178C9E27D20> /usr/lib/system/libremovefile.dylib
dyld: loaded: <8D324D65-EE16-3A1A-BD39-ACB1B3050D1F> /usr/lib/system/libsystem_asl.dylib
dyld: loaded: <925E3B6D-184D-3E73-97B1-643C4ADB387A> /usr/lib/system/libsystem_blocks.dylib
dyld: loaded: <3C273899-4CBE-32D5-BB31-7A449743204F> /usr/lib/system/libsystem_c.dylib
dyld: loaded: <F2D775D9-AAEF-371F-AA54-CFB882B9B430> /usr/lib/system/libsystem_collections.dylib
dyld: loaded: <02F3A5C9-6289-3012-8F5F-F1DB669ADB79> /usr/lib/system/libsystem_configuration.dylib
dyld: loaded: <1139CD47-9CBA-356F-8694-1D00EB9F0C8F> /usr/lib/system/libsystem_containermanager.dylib
dyld: loaded: <619CCB6D-226C-35BD-98FB-04A18FD54792> /usr/lib/system/libsystem_coreservices.dylib
dyld: loaded: <2C81A009-45BB-30D7-A4F7-4B2EEC691617> /usr/lib/system/libsystem_darwin.dylib
dyld: loaded: <0685BDB0-9A98-3ADD-B95A-11F221FD80D7> /usr/lib/system/libsystem_dnssd.dylib
dyld: loaded: <E5C43AE3-19E7-3DAB-8B5D-D79A4B68B5C0> /usr/lib/system/libsystem_featureflags.dylib
dyld: loaded: <55B39B7F-957B-3D99-A8DF-7CA80D38155D> /usr/lib/system/libsystem_info.dylib
dyld: loaded: <D61B56FE-649B-34A0-8446-25685B2BBBF2> /usr/lib/system/libsystem_m.dylib
dyld: loaded: <050E37E1-1458-3F80-BFA3-F1488570169D> /usr/lib/system/libsystem_malloc.dylib
dyld: loaded: <83AA4425-2F1D-36EC-B77B-8D4F03CDDB68> /usr/lib/system/libsystem_networkextension.dylib
dyld: loaded: <2E40EA4A-B124-3010-8379-1B4D7082A08F> /usr/lib/system/libsystem_notify.dylib
dyld: loaded: <78928329-DD98-3799-989D-870DF92FE8D5> /usr/lib/system/libsystem_product_info_filter.dylib
dyld: loaded: <5471601B-5072-3E97-8926-804FF08DC4C0> /usr/lib/system/libsystem_sandbox.dylib
dyld: loaded: <EB4516ED-1F8B-3E8A-8C4B-B209A33DCCEF> /usr/lib/system/libsystem_secinit.dylib
dyld: loaded: <78289AAE-61B5-339F-A485-8819BC2388F2> /usr/lib/system/libsystem_kernel.dylib
dyld: loaded: <EF52D569-09F5-32E1-B1B3-34E2CA55A017> /usr/lib/system/libsystem_platform.dylib
dyld: loaded: <1268FF2D-A513-3B51-BA65-AF2FF5789DDB> /usr/lib/system/libsystem_pthread.dylib
dyld: loaded: <1B4D8837-C951-3B69-B079-85D477749E8B> /usr/lib/system/libsystem_symptoms.dylib
dyld: loaded: <7E800ECA-DFDB-3737-A3C5-FFDE37E65383> /usr/lib/system/libsystem_trace.dylib
dyld: loaded: <4602E909-C71A-3006-8140-BE616DA241EE> /usr/lib/system/libunwind.dylib
dyld: loaded: <FFFB49D7-2CA6-3E1F-AE4E-5697B19B7D76> /usr/lib/system/libxpc.dylib
dyld: loaded: <C7F61F84-4D4A-38A6-9803-97070879CB24> /Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
dyld: loaded: <8CF9D741-ADFF-3D5E-ACDE-DC342701EE0D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: <B1F218E7-68ED-36D1-A8CD-FAFA8ABF80C6> /Library/Frameworks/Python.framework/Versions/3.10/Python
dyld: loaded: <DBD0A184-CD98-3225-8E9B-D5BFE0D30562> /usr/lib/libSystem.B.dylib
dyld: loaded: <8C7C49A1-4211-3E4C-BA3D-160D675EEE96> /usr/lib/libobjc.A.dylib
dyld: loaded: <F72C2D50-7279-3497-8A59-56908F9661F3> /usr/lib/liboah.dylib
dyld: loaded: <BE0E6C60-675A-3739-A47A-67C650B1F790> /usr/lib/libfakelink.dylib
dyld: loaded: <AC994BC1-F9CC-359C-A7B5-F2821EAEF650> /usr/lib/libicucore.A.dylib
dyld: loaded: <9E4B6591-74E3-3B36-91C4-851FAA567DAA> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
dyld: loaded: <D0CDDF98-1C04-300F-B685-4A4C59C04C42> /usr/lib/libc++abi.dylib
dyld: loaded: <FD6DB1CB-B14B-3404-8BEB-B459C2F6C303> /usr/lib/libc++.1.dylib
dyld: loaded: <B51FAB34-AA9C-38C5-95F1-E5E54B21EA67> /usr/lib/system/libcache.dylib
dyld: loaded: <CF1E0E70-9F6C-3FAF-82B2-D55F7C9EBB03> /usr/lib/system/libcommonCrypto.dylib
dyld: loaded: <1C049207-1719-39AC-A2A9-6E5BE28AA138> /usr/lib/system/libcompiler_rt.dylib
dyld: loaded: <B0F35A80-D5E3-33DD-A47D-ACBFE1300523> /usr/lib/system/libcopyfile.dylib
dyld: loaded: <D211160D-E22F-3440-8054-1F5824519C7F> /usr/lib/system/libcorecrypto.dylib
dyld: loaded: <8144B0BD-90D2-3EAE-999F-AB0D14082088> /usr/lib/system/libdispatch.dylib
dyld: loaded: <3DE0178A-0AEE-3D08-AE19-6C6403F69BA1> /usr/lib/system/libdyld.dylib
dyld: loaded: <698AF6EE-08BB-36CF-B7AD-9EC16E36FA0B> /usr/lib/system/libkeymgr.dylib
dyld: loaded: <4A353070-A560-3A98-8869-28C92435C6B2> /usr/lib/system/liblaunch.dylib
dyld: loaded: <A4F4D532-7824-3E4E-8FB6-45617415E7DD> /usr/lib/system/libmacho.dylib
dyld: loaded: <3244B57B-9FDF-373E-9F96-A7BAD7534F23> /usr/lib/system/libquarantine.dylib
dyld: loaded: <1AEE3D84-32F9-35FB-8036-B178C9E27D20> /usr/lib/system/libremovefile.dylib
dyld: loaded: <8D324D65-EE16-3A1A-BD39-ACB1B3050D1F> /usr/lib/system/libsystem_asl.dylib
dyld: loaded: <925E3B6D-184D-3E73-97B1-643C4ADB387A> /usr/lib/system/libsystem_blocks.dylib
dyld: loaded: <3C273899-4CBE-32D5-BB31-7A449743204F> /usr/lib/system/libsystem_c.dylib
dyld: loaded: <F2D775D9-AAEF-371F-AA54-CFB882B9B430> /usr/lib/system/libsystem_collections.dylib
dyld: loaded: <02F3A5C9-6289-3012-8F5F-F1DB669ADB79> /usr/lib/system/libsystem_configuration.dylib
dyld: loaded: <1139CD47-9CBA-356F-8694-1D00EB9F0C8F> /usr/lib/system/libsystem_containermanager.dylib
dyld: loaded: <619CCB6D-226C-35BD-98FB-04A18FD54792> /usr/lib/system/libsystem_coreservices.dylib
dyld: loaded: <2C81A009-45BB-30D7-A4F7-4B2EEC691617> /usr/lib/system/libsystem_darwin.dylib
dyld: loaded: <0685BDB0-9A98-3ADD-B95A-11F221FD80D7> /usr/lib/system/libsystem_dnssd.dylib
dyld: loaded: <E5C43AE3-19E7-3DAB-8B5D-D79A4B68B5C0> /usr/lib/system/libsystem_featureflags.dylib
dyld: loaded: <55B39B7F-957B-3D99-A8DF-7CA80D38155D> /usr/lib/system/libsystem_info.dylib
dyld: loaded: <D61B56FE-649B-34A0-8446-25685B2BBBF2> /usr/lib/system/libsystem_m.dylib
dyld: loaded: <050E37E1-1458-3F80-BFA3-F1488570169D> /usr/lib/system/libsystem_malloc.dylib
dyld: loaded: <83AA4425-2F1D-36EC-B77B-8D4F03CDDB68> /usr/lib/system/libsystem_networkextension.dylib
dyld: loaded: <2E40EA4A-B124-3010-8379-1B4D7082A08F> /usr/lib/system/libsystem_notify.dylib
dyld: loaded: <78928329-DD98-3799-989D-870DF92FE8D5> /usr/lib/system/libsystem_product_info_filter.dylib
dyld: loaded: <5471601B-5072-3E97-8926-804FF08DC4C0> /usr/lib/system/libsystem_sandbox.dylib
dyld: loaded: <EB4516ED-1F8B-3E8A-8C4B-B209A33DCCEF> /usr/lib/system/libsystem_secinit.dylib
dyld: loaded: <78289AAE-61B5-339F-A485-8819BC2388F2> /usr/lib/system/libsystem_kernel.dylib
dyld: loaded: <EF52D569-09F5-32E1-B1B3-34E2CA55A017> /usr/lib/system/libsystem_platform.dylib
dyld: loaded: <1268FF2D-A513-3B51-BA65-AF2FF5789DDB> /usr/lib/system/libsystem_pthread.dylib
dyld: loaded: <1B4D8837-C951-3B69-B079-85D477749E8B> /usr/lib/system/libsystem_symptoms.dylib
dyld: loaded: <7E800ECA-DFDB-3737-A3C5-FFDE37E65383> /usr/lib/system/libsystem_trace.dylib
dyld: loaded: <4602E909-C71A-3006-8140-BE616DA241EE> /usr/lib/system/libunwind.dylib
dyld: loaded: <FFFB49D7-2CA6-3E1F-AE4E-5697B19B7D76> /usr/lib/system/libxpc.dylib
dyld: loaded: <6AE01181-934A-38B8-84EE-1B95921DCAF7> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/math.cpython-310-darwin.so
dyld: loaded: <EBDA4322-638D-3F65-8B9F-1D0B1DB2DD3D> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_datetime.cpython-310-darwin.so
dyld: loaded: <7B9E6FDE-4618-3B0D-B5C1-B5D1EE0BC168> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_opcode.cpython-310-darwin.so
dyld: loaded: <37BE0FF8-DDC7-35E8-B360-3D2948EF7B8D> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_pyopendds.cpython-310-darwin.so
dyld: loaded: <EEB9ED00-A5DD-3BA7-A4FC-E565D978FD06> /Users/dannydragoi/Downloads/OpenDDS-3.18/lib/libOpenDDS_Dcps.dylib
dyld: loaded: <7120F1A1-B5A7-3CF7-AEC0-82CF972B03CE> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_PortableServer.dylib
dyld: loaded: <67D49913-6A6B-3711-9CFF-101C914861B3> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_BiDirGIOP.dylib
dyld: loaded: <2A671625-D814-36AE-BAED-96DFDD9EE019> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_PI.dylib
dyld: loaded: <B972A417-C1C7-3D03-9D72-D3C2BE502C90> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_CodecFactory.dylib
dyld: loaded: <716531A9-8CD0-3170-9FB0-739075015B1A> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_AnyTypeCode.dylib
dyld: loaded: <4DFFD62C-276F-33EB-8D9A-0A149F054D4D> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO.dylib
dyld: loaded: <72C191AE-4B6F-3249-A6E2-44B32813F025> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libACE.dylib
Wating for Subscriber...
(3164|4630535680) TransportRegistry::create_inst: transport_type=rtps_udp is not registered.
(3164|4630535680) NOTICE: not using file configuration - no configuration file specified.
(3164|4630535680) NOTICE: Service_Participant::get_domain_participant_factory - This is OpenDDS 3.18.0 using ACE 7.0.3
(3164|4630535680) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(3164|4630535680) ERROR: Service_Participant::load_discovery_configuration(): Unable to load libraries for rtps_discovery
(3164|4630535680) ERROR: Service_Participant::get_Discovery failed attempt to load default RTPS discovery for domain 34.
(3164|4630535680) ERROR: DomainParticipantImpl::enable, no discovery found for domain id: 34.
(3164|4630535680) ERROR: DomainParticipantFactoryImpl::create_participant, unable to enable DomainParticipant.
Failed to Create Participant
Exception ignored in: <function DomainParticipant.__del__ at 0x10d1fb400>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/DomainParticipant.py", line 22, in __del__
    participant_cleanup(self)
TypeError: Python object does not have a valid capsule pointer
(3164|4630535680) DomainParticipantFactoryImpl::~DomainParticipantFactoryImpl()
(3164|4630535680) Service_Participant::~Service_Participant()
Error: Timedout waiting for subscriber
Publisher exited with status 1
Subscriber exited with status 1
145-2-173-233:basic_test dannydragoi$ 

@iguessthislldo
Copy link
Member

Rtps_Udp should be in the list along with libOpenDDS_Dcps. The only thing I can think of doing is having macOS inject the Rtps_Udp library using DYLD_INSERT_LIBRARIES, but I don't know how to do that exactly and even if it worked that's not something that I can reasonably add to PyOpenDDS permanently. Since the target_link_libraries workaround is what worked on the macOS machine I have access to, I'm honestly not sure I can give you any more advice at the moment.

If you need this for a commercial project, I would suggest reaching out to our commercial support services and we could continue this with better priority and resources. If that's not possible, then I'd have to find the time to research and think about this more.

@Danny875
Copy link
Author

Thank you for your response and for your time! Please let me know when you think of a solution.

@iguessthislldo
Copy link
Member

For reference when I come back to this, can you post your macOS version, exact Python version and where you got the python version from, like if you downloaded it from python.org or if you used brew?

@Danny875
Copy link
Author

The macOS version is 11.6 (Big Sur). I installed Python using brew, and the version that I have is 3.10.0.

Thank you for your help!

@Danny875
Copy link
Author

Danny875 commented Nov 2, 2021

I tried to test it again in the past days and I noticed that I'm getting an error after executing pip install . after executing cd basic_output and echo 'target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS)' >> CMakeLists.txt.

The error that I'm getting is the following:

145-2-172-44:build dannydragoi$ make 
Consolidate compiler generated dependencies of target basic_idl
[ 77%] Built target basic_idl
Consolidate compiler generated dependencies of target publisher
[100%] Built target publisher
145-2-172-44:build dannydragoi$ cd basic_output
145-2-172-44:basic_output dannydragoi$ echo 'target_link_libraries(_pybasic PUBLIC OpenDDS::OpenDDS)' >> CMakeLists.txt
145-2-172-44:basic_output dannydragoi$ pip install .
Processing /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pyopendds in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pybasic==0.0.0) (0.1.0)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyopendds->pybasic==0.0.0) (3.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from jinja2->pyopendds->pybasic==0.0.0) (2.0.1)
Building wheels for collected packages: pybasic
  Building wheel for pybasic (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-wheel-74_nuioe
       cwd: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
  copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
  running build_ext
  CMake Error at CMakeLists.txt:26:
    Parse error.  Expected a newline, got identifier with text
    "target_link_libraries".
  
  
  -- Configuring incomplete, errors occurred!
  See also "/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeOutput.log".
  See also "/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/temp.macosx-10.9-universal2-3.10/CMakeFiles/CMakeError.log".
  error: "cmake /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_NATIVE_EXT_SUFFIX=.cpython-310-darwin.so -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
  ----------------------------------------
  ERROR: Failed building wheel for pybasic
  Running setup.py clean for pybasic
Failed to build pybasic
Installing collected packages: pybasic
  Attempting uninstall: pybasic
    Found existing installation: pybasic 0.0.0
    Uninstalling pybasic-0.0.0:
      Successfully uninstalled pybasic-0.0.0
    Running setup.py install for pybasic ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-5bjcgar1/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic
         cwd: /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/
    Complete output (17 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/pybasic
    copying pybasic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic
    creating build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    copying pybasic/basic/__init__.py -> build/lib.macosx-10.9-universal2-3.10/pybasic/basic
    running build_ext
    CMake Error at CMakeLists.txt:26:
      Parse error.  Expected a newline, got identifier with text
      "target_link_libraries".
    
    
    -- Configuring incomplete, errors occurred!
    error: "cmake /Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG=/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/build/lib.macosx-10.9-universal2-3.10 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG=build/temp.macosx-10.9-universal2-3.10 -DPYOPENDDS_PYTHON_VERSION=3.10.0 -DPYOPENDDS_NATIVE_EXT_SUFFIX=.cpython-310-darwin.so -DPYOPENDDS_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/dev/include" returned non-zero result: 1
    ----------------------------------------
  Rolling back uninstall of pybasic
  Moving to /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_pybasic.cpython-310-darwin.so
   from /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-uninstall-afllyie7/_pybasic.cpython-310-darwin.so
  Moving to /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pybasic-0.0.0.dist-info/
   from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/~ybasic-0.0.0.dist-info
  Moving to /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pybasic/
   from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/~ybasic
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"'; __file__='"'"'/Users/dannydragoi/Downloads/pyopendds-master/tests/basic_test/build/basic_output/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8h/gxjssfgj3d35hmpjt9mq2v6r0000gn/T/pip-record-5bjcgar1/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pybasic Check the logs for full command output.

Maybe this is the reason why the test doesn't work.

@iguessthislldo
Copy link
Member

CMake Error at CMakeLists.txt:26:
  Parse error.  Expected a newline, got identifier with text
  "target_link_libraries".

This is different from the issue before because you were able to use the result of this CMake command before. There's a syntax error in the CMakeLists.txt file. I looks like when you appended the target_link_libraries line, it got tacked on to an existing line instead of getting put on its own line.

@Danny875
Copy link
Author

Danny875 commented Nov 2, 2021

You are right, my mistake. It is solved now. Now I'm only getting the error that I had before, after executing bash run_test.sh:

dyld: loaded: <B8802007-44C3-3666-985C-F8D0063E7A38> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
dyld: loaded: <B1F218E7-68ED-36D1-A8CD-FAFA8ABF80C6> /Library/Frameworks/Python.framework/Versions/3.10/Python
dyld: loaded: <DBD0A184-CD98-3225-8E9B-D5BFE0D30562> /usr/lib/libSystem.B.dylib
dyld: loaded: <8CF9D741-ADFF-3D5E-ACDE-DC342701EE0D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: <8C7C49A1-4211-3E4C-BA3D-160D675EEE96> /usr/lib/libobjc.A.dylib
dyld: loaded: <F72C2D50-7279-3497-8A59-56908F9661F3> /usr/lib/liboah.dylib
dyld: loaded: <BE0E6C60-675A-3739-A47A-67C650B1F790> /usr/lib/libfakelink.dylib
dyld: loaded: <AC994BC1-F9CC-359C-A7B5-F2821EAEF650> /usr/lib/libicucore.A.dylib
dyld: loaded: <9E4B6591-74E3-3B36-91C4-851FAA567DAA> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
dyld: loaded: <D0CDDF98-1C04-300F-B685-4A4C59C04C42> /usr/lib/libc++abi.dylib
dyld: loaded: <FD6DB1CB-B14B-3404-8BEB-B459C2F6C303> /usr/lib/libc++.1.dylib
dyld: loaded: <B51FAB34-AA9C-38C5-95F1-E5E54B21EA67> /usr/lib/system/libcache.dylib
dyld: loaded: <CF1E0E70-9F6C-3FAF-82B2-D55F7C9EBB03> /usr/lib/system/libcommonCrypto.dylib
dyld: loaded: <1C049207-1719-39AC-A2A9-6E5BE28AA138> /usr/lib/system/libcompiler_rt.dylib
dyld: loaded: <B0F35A80-D5E3-33DD-A47D-ACBFE1300523> /usr/lib/system/libcopyfile.dylib
dyld: loaded: <D211160D-E22F-3440-8054-1F5824519C7F> /usr/lib/system/libcorecrypto.dylib
dyld: loaded: <8144B0BD-90D2-3EAE-999F-AB0D14082088> /usr/lib/system/libdispatch.dylib
dyld: loaded: <3DE0178A-0AEE-3D08-AE19-6C6403F69BA1> /usr/lib/system/libdyld.dylib
dyld: loaded: <698AF6EE-08BB-36CF-B7AD-9EC16E36FA0B> /usr/lib/system/libkeymgr.dylib
dyld: loaded: <4A353070-A560-3A98-8869-28C92435C6B2> /usr/lib/system/liblaunch.dylib
dyld: loaded: <A4F4D532-7824-3E4E-8FB6-45617415E7DD> /usr/lib/system/libmacho.dylib
dyld: loaded: <3244B57B-9FDF-373E-9F96-A7BAD7534F23> /usr/lib/system/libquarantine.dylib
dyld: loaded: <1AEE3D84-32F9-35FB-8036-B178C9E27D20> /usr/lib/system/libremovefile.dylib
dyld: loaded: <8D324D65-EE16-3A1A-BD39-ACB1B3050D1F> /usr/lib/system/libsystem_asl.dylib
dyld: loaded: <925E3B6D-184D-3E73-97B1-643C4ADB387A> /usr/lib/system/libsystem_blocks.dylib
dyld: loaded: <3C273899-4CBE-32D5-BB31-7A449743204F> /usr/lib/system/libsystem_c.dylib
dyld: loaded: <F2D775D9-AAEF-371F-AA54-CFB882B9B430> /usr/lib/system/libsystem_collections.dylib
dyld: loaded: <02F3A5C9-6289-3012-8F5F-F1DB669ADB79> /usr/lib/system/libsystem_configuration.dylib
dyld: loaded: <1139CD47-9CBA-356F-8694-1D00EB9F0C8F> /usr/lib/system/libsystem_containermanager.dylib
dyld: loaded: <619CCB6D-226C-35BD-98FB-04A18FD54792> /usr/lib/system/libsystem_coreservices.dylib
dyld: loaded: <2C81A009-45BB-30D7-A4F7-4B2EEC691617> /usr/lib/system/libsystem_darwin.dylib
dyld: loaded: <0685BDB0-9A98-3ADD-B95A-11F221FD80D7> /usr/lib/system/libsystem_dnssd.dylib
dyld: loaded: <E5C43AE3-19E7-3DAB-8B5D-D79A4B68B5C0> /usr/lib/system/libsystem_featureflags.dylib
dyld: loaded: <55B39B7F-957B-3D99-A8DF-7CA80D38155D> /usr/lib/system/libsystem_info.dylib
dyld: loaded: <D61B56FE-649B-34A0-8446-25685B2BBBF2> /usr/lib/system/libsystem_m.dylib
dyld: loaded: <050E37E1-1458-3F80-BFA3-F1488570169D> /usr/lib/system/libsystem_malloc.dylib
dyld: loaded: <83AA4425-2F1D-36EC-B77B-8D4F03CDDB68> /usr/lib/system/libsystem_networkextension.dylib
dyld: loaded: <2E40EA4A-B124-3010-8379-1B4D7082A08F> /usr/lib/system/libsystem_notify.dylib
dyld: loaded: <78928329-DD98-3799-989D-870DF92FE8D5> /usr/lib/system/libsystem_product_info_filter.dylib
dyld: loaded: <5471601B-5072-3E97-8926-804FF08DC4C0> /usr/lib/system/libsystem_sandbox.dylib
dyld: loaded: <EB4516ED-1F8B-3E8A-8C4B-B209A33DCCEF> /usr/lib/system/libsystem_secinit.dylib
dyld: loaded: <78289AAE-61B5-339F-A485-8819BC2388F2> /usr/lib/system/libsystem_kernel.dylib
dyld: loaded: <EF52D569-09F5-32E1-B1B3-34E2CA55A017> /usr/lib/system/libsystem_platform.dylib
dyld: loaded: <1268FF2D-A513-3B51-BA65-AF2FF5789DDB> /usr/lib/system/libsystem_pthread.dylib
dyld: loaded: <1B4D8837-C951-3B69-B079-85D477749E8B> /usr/lib/system/libsystem_symptoms.dylib
dyld: loaded: <7E800ECA-DFDB-3737-A3C5-FFDE37E65383> /usr/lib/system/libsystem_trace.dylib
dyld: loaded: <4602E909-C71A-3006-8140-BE616DA241EE> /usr/lib/system/libunwind.dylib
dyld: loaded: <FFFB49D7-2CA6-3E1F-AE4E-5697B19B7D76> /usr/lib/system/libxpc.dylib
dyld: loaded: <C7F61F84-4D4A-38A6-9803-97070879CB24> /Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
dyld: loaded: <8CF9D741-ADFF-3D5E-ACDE-DC342701EE0D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: <B1F218E7-68ED-36D1-A8CD-FAFA8ABF80C6> /Library/Frameworks/Python.framework/Versions/3.10/Python
dyld: loaded: <DBD0A184-CD98-3225-8E9B-D5BFE0D30562> /usr/lib/libSystem.B.dylib
dyld: loaded: <8C7C49A1-4211-3E4C-BA3D-160D675EEE96> /usr/lib/libobjc.A.dylib
dyld: loaded: <F72C2D50-7279-3497-8A59-56908F9661F3> /usr/lib/liboah.dylib
dyld: loaded: <BE0E6C60-675A-3739-A47A-67C650B1F790> /usr/lib/libfakelink.dylib
dyld: loaded: <AC994BC1-F9CC-359C-A7B5-F2821EAEF650> /usr/lib/libicucore.A.dylib
dyld: loaded: <9E4B6591-74E3-3B36-91C4-851FAA567DAA> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
dyld: loaded: <D0CDDF98-1C04-300F-B685-4A4C59C04C42> /usr/lib/libc++abi.dylib
dyld: loaded: <FD6DB1CB-B14B-3404-8BEB-B459C2F6C303> /usr/lib/libc++.1.dylib
dyld: loaded: <B51FAB34-AA9C-38C5-95F1-E5E54B21EA67> /usr/lib/system/libcache.dylib
dyld: loaded: <CF1E0E70-9F6C-3FAF-82B2-D55F7C9EBB03> /usr/lib/system/libcommonCrypto.dylib
dyld: loaded: <1C049207-1719-39AC-A2A9-6E5BE28AA138> /usr/lib/system/libcompiler_rt.dylib
dyld: loaded: <B0F35A80-D5E3-33DD-A47D-ACBFE1300523> /usr/lib/system/libcopyfile.dylib
dyld: loaded: <D211160D-E22F-3440-8054-1F5824519C7F> /usr/lib/system/libcorecrypto.dylib
dyld: loaded: <8144B0BD-90D2-3EAE-999F-AB0D14082088> /usr/lib/system/libdispatch.dylib
dyld: loaded: <3DE0178A-0AEE-3D08-AE19-6C6403F69BA1> /usr/lib/system/libdyld.dylib
dyld: loaded: <698AF6EE-08BB-36CF-B7AD-9EC16E36FA0B> /usr/lib/system/libkeymgr.dylib
dyld: loaded: <4A353070-A560-3A98-8869-28C92435C6B2> /usr/lib/system/liblaunch.dylib
dyld: loaded: <A4F4D532-7824-3E4E-8FB6-45617415E7DD> /usr/lib/system/libmacho.dylib
dyld: loaded: <3244B57B-9FDF-373E-9F96-A7BAD7534F23> /usr/lib/system/libquarantine.dylib
dyld: loaded: <1AEE3D84-32F9-35FB-8036-B178C9E27D20> /usr/lib/system/libremovefile.dylib
dyld: loaded: <8D324D65-EE16-3A1A-BD39-ACB1B3050D1F> /usr/lib/system/libsystem_asl.dylib
dyld: loaded: <925E3B6D-184D-3E73-97B1-643C4ADB387A> /usr/lib/system/libsystem_blocks.dylib
dyld: loaded: <3C273899-4CBE-32D5-BB31-7A449743204F> /usr/lib/system/libsystem_c.dylib
dyld: loaded: <F2D775D9-AAEF-371F-AA54-CFB882B9B430> /usr/lib/system/libsystem_collections.dylib
dyld: loaded: <02F3A5C9-6289-3012-8F5F-F1DB669ADB79> /usr/lib/system/libsystem_configuration.dylib
dyld: loaded: <1139CD47-9CBA-356F-8694-1D00EB9F0C8F> /usr/lib/system/libsystem_containermanager.dylib
dyld: loaded: <619CCB6D-226C-35BD-98FB-04A18FD54792> /usr/lib/system/libsystem_coreservices.dylib
dyld: loaded: <2C81A009-45BB-30D7-A4F7-4B2EEC691617> /usr/lib/system/libsystem_darwin.dylib
dyld: loaded: <0685BDB0-9A98-3ADD-B95A-11F221FD80D7> /usr/lib/system/libsystem_dnssd.dylib
dyld: loaded: <E5C43AE3-19E7-3DAB-8B5D-D79A4B68B5C0> /usr/lib/system/libsystem_featureflags.dylib
dyld: loaded: <55B39B7F-957B-3D99-A8DF-7CA80D38155D> /usr/lib/system/libsystem_info.dylib
dyld: loaded: <D61B56FE-649B-34A0-8446-25685B2BBBF2> /usr/lib/system/libsystem_m.dylib
dyld: loaded: <050E37E1-1458-3F80-BFA3-F1488570169D> /usr/lib/system/libsystem_malloc.dylib
dyld: loaded: <83AA4425-2F1D-36EC-B77B-8D4F03CDDB68> /usr/lib/system/libsystem_networkextension.dylib
dyld: loaded: <2E40EA4A-B124-3010-8379-1B4D7082A08F> /usr/lib/system/libsystem_notify.dylib
dyld: loaded: <78928329-DD98-3799-989D-870DF92FE8D5> /usr/lib/system/libsystem_product_info_filter.dylib
dyld: loaded: <5471601B-5072-3E97-8926-804FF08DC4C0> /usr/lib/system/libsystem_sandbox.dylib
dyld: loaded: <EB4516ED-1F8B-3E8A-8C4B-B209A33DCCEF> /usr/lib/system/libsystem_secinit.dylib
dyld: loaded: <78289AAE-61B5-339F-A485-8819BC2388F2> /usr/lib/system/libsystem_kernel.dylib
dyld: loaded: <EF52D569-09F5-32E1-B1B3-34E2CA55A017> /usr/lib/system/libsystem_platform.dylib
dyld: loaded: <1268FF2D-A513-3B51-BA65-AF2FF5789DDB> /usr/lib/system/libsystem_pthread.dylib
dyld: loaded: <1B4D8837-C951-3B69-B079-85D477749E8B> /usr/lib/system/libsystem_symptoms.dylib
dyld: loaded: <7E800ECA-DFDB-3737-A3C5-FFDE37E65383> /usr/lib/system/libsystem_trace.dylib
dyld: loaded: <4602E909-C71A-3006-8140-BE616DA241EE> /usr/lib/system/libunwind.dylib
dyld: loaded: <FFFB49D7-2CA6-3E1F-AE4E-5697B19B7D76> /usr/lib/system/libxpc.dylib
dyld: loaded: <6AE01181-934A-38B8-84EE-1B95921DCAF7> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/math.cpython-310-darwin.so
dyld: loaded: <EBDA4322-638D-3F65-8B9F-1D0B1DB2DD3D> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_datetime.cpython-310-darwin.so
dyld: loaded: <7B9E6FDE-4618-3B0D-B5C1-B5D1EE0BC168> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_opcode.cpython-310-darwin.so
dyld: loaded: <37BE0FF8-DDC7-35E8-B360-3D2948EF7B8D> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_pyopendds.cpython-310-darwin.so
dyld: loaded: <EEB9ED00-A5DD-3BA7-A4FC-E565D978FD06> /Users/dannydragoi/Downloads/OpenDDS-3.18/lib/libOpenDDS_Dcps.dylib
dyld: loaded: <7120F1A1-B5A7-3CF7-AEC0-82CF972B03CE> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_PortableServer.dylib
dyld: loaded: <67D49913-6A6B-3711-9CFF-101C914861B3> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_BiDirGIOP.dylib
dyld: loaded: <2A671625-D814-36AE-BAED-96DFDD9EE019> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_PI.dylib
dyld: loaded: <B972A417-C1C7-3D03-9D72-D3C2BE502C90> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_CodecFactory.dylib
dyld: loaded: <716531A9-8CD0-3170-9FB0-739075015B1A> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO_AnyTypeCode.dylib
dyld: loaded: <4DFFD62C-276F-33EB-8D9A-0A149F054D4D> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libTAO.dylib
dyld: loaded: <72C191AE-4B6F-3249-A6E2-44B32813F025> /Users/dannydragoi/Downloads/OpenDDS-3.18/ACE_wrappers/lib/libACE.dylib
Wating for Subscriber...
(8389|4665667072) TransportRegistry::create_inst: transport_type=rtps_udp is not registered.
(8389|4665667072) NOTICE: not using file configuration - no configuration file specified.
(8389|4665667072) NOTICE: Service_Participant::get_domain_participant_factory - This is OpenDDS 3.18.0 using ACE 7.0.3
(8389|4665667072) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(8389|4665667072) ERROR: Service_Participant::load_discovery_configuration(): Unable to load libraries for rtps_discovery
(8389|4665667072) ERROR: Service_Participant::get_Discovery failed attempt to load default RTPS discovery for domain 34.
(8389|4665667072) ERROR: DomainParticipantImpl::enable, no discovery found for domain id: 34.
(8389|4665667072) ERROR: DomainParticipantFactoryImpl::create_participant, unable to enable DomainParticipant.
Failed to Create Participant
Exception ignored in: <function DomainParticipant.__del__ at 0x10dd4b400>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyopendds/DomainParticipant.py", line 22, in __del__
    participant_cleanup(self)
TypeError: Python object does not have a valid capsule pointer
(8389|4665667072) DomainParticipantFactoryImpl::~DomainParticipantFactoryImpl()
(8389|4665667072) Service_Participant::~Service_Participant()
Error: Timedout waiting for subscriber
Publisher exited with status 1
Subscriber exited with status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants