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

Fix: Replace undefined ARCH with platform.machine() #770

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

calpa
Copy link

@calpa calpa commented Jan 7, 2025

This PR fixes a NameError that occurs when checking for aarch64 architecture in l4t_version.py. The undefined ARCH variable has been replaced with platform.machine() which is the correct way to check the system architecture.

Changes made:

  • Replace ARCH with platform.machine() in the error message
  • Use the same platform.machine() that's being checked in the condition

Testing:
The code now properly checks the architecture without raising a NameError.

Replace the undefined ARCH variable with platform.machine() in l4t_version.py
to fix NameError when checking for aarch64 architecture.
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

Successfully merging this pull request may close these issues.

1 participant