Comments (3)
Unfortunately this is the less frustrating of two compromises- the "python-smbus" package from apt is required to satisfy a dependency on smbus on a Pi. This package does not exist on the python package index. Adding smbus as a dependency would just break the package in cases where it's not already installed.
from enviro-phat.
I saw this when installing it. The problem is, if your create a default virtualenv
you cannot access the system smbus as well. So you need --system-site-packages
. I am not sure if somewhere should be a hint for it, or if it's too confusing for new programmers.
Another issue i ran into: you need to enable I2C first. No problem via config.txt
or raspi-config
, but there is no obvious hint, that the board uses I2C.
from enviro-phat.
I'll add "Full detailed install instructions" to our ongoing practises, so advanced users (who wont necessarily use the one-line installer) can get some understanding of what's required.
from enviro-phat.
Related Issues (16)
- Installation command rejected? HOT 6
- Importing from envirophat fails with a TypeError HOT 11
- 'Sudo python' for use HOT 7
- Importing from envirophat fails on zero HOT 2
- Loading script on boot: [Errno 25] Inappropriate ioctl for device HOT 1
- QNH defined HOT 3
- Error when passing unit kwarg into pressure(self, unit=None) HOT 2
- Enviro phat not conecting. HOT 3
- Missing unit argument in learn guide HOT 1
- OLD vs NEW enviro pHAT HOT 3
- OSError: [Errno 121] Remote I/O error 3 HOT 4
- Migrate Enviro pHAT library to new breakout packages HOT 1
- Remote I/O Error HOT 6
- Such serious! HOT 1
- light sensor: division by zero HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enviro-phat.