jetson-inference icon indicating copy to clipboard operation
jetson-inference copied to clipboard

Hello World on Jetson Orin Nano - docker/run.sh: line 198: [: =: unary operator expected

Open moh-C opened this issue 1 year ago • 4 comments

Hey! I have been having really a bad time with Jetson Orin Nano since the compatibility issues are just endless. I started S1E1 from NVIDIA Developer channel on YouTube which did not work at all (since they are for JetPack 4.6 as opposed to 5.1 which is for Orin). NVIDIA forum suggested I start watching the S3E1 from that very same channel wherein you start giving tutorials which would be compatible with Orin. When I try to run the docker/run.sh, I get the following error:

docker/tag.sh: line 4: docker/containers/scripts/l4t_version.sh: No such file or directory docker/tag.sh: line 6: [: =: unary operator expected docker/tag.sh: line 36: [: =: unary operator expected localuser:root being added to access control list CONTAINER_IMAGE: dustynv/jetson-inference: DATA_VOLUME: --volume /home/mohammad/GitHub/jetson-inference/data:/jetson-inference/data --volume /home/mohammad/GitHub/jetson-inference/python/training/classification/data:/jetson-inference/python/training/classification/data --volume /home/mohammad/GitHub/jetson-inference/python/training/classification/models:/jetson-inference/python/training/classification/models --volume /home/mohammad/GitHub/jetson-inference/python/training/detection/ssd/data:/jetson-inference/python/training/detection/ssd/data --volume /home/mohammad/GitHub/jetson-inference/python/training/detection/ssd/models:/jetson-inference/python/training/detection/ssd/models --volume /home/mohammad/GitHub/jetson-inference/python/www/recognizer/data:/jetson-inference/python/www/recognizer/data V4L2_DEVICES: --device /dev/video0 --device /dev/video1 DISPLAY_DEVICE: -e DISPLAY=:1 -v /tmp/.X11-unix/:/tmp/.X11-unix docker/run.sh: line 198: [: =: unary operator expected docker/run.sh: line 213: [: =: unary operator expected

I have also cloned the latest version. My camera is also plugged in. But I really do not get why should I get "[:=: unary operator expected" error. I would really appreciate it if you told me what should I do for it to be compatible with jetpack 5.1. Or if this repo is just for Jetson Nano (so JetPack 5.x should be excluded)? How and where should I start for Jetson Orin?!

moh-C avatar Aug 10 '23 22:08 moh-C

Hi @moh-C, sorry for the confusion, and yes jetson-inference is fully compatible with JetPack 5 and Jetson Orin. When you cloned the repo, did you use --recursive? If not, do git submodule update --init

BTW I hope that https://github.com/dusty-nv/jetson-containers is also useful to you

dusty-nv avatar Aug 11 '23 01:08 dusty-nv

I'm having the same errors even after running git submodule update --init, is there any way to solve it ?

yasmineLalabouali avatar Jan 07 '24 16:01 yasmineLalabouali

Are you running it from the root of the repo? e.g. cd docker && ./run does not work for some reason. I'd guess it has to do with relative paths and expecting to be run from the root directory.

topherbuckley avatar Mar 12 '24 07:03 topherbuckley

@moh-C I had the same issue. As @topherbuckley pointed out, you must run run.sh from the parent dir. I.e. docker/run.sh.

andanders avatar Jul 12 '24 07:07 andanders