Coder Social home page Coder Social logo

Comments (5)

nmstoker avatar nmstoker commented on September 6, 2024 1

Also needs python3-dev for the installation to work on a fresh Buster lite install:
sudo apt-get install python3-dev

Without doing that, you get:

Best match: RPi.GPIO 0.6.5
Processing RPi.GPIO-0.6.5.tar.gz
Writing /tmp/easy_install-q2f014__/RPi.GPIO-0.6.5/setup.cfg
Running RPi.GPIO-0.6.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-q2f014__/RPi.GPIO-0.6.5/egg-dist-tmp-0cd30dse
source/py_gpio.c:23:10: fatal error: Python.h: No such file or directory
 #include "Python.h"
          ^~~~~~~~~~
compilation terminated.
error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on September 6, 2024

I didn't realise lite versions ( Raspbian Lite? ) didn't include setuptools. I'd dropped the fallback import to distutils since it can cause problems with our packaging.

Attempted to rectify in 31b58d7

from fanshim-python.

haggistech avatar haggistech commented on September 6, 2024

would also need python-psutil and python3-psutil :)

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on September 6, 2024

I wonder if I should add python-rpi.gpio to the apt dependencies. Building a version from source from pip is a little overkill, and those packages tend to evade being updated- for better or worse.

from fanshim-python.

haggistech avatar haggistech commented on September 6, 2024

Would probably make sense as you say then it will be picked up in updates etc

from fanshim-python.

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.