Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError #9

Closed
blitzvb opened this issue May 22, 2019 · 5 comments
Closed

NameError #9

blitzvb opened this issue May 22, 2019 · 5 comments

Comments

@blitzvb
Copy link

blitzvb commented May 22, 2019

Running the pip version, I get that error :

Traceback (most recent call last): File "/usr/local/bin/jtop", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/jtop/__main__.py", line 162, in main curses.wrapper(gui, args, tegra) File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper return func(stdscr, *args, **kwds) File "/usr/local/lib/python2.7/dist-packages/jtop/__main__.py", line 108, in gui stat = tegra.read File "/usr/local/lib/python2.7/dist-packages/jtop/jtop.py", line 142, in read while not self._jetsonstats: File "/usr/local/lib/python2.7/dist-packages/jtop/__main__.py", line 65, in signal_handler tegra.close() NameError: global name 'tegra' is not defined

I am running it on a TX1:

declare -x JETSON_BOARD="TX1"
declare -x JETSON_CUDA="9.0.252"
declare -x JETSON_CUDA_ARCH_BIN="5.3"
declare -x JETSON_CUDNN="7.1.5.14-1+cuda9.0"
declare -x JETSON_DESCRIPTION="NVIDIA Jetson NANO/TX1"
declare -x JETSON_JETPACK="3.2"
declare -x JETSON_L4T="28.2.0"
declare -x JETSON_L4T_RELEASE="28"
declare -x JETSON_L4T_REVISION="2.0"
declare -x JETSON_OPENCV="4.1.0"
declare -x JETSON_OPENCV_CUDA="YES"
declare -x JETSON_TENSORRT="4.0.2.0-1+cuda9.0"
declare -x JETSON_TYPE="NANO/TX1"
declare -x JETSON_VISIONWORKS="1.6.0.500n"

nvidia@tegra-ubuntu:~/Desktop$ jetson-release
/usr/local/bin/jetson-release: line 40: /etc/jetson_easy/jetson_variables: No such file or directory

  • NVIDIA Jetson NANO/TX1
    • Jetpack 3.2 [L4T 28.2.0]
    • CUDA GPU architecture 5.3
  • Libraries:
    • CUDA 9.0.252
    • cuDNN 7.1.5.14-1+cuda9.0
    • TensorRT 4.0.2.0-1+cuda9.0
    • Visionworks 1.6.0.500n
    • OpenCV 4.1.0 compiled CUDA: YES
  • Jetson Performance: inactive
@rbonghi
Copy link
Owner

rbonghi commented May 22, 2019

Can u try to reinstall with:

sudo -H pip install --no-cache-dir jetson-stats --upgrade

I don't know but sometimes the command "PostInstall" on setup doesn't work well.

Keep me posted if you fix it

@rbonghi
Copy link
Owner

rbonghi commented May 22, 2019

About the error with jetson_release:

I found the path error!
https://github.com/rbonghi/jetson_stats/blob/master/scripts/jetson-release#L40

I will fix soon!

Thank you

@blitzvb
Copy link
Author

blitzvb commented May 22, 2019

awesome! thx

what's the correct path ? so I can use it right now :)

@rbonghi
Copy link
Owner

rbonghi commented May 22, 2019

About jetson_release

Meanwhile I fix on my repo you can manually edit in "/usr/local/bin/jetson-release"

and change the line 40 from:

source /etc/jetson_easy/jetson_variables

to:

source /opt/jetson_stats/jetson_variables

rbonghi added a commit that referenced this issue May 22, 2019
@blitzvb
Copy link
Author

blitzvb commented May 22, 2019

your fix, did work perfectly! thx again for that and this must have tool.

rbonghi added a commit that referenced this issue May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants