Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

RuntimeError: This module can only be run on a Raspberry Pi! #117

@aceboy2020

Description

@aceboy2020

I am using Kali linux arm in my raspberry pi 4. I install crowpi drivers because for me it is useful to learn in complete setup kit. After i execute example files in crowpi this error shows.

root@kali:~/CrowPi/Examples# sudo python buzzer.py
Traceback (most recent call last):
File "buzzer.py", line 5, in
import RPi.GPIO as GPIO
File "/usr/lib/python2.7/dist-packages/RPi/GPIO/init.py", line 23, in
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!

And also this..

root@kali:~/CrowPi/Examples# sudo python lcd.py
Traceback (most recent call last):
File "lcd.py", line 6, in
import Adafruit_CharLCD as LCD
File "build/bdist.linux-aarch64/egg/Adafruit_CharLCD/init.py", line 1, in
File "build/bdist.linux-aarch64/egg/Adafruit_CharLCD/Adafruit_CharLCD.py", line 98, in
File "build/bdist.linux-aarch64/egg/Adafruit_CharLCD/Adafruit_CharLCD.py", line 104, in Adafruit_CharLCD
File "build/bdist.linux-aarch64/egg/Adafruit_GPIO/GPIO.py", line 429, in get_platform_gpio
RuntimeError: Could not determine platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions