Depthai Viewer
Project description
Depthai Viewer
Install
python3 -m pip install depthai-viewer --extra-index-url https://test.pypi.org/simple -U
Run
depthai-viewer
# OR
python3 -m depthai_viewer
Building From Source
Setup:
- Install the Rust toolchain: https://rustup.rs/
git clone git@github.com:rerun-io/rerun.git && cd rerun
- Run
./scripts/setup_dev.sh
. - Make sure
cargo --version
prints1.67.1
once you are done
Building
To build from source and install Rerun into your current Python environment run:
python3 -m pip install --upgrade pip
pip3 install -r rerun_py/requirements-build.txt
pip3 install "./rerun_py"
ℹ️ Note:
If you are unable to upgrade pip to version >=21.3
, you need to pass --use-feature=in-tree-build
to the pip3 install
command.
Development
To set up a new virtualenv for development:
just py-dev-env
# For bash/zsh users:
source venv/bin/activate
# Or if you're using fish:
source venv/bin/activate.fish
Build, test, and run
For ease of development you can build and install in "editable" mode. This means you can edit the rerun
Python code without having to re-build and install to see changes.
# Build the depthai-viewer and install in develop mode into the virtualenv
# Re-run this if the Rust code has changed!
just py-build
Test
# Run the unit tests
just py-test
# Run the linting checks
just py-lint
Building an installable Python Wheel
The Python bindings to the core Rust library are built using https://github.com/PyO3/pyo3.
To build an installable Python wheel run:
pip install -r rerun_py/requirements-build.txt
maturin build -m rerun_py/Cargo.toml --release
By default the wheels will be built to target/wheels
(use the -o
flag to set a different output directory).
Now you can install rerun
in any Python3 environment using:
pip3 install target/wheels/*.whl
Troubleshooting
You can run with RUST_LOG=debug
to get more output out of the depthai-viewer.
If you are using an Apple-silicon Mac, make sure rustc -vV
outputs host: aarch64-apple-darwin
. If not, this should fix it:
rustup set default-host aarch64-apple-darwin && rustup install 1.67
If you want to switch back, this is how:
rustup set default-host x86_64-apple-darwin && rustup install 1.67
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for depthai_viewer-0.1.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca94cf9750d82ed854d582f685535b32ef1a19213e10fd0d1f6a3fa867baab5 |
|
MD5 | ca122e2f1e3ea9083736eeca9b9322fd |
|
BLAKE2b-256 | 8a0b438ccdd22d21b40b51375bc6ad6d45fc22baff733056813b473fb7eb921a |
Hashes for depthai_viewer-0.1.0-cp38-abi3-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffd9849119ceb4218d63bb8c2ba1d611023aabd1a9f2922f16cb5d1b8099d36 |
|
MD5 | 1248722e93470bc222e9beb8fa8c9905 |
|
BLAKE2b-256 | bd715cceb2608a9327e6c3178012bd4033b8d49b258a7f59e7de396ae6f7b082 |
Hashes for depthai_viewer-0.1.0-cp38-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3bedc7ef68d26e06f29d602405b3ea6dbb3643170985ed43cd1fe35ffcc105f |
|
MD5 | a0917d30e4a5fcb4489dd2e30e8594c5 |
|
BLAKE2b-256 | 580e36b04239558174ae800dbac660157b9eb6c7156ff461495b571e79307914 |