Coder Social home page Coder Social logo

Comments (7)

makermelissa avatar makermelissa commented on August 16, 2024

Great idea. Want to submit a Pull Request?

from adafruit_python_platformdetect.

arhyneRWU avatar arhyneRWU commented on August 16, 2024

Yea, be happy to. I'll have to look at the code and get that set up.

from adafruit_python_platformdetect.

makermelissa avatar makermelissa commented on August 16, 2024

Thank you

from adafruit_python_platformdetect.

arhyneRWU avatar arhyneRWU commented on August 16, 2024

Pull request is created on Adafruit_Blinka where the error message is generated from

adafruit/Adafruit_Blinka#469

from adafruit_python_platformdetect.

ryanddunn avatar ryanddunn commented on August 16, 2024

I'm not that familiar with Python, Adafruit, etc. so please forgive my ignorance. I'm running into this exact error.

I ran the command...

pip3 install --upgrade adafruit-blinka adafruit-platformdetect

But that didn't see to help my issue. Here is the full error I'm running into.

Traceback (most recent call last):
  File "/media/ryan/RPI-RP2/code.py", line 2, in <module>
    import board
  File "/home/ryan/PycharmProjects/MacroPad-RP2040/venv/lib/python3.10/site-packages/board.py", line 279, in <module>
    raise NotImplementedError("Board not supported {}".format(board_id))
NotImplementedError: Board not supported GENERIC_LINUX_PC

Process finished with exit code 1

FYI, Ubuntu 22 LTS, PyCharm, Python 3.10.4

Any ideas?

from adafruit_python_platformdetect.

arhyneRWU avatar arhyneRWU commented on August 16, 2024

Please provide your board name. Your running what type of microcomputer? Is it a PC running Linux?

The error is generated because your board is not found.

The code is erroring because it's trying to import the board pin configurations but can't find your model.

error is here
https://github.com/adafruit/Adafruit_Blinka/blob/main/src/board.py

can't find a board so gets to else:

else:
    raise NotImplementedError("Board not supported {}".format(board_id))

Needs your pin names that are found in this directory and has to import that board in the code above.
https://github.com/adafruit/Adafruit_Blinka/tree/main/src/adafruit_blinka/board

looks like someone has requested this be an added feature

adafruit/Adafruit_Blinka#546

from adafruit_python_platformdetect.

ryanddunn avatar ryanddunn commented on August 16, 2024

Thank you for the reply @arhyneRWU

I believe the board name is "MacroPad RP2040" (Raspberry Pi RP2040 Chip) https://circuitpython.org/board/adafruit_macropad_rp2040/

Connecting to Linux, specifically Ubuntu 22.04 LTS

from adafruit_python_platformdetect.

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.