Giter VIP home page Giter VIP logo

jetsonutilities's Issues

TypeError: a bytes-like object is required, not 'str'

./jetsoninfo.py
results in

Traceback (most recent call last): File "/home/zeno/software/jetsonUtilities/jetsonInfo.py", line 22, in <module> (key, _, value) = line.partition("=") TypeError: a bytes-like object is required, not 'str'

[BUG] TypeError: a bytes-like object is required, not 'str'

root@zi-desktop:~/Desktop/Desktop_zi/Work/I9/Tools# git clone https://github.com/jetsonhacks/jetsonUtilities

Cloning into 'jetsonUtilities'...
remote: Enumerating objects: 108, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 108 (delta 6), reused 18 (delta 4), pack-reused 84
Receiving objects: 100% (108/108), 29.08 KiB | 620.00 KiB/s, done.
Resolving deltas: 100% (40/40), done.

root@zi-desktop:~/Desktop/Desktop_zi/Work/I9/Tools# cd jetsonUtilities

root@zi-desktop:~/Desktop/Desktop_zi/Work/I9/Tools/jetsonUtilities# python jetsonInfo.py

Traceback (most recent call last):
File "jetsonInfo.py", line 22, in
(key, _, value) = line.partition("=")
TypeError: a bytes-like object is required, not 'str'

root@zi-desktop:~/Desktop/Desktop_zi/Work/I9/Tools/jetsonUtilities# ./jetsonInfo.py

Traceback (most recent call last):
File "jetsonInfo.py", line 22, in
(key, _, value) = line.partition("=")
TypeError: a bytes-like object is required, not 'str'

root@zi-desktop:~/Desktop/Desktop_zi/Work/I9/Tools/jetsonUtilities# python

Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Not detecting JetPack 4.3 on Tx2

jetsonUtilities$ python jetsonInfo.py

 NVIDIA Jetson TX2
 L4T 32.4.2 [ JetPack UNKNOWN ]
 Ubuntu 18.04.4 LTS
 Kernel Version: 4.9.140-tegra
 CUDA 10.2.89

[FEATURE REQUEST] On Jetson Nano: Warn about OpenCV 4.1.1 cmake not finding cuDNN when using JetPack 4.4

Describe the issue
OpenCV 4.1.1 cmake doesn't find cuDNN when using JetPack 4.4

System

  • Jetson Nano
  • cmake 3.16.3
  • L4T 32.4.3 [ JetPack 4.4 ]
    • Ubuntu 18.04.5 LTS
    • Kernel Version: 4.9.140-tegra
  • CUDA 10.2.89
    • CUDA Architecture: 5.3
  • OpenCV version: 4.1.1
    • OpenCV Cuda: NO
  • CUDNN: 8.0.0.180
  • TensorRT: 7.1.3.0
  • Vision Works: 1.6.0.501
  • VPI: 0.3.7

To Reproduce

  1. Download and install the Jetson Nano SD Card image
    https://developer.nvidia.com/jetson-nano-sd-card-image
    JP 4.4 from 2020/07/07
  2. optional: install cmake 3.16.3
  3. Checkout this repo and run:
    ./buildOpenCV.sh |& tee openCV_build.log
    In the cmake config you can see that cuDNN -> NO is diplayed and OpenCV is built without it

Expected behavior
cuDNN -> YES is detected by cmake and OpenCV is built with cuDNN

Additional context
I was using a newer version of cmake as my build pipline requires this. So there's no issue related reason for the updated cmake version. This is likely not the cause for the error.

[BUG] jetpack is UNKNOW

When I run python jetsonInfo.py I see

image

Then I did
sudo apt install nvidia-jetpack
sudo apt show nvidia-jetpack shows

Package: nvidia-jetpack
Version: 4.5.1-b17
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: nvidia-cuda (= 4.5.1-b17), nvidia-opencv (= 4.5.1-b17), nvidia-cudnn8 (= 4.5.1-b17), nvidia-tensorrt (= 4.5.1-b17), nvidia-visionworks (= 4.5.1-b17), nvidia-container (= 4.5.1-b17), nvidia-vpi (= 4.5.1-b17), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.4 kB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t210 r32.5/main arm64 Packages
Description: NVIDIA Jetpack Meta Package

but python jetsonInfo.py shows me same result
image

Jetson nano detected as TX1

Hi, this happens on a fresh install of "Developer Preview of JetPack 4.4", downloaded from https://developer.nvidia.com/jetson-nano-sd-card-image, which redirects you to download a file called nv-jetson-nano-sd-card-image-r32.4.2.zip of size 5.91 GB, exactly 6,347,594,220 bytes.

When running jetsonInfo.py it says something about a TX1 although I'm running it on a Nano.
Following is ouput:

drakorg@drakorg-jetpack44:~/workspace/nspi/scripts/jetson-nano/jetsonUtilities$ sudo ./jetsonInfo.py
 NVIDIA Jetson TX1
 L4T 32.4.2 [ JetPack UNKNOWN ]
 Ubuntu 18.04.4 LTS
 Kernel Version: 4.9.140-tegra
 CUDA 10.2.89

It also states that the Jetpack version is unknown, when I would expect it to detect it as 4.4.
Thank you.
Best regards,
Eduardo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.