Comments (13)
If there are annotations in the imported CircuitPython code, then I think it the imports will fail, unfortunately, just further on.
Maybe the solution is on the Jetson to add this file in a PYTHONPATH-accessible place?
__future__.py
:
annotations = False
This will not work if there are other uses of from __future__ import
in other Python code that you are using.
from adafruit_python_platformdetect.
Thanks, it sounds like maybe we should make a 3.20.1 release that requires 3.7, and withdraw the 3.20.0 release so it isn't found.
Is it possible in Jetson to install 3.7 or higher for user-only use, without replacing /usr/bin/python? Is there a package available or would you need to build it yourself?
from adafruit_python_platformdetect.
yes it is possible. In fact, it is petty easy
sudo apt-get install -y python3.7
# update the python3 priority
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
# view the change
sudo update-alternatives --config python
However, the painful part is to re-config or re-install or build from source those package such as openCV, ROS, TensorRT, Pytorch, etc. on 3.7.
from adafruit_python_platformdetect.
PR #230 may fix this.
from adafruit_python_platformdetect.
I have updated the Jetson Nano Guide for installing Python 3.7 and making it the default, which actually was pretty easy:
https://learn.adafruit.com/circuitpython-libraries-on-linux-and-the-nvidia-jetson-nano/initial-setup#install-python-3-dot-7-and-make-default-3114929-19
from adafruit_python_platformdetect.
I have updated the Jetson Nano Guide for installing Python 3.7 and making it the default, which actually was pretty easy: https://learn.adafruit.com/circuitpython-libraries-on-linux-and-the-nvidia-jetson-nano/initial-setup#install-python-3-dot-7-and-make-default-3114929-19
So, Is that any problem at Opencv, numpy old version. Or are you update Opencv for python 3.7
from adafruit_python_platformdetect.
Does Opencv not run on Python 3.7?
from adafruit_python_platformdetect.
Does
I'll try tomorrow 👍
from adafruit_python_platformdetect.
about the Error
I am a Jetson user (using pyhton 3.6), for Adafruit_Python_PlatformDetect version bigger than 3.19.6 the following error wil be recived
>>> import board Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/board.py", line 39, in <module> import adafruit_platformdetect.constants.boards as ap_board File "/usr/local/lib/python3.6/dist-packages/adafruit_platformdetect/__init__.py", line 10, in <module> from .board import Board File "/usr/local/lib/python3.6/dist-packages/adafruit_platformdetect/board.py", line 24 from __future__ import annotations ^ SyntaxError: future feature annotations is not definedIssues
Maybe this due to the 3.20.0 added Type Annotations? Therefore maybe the version that require Python 3.7 is starting from
3.20.0
instead of3.21.0
?Possible quick fix for this issues
the solution that work for me (using python3.6)
- remove the current version(anything > 3.19.6)
$sudo -H pip3 uninstall Adafruit-PlatformDetect
- specify the version to 3.19.6
$sudo -H pip3 install Adafruit-PlatformDetect==3.19.6
OR try backport of future annotations(not yet test) OR update to python3.7(painful in jetson)(not yet test)
Thank you, downgrade is solve the problem
from adafruit_python_platformdetect.
Thanks, it sounds like maybe we should make a 3.20.1 release that requires 3.7.
I'm not sure how that can be done at this point in time. Perhaps your git-fu is better than mine. I know we could remove both the 3.20.0 and 3.20.1 releases though, since they are the only 2 in the gap where it's broken.
from adafruit_python_platformdetect.
What's the status of this? Blinka is now 3.7+, right?
from adafruit_python_platformdetect.
What's the status of this? Blinka is now 3.7+, right?
Correct
from adafruit_python_platformdetect.
Thank you, downgrade is solve the problem
Closing for now since the problem was solved.
from adafruit_python_platformdetect.
Related Issues (20)
- CM4001032 Not Recognized HOT 2
- Libre AML-S905X-CC (LePotato) HOT 6
- Raspberry pi 4B 8GB d03115 not detected HOT 1
- Add any_embedded_linux test to detect.py HOT 1
- Simplify Pi 4 (and possibly CM4) Rev Code Checks HOT 3
- Unable to install but it was working previously HOT 11
- Move from setup.py to pyproject.toml
- Build fails HOT 3
- Problem for Orange Pi zeros 2 detection on Debian HOT 11
- Problem with Detecting A new version of Raspberry pi 3B + HOT 5
- Build failures due to board.py exceeding maximum lines permitted by Pylint HOT 2
- Circuitpython - Generic datalogger code using platformdetect for sbc/embedded library switching HOT 2
- Recursion Error when recognizing on certain systems HOT 10
- Unsupported Board (d03115) HOT 4
- #331 breaks microcontroller package HOT 4
- OLIMEX_LIME2 Not Found HOT 1
- circuitpython-build-bundles causing CI failures HOT 3
- detector.chip.id raise AttributeError() # Avoid infinite recursion on RPI 3 B HOT 5
- Khadas vim3 not being detected on Linux Ubuntu 4.9 HOT 3
- orangepipc2 detection is wrong HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_python_platformdetect.