Giter Club home page Giter Club logo

Comments (13)

dhalbert avatar dhalbert commented on August 22, 2024 1

@makermelissa This appears to be failing with Python 3.12 on Windows and macOS, even with the MCP2221 env var set?

from adafruit_blinka.

dhalbert avatar dhalbert commented on August 22, 2024 1

@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.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

raku9cam avatar raku9cam commented on August 22, 2024

I had the same problem, but changing the Python version from 3.10 to 3.9 fixed it.

from adafruit_blinka.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

dhalbert avatar dhalbert commented on August 22, 2024

@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.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

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.

dhalbert avatar dhalbert commented on August 22, 2024

@caternuson of interest to you

from adafruit_blinka.

mrdrdemmy avatar mrdrdemmy commented on August 22, 2024

@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.

Ah. Good catch! Thank you very much.

from adafruit_blinka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.