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

support to python3.13. Depency cyclonedds is broken #29

Open
dougsland opened this issue Jan 4, 2025 · 0 comments
Open

support to python3.13. Depency cyclonedds is broken #29

dougsland opened this issue Jan 4, 2025 · 0 comments

Comments

@dougsland
Copy link

dougsland commented Jan 4, 2025

The project depend on cyclonedds and when enabling the python 3.13 it just explodes. Works well with python 3.11 and 3.12.

$ cat /etc/os-release | grep pretty_name -i
PRETTY_NAME="Fedora Linux 41 (Workstation Edition)"
$ sudo dnf install python3.13-devel
$ python3.13 -m venv env
(env) root@fedora:/home/douglas/unitree_sdk2_python$ source env/bin/activate
(env) root@fedora:/home/douglas/unitree_sdk2_python$ pip install .
Processing /home/douglas/unitree_sdk2_python
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cyclonedds==0.10.2 (from unitree_sdk2py==1.0.1)
Using cached cyclonedds-0.10.2.tar.gz (156 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy (from unitree_sdk2py==1.0.1)
Downloading numpy-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
Collecting opencv-python (from unitree_sdk2py==1.0.1)
Using cached opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)
Collecting rich-click (from cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached rich_click-1.8.5-py3-none-any.whl.metadata (7.9 kB)
Collecting click>=7 (from rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting rich>=10.7 (from rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Collecting typing_extensions>=4 (from rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.7->rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.7->rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.7->rich-click->cyclonedds==0.10.2->unitree_sdk2py==1.0.1)
Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading numpy-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.1/16.1 MB 6.6 MB/s eta 0:00:00
Using cached opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (62.5 MB)
Using cached rich_click-1.8.5-py3-none-any.whl (35 kB)
Using cached click-8.1.8-py3-none-any.whl (98 kB)
Using cached rich-13.9.4-py3-none-any.whl (242 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: unitree_sdk2py, cyclonedds
Building wheel for unitree_sdk2py (pyproject.toml) ... done
Created wheel for unitree_sdk2py: filename=unitree_sdk2py-1.0.1-py3-none-any.whl size=83801 sha256=bb9d41cfaac95bcd13264db7f373c0633aafd991360ceb7f1fb23a8bb539d44b
Stored in directory: /tmp/pip-ephem-wheel-cache-1unukbkw/wheels/c1/55/b2/4d6cf28eda7f9bc5aa27c4aa81dccce02d3d9e713283d0c179
Building wheel for cyclonedds (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for cyclonedds (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [121 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/idlc.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/builtin.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/core.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/domain.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/dynamic.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/internal.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/pub.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/qos.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/sub.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/topic.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/util.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/library.py -> build/lib.linux-x86_64-cpython-313/cyclonedds
creating build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_builder.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_machinery.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_main.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_support.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_type_helper.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_type_normalize.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/_xt_builder.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/annotations.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/mypy_plugin.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
copying cyclonedds/idl/types.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools
copying cyclonedds/tools/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools
creating build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport
copying cyclonedds/idl/_typesupport/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport
creating build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS
copying cyclonedds/idl/_typesupport/DDS/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS
creating build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS/XTypes
copying cyclonedds/idl/_typesupport/DDS/XTypes/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS/XTypes
copying cyclonedds/idl/_typesupport/DDS/XTypes/_ddsi_xt_type_object.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS/XTypes
copying cyclonedds/idl/_typesupport/DDS/XTypes/_ddsi_xt_typemap.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl/_typesupport/DDS/XTypes
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/ddsperf.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/idl.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/ls.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/main.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/ps.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/qosformat.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/settings.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/sub.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/typeof.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
copying cyclonedds/tools/cli/utils.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/ddsls
copying cyclonedds/tools/ddsls/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/ddsls
copying cyclonedds/tools/ddsls/main.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/ddsls
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/main.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/check_entity_qos.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/datastruct.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/entity_qos.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/parse_qos.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
copying cyclonedds/tools/pubsub/topic_manager.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/pubsub
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/wheel_idlc
copying cyclonedds/tools/wheel_idlc/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/wheel_idlc
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/data
copying cyclonedds/tools/cli/data/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/data
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/discovery
copying cyclonedds/tools/cli/discovery/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/discovery
copying cyclonedds/tools/cli/discovery/ls_discoverables.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/discovery
copying cyclonedds/tools/cli/discovery/main.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/discovery
copying cyclonedds/tools/cli/discovery/ps_discoverables.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/discovery
creating build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/init.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/app.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/barchart.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/ping.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/pong.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/publish.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/tools/cli/layout/subscribe.py -> build/lib.linux-x86_64-cpython-313/cyclonedds/tools/cli/layout
copying cyclonedds/py.typed -> build/lib.linux-x86_64-cpython-313/cyclonedds
copying cyclonedds/idl/py.typed -> build/lib.linux-x86_64-cpython-313/cyclonedds/idl
running build_ext
building 'cyclonedds._clayer' extension
creating build/temp.linux-x86_64-cpython-313/clayer
gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -O3 -fPIC -I/root/cyclonedds/install/include -I/tmp/pip-install-1fzm3dky/cyclonedds_1c50bb9ff47743128adff568069b3423/clayer -I/home/douglas/unitree_sdk2_python/env/include -I/usr/include/python3.13 -c clayer/cdrkeyvm.c -o build/temp.linux-x86_64-cpython-313/clayer/cdrkeyvm.o
gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -O3 -fPIC -I/root/cyclonedds/install/include -I/tmp/pip-install-1fzm3dky/cyclonedds_1c50bb9ff47743128adff568069b3423/clayer -I/home/douglas/unitree_sdk2_python/env/include -I/usr/include/python3.13 -c clayer/pysertype.c -o build/temp.linux-x86_64-cpython-313/clayer/pysertype.o
clayer/pysertype.c: In function ‘sertype_free’:
clayer/pysertype.c:610:10: error: implicit declaration of function ‘_Py_IsFinalizing’; did you mean ‘Py_IsFinalizing’? [-Wimplicit-function-declaration]
610 | if (!_Py_IsFinalizing()) {
| ^~~~~~~~~~~~~~~~
| Py_IsFinalizing
clayer/pysertype.c: In function ‘ddspy_read_endpoint’:
clayer/pysertype.c:1784:48: warning: passing argument 2 of ‘ddspy_typeid_ser’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1784 | ddspy_typeid_ser(&type_obj_stream, type_id);
| ^~~~~~~
In file included from clayer/pysertype.c:33:
clayer/typeser.h:19:40: note: expected ‘dds_typeid_t *’ {aka ‘struct ddsi_typeid *’} but argument is of type ‘const dds_typeid_t *’ {aka ‘const struct ddsi_typeid ’}
19 | void ddspy_typeid_ser (dds_ostream_t
, dds_typeid_t *);
| ^~~~~~~~~~~~~~
clayer/pysertype.c: In function ‘ddspy_read_topic’:
clayer/pysertype.c:1875:48: warning: passing argument 2 of ‘ddspy_typeid_ser’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1875 | ddspy_typeid_ser(&type_obj_stream, type_id);
| ^~~~~~~
clayer/typeser.h:19:40: note: expected ‘dds_typeid_t *’ {aka ‘struct ddsi_typeid *’} but argument is of type ‘const dds_typeid_t *’ {aka ‘const struct ddsi_typeid ’}
19 | void ddspy_typeid_ser (dds_ostream_t
, dds_typeid_t *);
| ^~~~~~~~~~~~~~
clayer/pysertype.c: In function ‘ddspy_take_endpoint’:
clayer/pysertype.c:1962:48: warning: passing argument 2 of ‘ddspy_typeid_ser’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1962 | ddspy_typeid_ser(&type_obj_stream, type_id);
| ^~~~~~~
clayer/typeser.h:19:40: note: expected ‘dds_typeid_t *’ {aka ‘struct ddsi_typeid *’} but argument is of type ‘const dds_typeid_t *’ {aka ‘const struct ddsi_typeid ’}
19 | void ddspy_typeid_ser (dds_ostream_t
, dds_typeid_t *);
| ^~~~~~~~~~~~~~
clayer/pysertype.c: In function ‘ddspy_take_topic’:
clayer/pysertype.c:2079:48: warning: passing argument 2 of ‘ddspy_typeid_ser’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
2079 | ddspy_typeid_ser(&type_obj_stream, type_id);
| ^~~~~~~
clayer/typeser.h:19:40: note: expected ‘dds_typeid_t *’ {aka ‘struct ddsi_typeid *’} but argument is of type ‘const dds_typeid_t *’ {aka ‘const struct ddsi_typeid ’}
19 | void ddspy_typeid_ser (dds_ostream_t
, dds_typeid_t *);
| ^~~~~~~~~~~~~~
error: command '/usr/lib64/ccache/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cyclonedds
Successfully built unitree_sdk2py
Failed to build cyclonedds

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

1 participant