Comments (13)
@makermelissa This appears to be failing with Python 3.12 on Windows and macOS, even with the MCP2221 env var set?
from adafruit_blinka.
@mrdrdemmy Note that the Terminal window in VSCode is PowerShell, by default, so you need to use $env:BLINKA_MCP2221=1
, not set BLINKA_MCP2221=1
. I have added a note to the Guide about this.
from adafruit_blinka.
Same deal here (yes, latest package is reported to have been installed). At the Python prompt:
>>> import board Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\xyz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\board.py", line 387, in <module> raise NotImplementedError( NotImplementedError: Adafruit-PlatformDetect version 3.60.0 was unable to identify the board and/or microcontroller running the Windows platform. Please be sure you have the latest packages by running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'
I am not sure what is being looked for here. The desktop machine is a year-old Dell Vostro, running an up-to-date Windows 11. A mcp2221a breakout is connected, and looks fine in device manager. What's up?
EDIT (per dhalbert, below): I am using the latest VS Code and build tools, and followed the instructions at https://learn.adafruit.com/circuitpython-libraries-on-any-computer-with-mcp2221.
from adafruit_blinka.
I had the same problem, but changing the Python version from 3.10 to 3.9 fixed it.
from adafruit_blinka.
I have version 3.11.6 installed, and bristle at being compelled to roll back just to address an otherwise obscure issue. I will give it a shot, though, and see whether it was worth the effort. Thanks for the tip!
from adafruit_blinka.
Well, that was easy. On a whim, I moved up to 3.12.2, instead of down to 3.9, and the blinka install worked after that. Thanks again for the versioning tip!
from adafruit_blinka.
Whoops. Upgrading to 3,12,2 DID NOT fix the problem; import board continues to yield the same error as above. Python.org no longer offers an installer for version 3.9, so I will be putting this little project aside pending more ideas. Too bad, since the mcp2221 breakout would have been pretty handy.
Apologies, if I led anyone astray with my previous comment!
from adafruit_blinka.
@mrdrdemmy and @raku9cam Please edit your posts above to make clear exactly what platform you are running on, if you've set any environment variables for an MCP2221, etc., and how you're setting them. Someone was trying to set the variable in a VScode terminal window, for instance, and that did not seem to work.
from adafruit_blinka.
I did set BLINKA_MCP2221=1 in the VS Code terminal. It's interesting to learn about the potential VS Code issue, though I haven't noticed trouble setting environment variables there before (e.g., when wrestling with the pico pi sdk install). I'll try setting it outside of VS Code when I get a chance. Thank you.
from adafruit_blinka.
per dhalbert, above: "Someone was trying to set the variable in a VScode terminal window, for instance, and that did not seem to work."
YES! Adding BLINKA_MCP2221 to my local environment outside of VS Code worked. I guess that'll have to go in my start-up script now.
Thank you for your help.
from adafruit_blinka.
@caternuson of interest to you
from adafruit_blinka.
@mrdrdemmy Note that the Terminal window in VSCode is PowerShell, by default, so you need to use
$env:BLINKA_MCP2221=1
, notset BLINKA_MCP2221=1
. I have added a note to the Guide about this.
Ah. Good catch! Thank you very much.
from adafruit_blinka.
Related Issues (20)
- Please add support for the OrangePiCM4 HOT 3
- board HOT 1
- Accessing digitalio CE0 results in a device busy error on Pi5 HOT 22
- RP2040 fails on valid UART pin combinations HOT 2
- AttributeError: pin instead of pin.id HOT 1
- NameError: name 'Pin' is not defined (ATOMIC PI) HOT 1
- Support for Feather M4 Express HOT 1
- Adafruit_CircuitPython_MCP2515 not working correctly HOT 1
- Raspberry Pi 5 PWMOut needs updating to libgpiod HOT 1
- Requesting support for Geniatech xpi-3566-zero
- Is the Rock 4SE not supported? HOT 4
- UnexpectedMakers ProS3 HOT 3
- Issue with Adafruit-PlatformDetect on Windows
- SSD1306 is not working on a Raspberry Pi 5 HOT 7
- CE1 busy on Pi 5 HOT 1
- Banana Pi M2 Berry
- Please support RP2040-LCD-1.28 HOT 1
- adafruit HOT 2
- KB 2040 board HOT 2
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_blinka.