You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E:\test\build\Release>python HelloWorldExample.py -p publisher
Creating publisher.
Traceback (most recent call last):
File "E:\test\build\Release\HelloWorldExample.py", line 206, in
writer = Writer(args.domain, args.machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\test\build\Release\HelloWorldExample.py", line 113, in init
self.topic_data_type.setName("HelloWorldDataType")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HelloWorldPubSubType' object has no attribute 'setName'. Did you mean: 'set_name'?
The text was updated successfully, but these errors were encountered:
Hi @SunLiangcan, thanks for your report.
I am assuming you are using the Fast DDS python version from master branch.
Fast DDS, and Fast DDS Python, are near to a mayor release (v3.0.0 and v2.0.0, respectively). That entails several API breaks and refactors. For that reason, and until these versions are released, it is strongly advisable to use the latest stable branch, 2.14.x (and python v1.4.2).
It seems that performing the TopicDataType refactor in the python repository we missed updating that example.
We will fix it and come back to you, sorry for the inconvenience.
E:\test\build\Release>python HelloWorldExample.py -p publisher
Creating publisher.
Traceback (most recent call last):
File "E:\test\build\Release\HelloWorldExample.py", line 206, in
writer = Writer(args.domain, args.machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\test\build\Release\HelloWorldExample.py", line 113, in init
self.topic_data_type.setName("HelloWorldDataType")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HelloWorldPubSubType' object has no attribute 'setName'. Did you mean: 'set_name'?
The text was updated successfully, but these errors were encountered: