Exception: Could not determine Jetson model
See original GitHub issueUpdated to include uname -a && pip3 --version && python3 --version && python3 -m pip install --user adafruit-blinka && error traceback Jetson.GPIO 2.0.0 Running on Raspberry Pi 3B+
$ uname -a
Linux ubiquityrobot 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l armv7l arm7l GNU/Linux
$ pip3 --version
pip 19.2.2. from /home/ubuntu/.local/lib/python3.5/site-packages/pip (python 3.5)
$ python3 --version
Python 3.5.2
$ python3 -m pip install --user adafruit-blinka
Requirement already satisfied: adafruit-blinka in ./.local/lib/python3.5/site-packages (2.3.2)
Requirement already satisfied: Jetson.GPIO in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (2.0.0)
Requirement already satisfied: sysv-ipc in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (1.0.0)
Requirement already satisfied: Adafruit-PlatformDetect in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (1.3.2)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from adafruit-blinka) (3.0)
Requirement already satisfied: RPi.GPIO in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (0.7.0)
Requirement already satisfied: rpi-ws281x>=4.0.0 in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (4.2.2)
Requirement already satisfied: Adafruit-PureIO in ./.local/lib/python3.5/site-packages (from adafruit-blinka) (0.2.3)
$ python3 blinkatest.py
Traceback (most recent call last):
File "blinkatest.py", line 1, in <module>
import board
File "/home/ubuntu/.local/lib/python3.5/site-packages/board.py", line 47, in <module>
from adafruit_blinka.board.raspi_40pin import *
File "/home/ubuntu/.local/lib/python3.5/site-packages/adafruit_blinka/board/raspi_40pin.py", line 3, in <module>
from adafruit_blinka.microcontroller.bcm283x import pin
File "/home/ubuntu/.local/lib/python3.5/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 1, in <module>
import RPi.GPIO as GPIO
File "/home/ubuntu/.local/lib/python3.5/site-packages/RPi/GPIO/__init__.py", line 1, in <module>
from Jetson.GPIO import *
File "/home/ubuntu/.local/lib/python3.5/site-packages/Jetson/GPIO/__init__.py", line 1, in <module>
from .gpio import *
File "/home/ubuntu/.local/lib/python3.5/site-packages/Jetson/GPIO/gpio.py", line 70, in <module>
model, JETSON_INFO, _channel_data_by_mode = gpio_pin_data.get_data()
File "/home/ubuntu/.local/lib/python3.5/site-packages/Jetson/GPIO/gpio_pin_data.py", line 260, in get_data
raise Exception('Could not determine Jetson model')
Exception: Could not determine Jetson model
Installation of adafruit’s adafruit-blinka has a Jetson.GPIO dependency which was downloaded and installed using pip3.
Error returns ‘Could not determine Jetson model’ from gpio_pin_data.py.
My /proc/device-tree/compatible looks like: raspberrypi,3-model-b-plus^@brcm,bcm2837^@
Question: Does jetson-gpio not support raspberry pi hardware? Can I manually modify my compatible file to include a compatible board, and if so which one? Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
GPIO python library not working on Mistral's Neuron devkit for ...
Hi all, We need to access GPIO using python library Jetson.GPIO .When we try to import this ... Exception: Could not determine Jetson...
Read more >Could not find a version that satisfies the requirement Jetson ...
I downloaded the Jetson.GPIO tar file from pypi and extracted it. Then I cd into this directory using the command line and ran...
Read more >Problems Setting Up ADS1015 - Adafruit forums
I have been trying unsuccessfully to get the ADS1015 to run on an RPi 2 Model B running Raspian Buster. I've followed the...
Read more >gpio only work with python2 and not python3?
when I try to run it on python3 I get error raise Exception('Could not determine Jetson model') Exception: Could not determine Jetson model...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I walked through the trace and it was just odd that the init.py in RPi/GPIO was importing Jetson.GPIO. I double checked the source and there wasn’t a match despite my system telling me that the RPi.GPIO version was the same as the source. So uninstalled RPi.GPIO and reinstalled and it works!
Thanks for the tip regarding different platform supports!
Now for some motor tinkering >_>
I used that Ubiquity image on a Pi 3B+ and still don’t see Jetson.GPIO being installed automatically when adafruit-blinka is installed using pip. I’ve run out of things to try to reproduce your issue.