Giter Site home page Giter Site logo

smbus not found about inky HOT 5 CLOSED

pimoroni avatar pimoroni commented on June 12, 2024
smbus not found

from inky.

Comments (5)

Gadgetoid avatar Gadgetoid commented on June 12, 2024 1

Should be fixed! Thanks for letting me know.

from inky.

fisherthewol avatar fisherthewol commented on June 12, 2024

This doesn't actually seem to be fixed as of 03/03/2019; installing the library to my venv did not also install any smbus library.
I fixed it locally by pip3 install smbus-cffi, but that library hasn't been updated since 2015 (on pypi anyway).
I'm more than happy to write a pull request replacing it with a drop in replacement (I'm thinking smbus2 https://pypi.org/project/smbus2/) and making sure it's a dependancy if that seems to be needed?

from inky.

Gadgetoid avatar Gadgetoid commented on June 12, 2024

Ah, this would be because your venv is either not using system packages, or using a version of Python for which the SMBus packages are not available, presumably?

The apt/pip mix of package sources has always been something of a thorn in my side and I've been contemplating moving to smbsu2 generally since I already use it in instances where I need raw i2c and not SMBus communication.

The switch suggested in #24 should work. I'll look into it.

from inky.

fisherthewol avatar fisherthewol commented on June 12, 2024

Afaik using a venv means that I competely ignore system-wide packages, yes. The rpi I'm using is running python 3.5.(2?), Which does not appear to have a package just called SMBus on it's own.

I'll spend the afternoon testing the changes in #24 locally to see if it does work and get back to you.

from inky.

Gadgetoid avatar Gadgetoid commented on June 12, 2024

I've run into similar problems with my local test environments for non-standard versions of Python- there's simply no smbus package (unless I compile from source) since the C library file is named in the form smbus.cpython-XXm-arm-linux-gnueabihf.so for 3+ and smbus.arm-linux-gbnueabihf.so for 2.x.

And there's no pip version of smbus- although now we have arm wheel support it might be sensible to look into providing one.

from inky.

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.