OpenWrt Forum Archive

Topic: Python RPi GPIO

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear,

RPi has got GPIO pins and there is package for python that can make use of it:
https://pypi.python.org/pypi/RPi.GPIO

Unfortunatelly it is not available for OpenWRT on RPi and I am too lame to deal with it by myself.
When I try to install it using pip or python install I receive:

unable to execute 'ccache_cc': No such file or directory

error: command 'ccache_cc' failed with exit status 1

It is the last step to install rpi.gpio on openwrt.

Can someone tell me what to do with error or can someone prepare for ipk package for me?

I need this because I would like to connect LCD HD44780 to RPi using GPIO pins. Then I would like to display information using python script as lcdproc and lcdd cannot be use within openwrt.

Best regards!

Hello, I need the same. Use the library RPi.GPIO in Openwrt for python.

I see this (search in google, I can't add links):

OpenWrt Feed for Python Module on Raspberry Pi


But I don`t know as install or console give me the same error "ccache_cc":

root@Router_4:/Edu_Pruebas/engravR/RPi.GPIO-0.5.4# python setup.py install
running install
running build
running build_py
running build_ext
building 'RPi.GPIO' extension
ccache_cc -fno-strict-aliasing -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DNDEBUG -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-mips-2.7/source/py_gpio.o
unable to execute ccache_cc: No such file or directory
error: command 'ccache_cc' failed with exit status 1


I want import a program of Rasberry Pi to Openwrt and use this libraries:

import RPi.GPIO as GPIO
import Motor_control
from Bipolar_Stepper_Motor_Class import Bipolar_Stepper_Motor
import time
from numpy import pi, sin, cos, sqrt, arccos, arcsin
import argparse


Thanks for all

The discussion might have continued from here.