Package Details: python-depthai 2.26.0.0-2

Git Clone URL: https://aur.archlinux.org/python-depthai.git (read-only, click to copy)
Package Base: python-depthai
Description: DepthAI Python Library
Upstream URL: https://github.com/luxonis/depthai-python
Licenses: MIT
Submitter: Vial
Maintainer: Vial
Last Packager: Vial
Votes: 0
Popularity: 0.000000
First Submitted: 2024-03-05 00:41 (UTC)
Last Updated: 2024-06-16 17:06 (UTC)

Latest Comments

soraxas commented on 2024-06-13 07:59 (UTC) (edited on 2024-06-13 08:09 (UTC) by soraxas)

The package is missing the dependencies of python-build, python-installer and mypy on my machine.

Vial commented on 2024-06-06 00:27 (UTC)

Thanks @dreieck for your feedbacks. It should be better now even though one error remains. Depthai Core use a C++ package manager named 'hunter' which install some static libraries deep down in a folder of my choice which by default is the home user repository (~/.hunter). I didn't manage yet to place those files either in /usr/lib and then link dephtai-python, or find a less worst place in the system to hide those. Any suggestions are welcome, I'll try to fix this last one issue.

dreieck commented on 2024-06-04 14:43 (UTC)

namcap gives errors about missing dependencies and missing installation of license file:

python-depthai E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/python-depthai/ or switching to common license identifiers. Found 0/1 required license files.
python-depthai E: Dependency libusb detected and not included (libraries ['usr/lib/libusb-1.0.so'] needed in files ['usr/lib/python3.12/site-packages/depthai.cpython-312-x86_64-linux-gnu.so'])
python-depthai E: Dependency gcc-libs detected and not included (libraries ['usr/lib/libstdc++.so.6', 'usr/lib/libgcc_s.so.1'] needed in files ['usr/lib/python3.12/site-packages/depthai.cpython-312-x86_64-linux-gnu.so'])
python-depthai E: Dependency glibc detected and not included (libraries ['usr/lib/libc.so.6', 'usr/lib/ld-linux-x86-64.so.2', 'usr/lib/libm.so.6'] needed in files ['usr/lib/python3.12/site-packages/depthai.cpython-312-x86_64-linux-gnu.so'])

Also, this PKGBUILD's build() installs stuff into the build user's home directory and references it in the built package.

Both must not happen!:

python-depthai E: Insecure RUNPATH '/home/<udername>/.hunter/_Base/cb0ea1f/202a650/944e53a/Install/lib/cmake/XLink/dependencies/lib' in file ('usr/lib/python3.12/site-packages/depthai.cpython-312-x86_64-linux-gnu.so')

Please fix.

Regards and thanks for the package!

dreieck commented on 2024-06-04 14:40 (UTC)

Please change options=(!strip) to options+=(!strip) so that other pre-set options are not discarded.

dreieck commented on 2024-06-04 14:38 (UTC)

package() fails with

==> Starting package()...
install: cannot stat '/var/cache/makepkg/build/python-depthai/src/../80-movidius.rules': No such file or directory

You missed to list 80-movidius.rules in the source array and you reference it by ../.

This must not be done!

It $SRCDEST or $BUILDDIR environment variable are set (e.g. in /etc/makepkg.conf) your assumptions of where those files are do not hold anymore.

You must list every local file you use in the source array, and only acces it from $srcdir or a subdirectory.

dreieck commented on 2024-06-04 14:34 (UTC) (edited on 2024-06-04 19:05 (UTC) by dreieck)

Please use packaging according to the Arch Linux python package guidelines:

Download via source, use python -m build and python -m installer, do not use pip!

Regards!

dreieck commented on 2024-06-04 14:32 (UTC) (edited on 2024-06-04 14:33 (UTC) by dreieck)

This PKGBUILD downloads stuff in build().
This should not happen.

Please, if you cannot make sure that everything is downloaded via the source array, then please download in prepare(), so that build() can run offline.

==> Starting build()...
Collecting depthai==2.24.0.0
  Downloading depthai-2.24.0.0.tar.gz (434 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 434.0/434.0 kB 2.4 MB/s eta 0:00:00
[...]

Regards and thanks for maintaining!