eclipse-cyclonedds / cyclonedds-python

Other
54 stars 44 forks source link

pip installation fails in Python 3.11 #221

Open clunietp opened 10 months ago

clunietp commented 10 months ago

I'm attempting to install cyclonedds-python with the included binaries per the README.

Reproducer Dockerfile:

FROM python:3.11-bullseye
RUN python3 -m pip install cyclonedds

Result:

Collecting cyclonedds
Downloading cyclonedds-0.10.2.tar.gz (156 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.8/156.8 kB 274.8 kB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
    Could not locate cyclonedds. Try to set CYCLONEDDS_HOME or CMAKE_PREFIX_PATH
    [end of output]

Installation seems to work fine if I use the python:3.10-bullseye image instead.

NotAnyMike commented 7 months ago

Following instructions here solves the problem https://pypi.org/project/cyclonedds/0.9.0/#installing-with-pre-built-binaries but only with bullseye version

eburdette0 commented 6 months ago

I also ran into this issue on 3.11

LY1806620741 commented 1 month ago

Can anyone make a wheel package? I guess that only need to modify the python version 3.10->3.11.

LY1806620741 commented 1 month ago

我打包了winx64下的python 3.11和3.12,实测可运行.I packaged python 3.11 and 3.12 under winx64, which are measured to run

https://github.com/LY1806620741/unitree_sdk2_python/releases/tag/3.11

https://github.com/LY1806620741/unitree_sdk2_python/releases/download/3.11/cyclonedds-0.10.2-cp311-cp311-win_amd64.whl https://github.com/LY1806620741/unitree_sdk2_python/releases/download/3.11/cyclonedds-0.10.2-cp312-cp312-win_amd64.whl

LY1806620741 commented 1 month ago

@thijsmie

Sorry to bother you, I have learned a lot from watching your pipeline products in the past two days. Do you have any plans to support a new version of Python. Azure pipeline seems to have been stop for a long time.

https://dev.azure.com/tmiedema/cyclonedds-python/

eboasson commented 1 month ago

@LY1806620741

Finally, there's been some real effort on fixing the state of the python pipelines: https://dev.azure.com/eclipse-cyclonedds/cyclonedds-python/ thanks to the hard work of @trittsv. Now we can start looking at newer Python versions.