Skip to content

any way launching my python app without sudo ? #1

@agaricus-campestris

Description

@agaricus-campestris

Hi,

Thank you so much @Dangku for this work, I own a Banana Pi m5, and my problem is I need to launch my python app without sudo, for various reasons I have really no choice but to launch as a normal user.

But WiringPi tells me this :

wiringPiSetupAml: Must be root. (Did you forget sudo?)

My user is in gpio and sudo groups.

I tried adding my user to gpio group, but this doesn't help. I installed this way :

sudo apt-get install build-essential python3 python3-pip python3-dev python3-setuptools
git clone --recursive  https://github.com/Dangku/WiringPi-Python.git
python3 -m venv venv
source venv/bin/activate
venv/bin/pip3 install git+https://github.com/Dangku/RPi.GPIO.git
venv/bin/pip3 install WiringPi-Python/dist/wiringpi-3.6-cp311-cp311-linux_aarch64.whl
./venv/bin/python3 main.py
pygame-ce 2.5.6 (SDL 2.32.10, Python 3.11.2)
wiringPiSetupAml: Must be root. (Did you forget sudo?)

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