Pigpio

Having issues with your DietPi installation or found a bug? Post it here.
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Pigpio

Post by Burgess85 »

https://wiki.geekworm.com/X735_V2.5_Software

Having issues with installing on dietpi

Getting this error

sudo bash install.sh
2021-08-02 21:12:06 initInitialise: Can't lock /var/run/pigpio.pid
Can't initialise pigpio library

Any ideas?
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Pigpio

Post by Joulinar »

What user you use to install your software. As well some more information on your SBC. Which architecture you are using? 32 or 64 bit.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Re: Pigpio

Post by Burgess85 »

Joulinar wrote: Mon Aug 02, 2021 10:25 pm What user you use to install your software. As well some more information on your SBC. Which architecture you are using? 32 or 64 bit.
Root and 32 bit
User avatar
WarHawk
Posts: 781
Joined: Thu Jul 20, 2017 8:55 am

Re: Pigpio

Post by WarHawk »

From install.sh

Code: Select all

USER_RUN_FILE=/home/pi/.bashrc
You will need to create a user named pi on the device...
or you could change it to

Code: Select all

USER_RUN_FILE=/home/dietpi/.bashrc
You did ensure you installed the prerequisites right?

Code: Select all

sudo apt-get install python-smbus
sudo apt-get install pigpio python-pigpio python3-pigpio
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Pigpio

Post by Joulinar »

You will need to create a user named pi on the device...
or you could change it to

Code: Select all

USER_RUN_FILE=/home/dietpi/.bashrc
That would mean to start installation as user dietpi :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Re: Pigpio

Post by Burgess85 »

Joulinar wrote: Tue Aug 03, 2021 11:26 am
You will need to create a user named pi on the device...
or you could change it to

Code: Select all

USER_RUN_FILE=/home/dietpi/.bashrc
That would mean to start installation as user dietpi :)
That works :) I added a cronjob under dietpi will that run every time dietpi starts?
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Pigpio

Post by Joulinar »

It depends how the cron job has been setup.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Re: Pigpio

Post by Burgess85 »

Joulinar wrote: Tue Aug 03, 2021 6:52 pm It depends how the cron job has been setup.
@reboot python /home/dietpi/x735-v2.5/pwm_fan_control.py
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Pigpio

Post by Joulinar »

You should specify full path to the python executable
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Re: Pigpio

Post by Burgess85 »

Joulinar wrote: Tue Aug 03, 2021 7:11 pm You should specify full path to the python executable
Sorry you lost me?
Post Reply