zivid / zivid-python

Official Python package for Zivid 3D cameras
BSD 3-Clause "New" or "Revised" License
40 stars 14 forks source link

Usage error when install Zivid SDK #14

Closed trym-b closed 3 years ago

trym-b commented 5 years ago

When we are installing Zivid SDK's debian packages on Ubuntu, we do not set the correct permissions. The temporary directory in function install_www_deb should have an additional line: chmod 775 "$TMP_DIR" || exit $? immediately after creating the directory

nedrebo commented 4 years ago

The result of this error can be seen as a warning or error depending on Ubuntu version:

N: Download is performed unsandboxed as root as file '/tmp/zivid-python-install-www-deb-BqOy/zivid_1.7.0+a115eaa4-4_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

eskaur commented 3 years ago

Is this still an issue, @trym-b ?

nedrebo commented 3 years ago

Fixed in https://github.com/zivid/zivid-python/commit/7ddf591ba6fc7ee49ef5fef3088603720ba21d1f, this bug was silent in 16.04, warning in 18.04 and error in 20.04. Since we now support 20.04 this is no longer a problem.