Ubuntu 14.04 with RPi.GPIO problem

ihab zhaika
New Member Posts: 3
hey,
i followed the guide of installing Ubuntu and then using the up-kernel , i tried the internal leds and they working
now i tried to follow this
https://up-community.org/wiki/RPi.GPIO
i installed the rpi.gpio from python pip because when i tried to use the
so when i try to use the library , this line specificity
so from where i can get the patched rpi.gpio ?
i followed the guide of installing Ubuntu and then using the up-kernel , i tried the internal leds and they working
now i tried to follow this
https://up-community.org/wiki/RPi.GPIO
i installed the rpi.gpio from python pip because when i tried to use the
sudo apt-get install python-rpi.gpiogives me
E: Unable to locate package python-rpi.gpio E: Couldn't find any package by regex 'python-rpi.gpio'the ppt already added which is [ ppa:ubilinux/up ]
so when i try to use the library , this line specificity
import RPi.GPIO as GPIOgives
/usr/local/lib/python2.7/dist-packages/RPi/GPIO/__init__.py in <module>() 21 """ 22 ---> 23 from RPi._GPIO import * 24 25 VERSION = '0.6.2' RuntimeError: This module can only be run on a Raspberry Pi!
so from where i can get the patched rpi.gpio ?
Categories
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 592 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 826 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral