-
Notifications
You must be signed in to change notification settings - Fork 36
No module named 'adafruit_mcp230xx' #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just +1 on this. Having the same problem trying to do the same thing. |
Okay, just figured this out. I don't know if this is the correct solution, but it works for me:
Note that I am using What is happening here is that installing Also note that when grabbing the CircuitPython library bundle you have to make sure you get the -py and not the -mpy. The -mpy ones are compiled for MicroPython and don't work on Raspberry Pi. |
I think as soon as @caternuson is around he'll be able to fix it, we did some improvements on the library and probably just needs a small tweak to regress |
Sry. Probably broke something with the PyPi distro with the refactor (#11). Will investigate and fix. |
OK. Should be fixed now. Please try the latest 2.0.1 release which should fix this. To install: sudo pip3 install --upgrade --force-reinstall adafruit_circuitpython_mcp230xx and as a quick test: pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from adafruit_mcp230xx.mcp23008 import MCP23008
>>> |
Hi @caternuson, this seems to fix the missing import, but the charlcd library still isn't working:
Maybe this means the character LCD library needs an update too? This seems to be the offending line: https://github.com/adafruit/Adafruit_CircuitPython_CharLCD/blob/master/adafruit_character_lcd/character_lcd_rgb_i2c.py#L87 Thanks, |
Yep. That should be fixed soon also: |
I'm still getting the same error even after reinstalling the packages. |
Which error? The original one related to the package:
or the one related to the need to update CharLCD:
|
I am still getting the same error message. I did the forced reinstall, the files are there. |
That's the error related to the CharLCD library, which is a separate library/issue. It will be broken until it is updated to match the changes done to this library. Keep an eye on this PR: |
ok, thanks. Maybe I need to switch to a different display? the app is a
sonos controller, which takes input from a jukebox wallbox to play
selections on the sonos music system. the display shows the track and
artist playing. Is broken :-(
…On Thu, May 30, 2019 at 4:54 PM Carter Nelson ***@***.***> wrote:
That's the error related to the CharLCD library, which is a separate
library/issue. It will be broken until it is updated to match the changes
done to this library.
Keep an eye on this PR:
adafruit/Adafruit_CircuitPython_CharLCD#39
<adafruit/Adafruit_CircuitPython_CharLCD#39>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=AGLUN4Z27Q7Q2ZR6NWQZOQTPYBLLTA5CNFSM4HN4INEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWTXM5I#issuecomment-497514101>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGLUN43KIUUYGP324T6AIULPYBLLTANCNFSM4HN4INEA>
.
--
*Geoff Shorten*
*403.471.6134 (c)*
*403.251.6015 (h)*
2008 38th Avenue SW
Calgary, Alberta
T2T 2K4
|
It should work again once the other library is updated. The general issue is with other libraries that used this library (like the CharLCD library). There should be no issues using this library as shown in the examples to interact with an MCP230xx directly. |
Steps to reproduce
Expected behavior
Import of module
adafruit_mcp230xx
Actual behavior
Environment
RPI: Raspberry Pi B (model 1)
OS: Raspbian Stretch Lite (Release date: 2019-04-08)
I am trying to use a Raspberry Pi B with a Adafruit 16x2 Character LCD + Keypad for Raspberry Pi and following the instructions, need this library. Installing it via pip3 does not seem to install it.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: