adafruit / Adafruit_CircuitPython_NeoPixel

CircuitPython drivers for neopixels.
MIT License
304 stars 99 forks source link

'module' object has no attribute 'D18' #55

Closed francescofact closed 4 years ago

francescofact commented 4 years ago

Hello, on my raspberry pi i get this error related to "board.D18".

The code line is: pin = digitalio.DigitalInOut(board.D18)

The error is: AttributeError: 'module' object has no attribute 'D18'

I have all the package installed and upgraded at the latest version.

jerryneedell commented 4 years ago

did you install "blinka" as in this guide ? https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

also did you install a module called "board" -- you should not have -- board is included in "adafruit_blinka"

jerryneedell commented 4 years ago

Also -- take a look at this guide https://learn.adafruit.com/neopixels-on-raspberry-pi/overview

francescofact commented 4 years ago

thank you. i uninstalled board with pip3 (i don't know what package it is. it was already installed) and reinstalled "adafruit_blinka". now everything works. thank you