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

Python3.10 linux/arm/v7 + linux/arm/v6 Wheels Not Avaliable #1091

Open
jackmead515 opened this issue Jan 3, 2025 · 6 comments
Open

Python3.10 linux/arm/v7 + linux/arm/v6 Wheels Not Avaliable #1091

jackmead515 opened this issue Jan 3, 2025 · 6 comments

Comments

@jackmead515
Copy link

Not really an issue but I thought Python3.10 was supported since version 2.11? Only see Python3.9 wheels in: https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/depthai/

Willing to help to add these are build target's for the wheel. Just need to be pointed in the right direction.

@moratom
Copy link
Collaborator

moratom commented Jan 22, 2025

Hi @jackmead515, sorry for the late response.

We only build 32-bit arm wheels for the supported distributions on RPI.
This means we're currently building the wheels for python versions 3.7, 3.9 and 3.11.

Would you maybe be able to compile the wheels from source for your usecase?

@jackmead515
Copy link
Author

jackmead515 commented Jan 22, 2025

Thanks for the reply. I was able to bypass this but after upgrading to 2.29.0.0, discovered that the wheels for Python3.9 for armv7 are not available! :(

I was able to build in docker with this script:

#!/bin/bash

set -e

if [ -f /etc/os-release ]; then

    source /etc/os-release

        if [[ $(uname -m) =~ ^arm* ]]; then
            echo "Installing depthai for arm"
            git clone https://github.com/luxonis/depthai-python.git
            cd depthai-python
            git submodule update --init --recursive
            git checkout v${DEPTH_AI_VERSION}
            cd /depthai-python
            cmake -H. -B build -D PYTHON_EXECUTABLE=$(which python3) -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -D CMAKE_INSTALL_PREFIX=/usr/local
            cmake --build build --parallel $(nproc)
            ln -s /depthai-python/build/depthai.cpython-39-arm-linux-gnueabihf.so /usr/local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
        else
            echo "Installing depthai for x86"
            python3 -m pip install depthai==${DEPTH_AI_VERSION} --verbose
        fi

else
    echo "Error: Host OS not supported"
    exit 1
fi

@moratom
Copy link
Collaborator

moratom commented Jan 22, 2025

@jackmead515
Copy link
Author

I remember seeing this and troubleshooting it for a while thinking that maybe the wheel naming as malformed? But no I don't remember that working for me.

@moratom
Copy link
Collaborator

moratom commented Jan 22, 2025

Checking the other versions we don't seem to have changed it.
What's your setup? Is it a RPI?

@jackmead515
Copy link
Author

I am cross-compiling in Docker on an amd64 machine. Utilizing Docker image python:3.9-slim with build command:

docker buildx build \
    --platform linux/amd64,linux/arm/v7 \
    ...

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