Giter VIP home page Giter VIP logo

Comments (8)

ossvirt avatar ossvirt commented on July 1, 2024

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.

abelectronicsuk avatar abelectronicsuk commented on July 1, 2024

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.

ossvirt avatar ossvirt commented on July 1, 2024

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.

abelectronicsuk avatar abelectronicsuk commented on July 1, 2024

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.

ossvirt avatar ossvirt commented on July 1, 2024

That's the guide I used. See above.

from abelectronics_python3_libraries.

abelectronicsuk avatar abelectronicsuk commented on July 1, 2024

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.

ossvirt avatar ossvirt commented on July 1, 2024

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.

abelectronicsuk avatar abelectronicsuk commented on July 1, 2024

Thank you for the update. I am glad that you found the fix for the issue.

from abelectronics_python3_libraries.

Related Issues (4)

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.