jetsonhacks / jetsonUtilities

Get information about the NVIDIA Jetson OS environment. Lists L4T and JetPack versions, along with major libraries.
Other
202 stars 60 forks source link

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

Closed Marietto2008 closed 3 years ago

Marietto2008 commented 3 years ago

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.

middleprince commented 3 years ago

@Marietto2008 That's not bug! you should use python2

Marietto2008 commented 3 years ago

I can't use python 2. it causes problems with python 3. the author should upgrade the script,making it compatible with 3.

middleprince commented 3 years ago

I can't use python 2. it causes problems with python 3. the author should upgrade the script,making it compatible with 3.

maybe you should choose the better tools jtop, which is better.

Marietto2008 commented 3 years ago

it sounds nice !

jetsonhacks commented 3 years ago

Fixed in v2.2