Comments (8)
Ah I think I need to enable SPI as well..
https://www.abelectronics.co.uk/forums/thread/demo-iowrite-py-problem/
https://www.abelectronics.co.uk/kb/article/2/spi-and-raspbian-linux-on-a-raspberry-pi
from abelectronics_python3_libraries.
Please can you try running the demo scripts in the same folder as the expander pi libaries and see if you still get the same errors?
from abelectronics_python3_libraries.
Thanks - that solves the locations for the ABElectronics scripts but it also cannot find the spidev module.
ImportError: No module named spidev
I followed this guide
from abelectronics_python3_libraries.
Please can you try installing spidev using the instructions on https://www.abelectronics.co.uk/kb/article/2/spi-and-raspbian-linux-on-a-raspberry-pi
from abelectronics_python3_libraries.
That's the guide I used. See above.
from abelectronics_python3_libraries.
It could possibly be a permissions problem with spidev. Can you try running the script using sudo and see if that works?
from abelectronics_python3_libraries.
Success! It wasn't root user I needed though, it was Python 3 instead of Python 2. When I opened the script it chose the Python2 IDLE instead of Python3 IDLE. Silly mistake. Thanks for the help.
from abelectronics_python3_libraries.
Thank you for the update. I am glad that you found the fix for the issue.
from abelectronics_python3_libraries.
Related Issues (4)
- Help python 3 users HOT 1
- ADC Read Speed and SPI Clock HOT 2
- PyPI package HOT 2
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 abelectronics_python3_libraries.