Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pigpiod not starting on arm64 "[solved]"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Tue Aug 13, 2019 9:54 am    Post subject: pigpiod not starting on arm64 "[solved]" Reply with quote

Another issue with python stuff.

Code:
/etc/init.d/pigpiod start
 * Starting pigpiod ...
/usr/bin/pigpiod: error while loading shared libraries: libpigpio.so: cannot open shared object file: No such file or directory
 * start-stop-daemon: failed to start `/usr/bin/pigpiod'
 * Failed to start pigpiod                                                                                                     [ !! ]
 * ERROR: pigpiod failed to start


The thing is, it's supposed to be fixed in version 69, we just got 68 today so it may be a while - so I tested a patch from here: https://github.com/joan2937/pigpio/issues/266

no joy, still the same error. Guess I'll have to wait for a version 69 and then[/code] see?


Last edited by erg_samowzbudnik on Tue Jan 21, 2020 6:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31443
Location: here

PostPosted: Tue Aug 13, 2019 10:08 am    Post subject: Reply with quote

In portage version 70 is available
Code:
$ eix pigpio
* dev-libs/pigpio
     Available versions:  ~*67 ~*68 ~*70 {python PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7"}
     Homepage:            http://abyz.me.uk/rpi/pigpio/index.html
     Description:         A library for the Raspberry which allows control of the GPIOs


EDIT: patch seem for 67 version, see https://bugs.gentoo.org/678994
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1186

PostPosted: Tue Aug 13, 2019 10:11 am    Post subject: Re: pigpiod not starting on arm64 Reply with quote

erg_samowzbudnik wrote:
Another issue with python stuff.

Code:
/etc/init.d/pigpiod start
 * Starting pigpiod ...
/usr/bin/pigpiod: error while loading shared libraries: libpigpio.so: cannot open shared object file: No such file or directory
 * start-stop-daemon: failed to start `/usr/bin/pigpiod'
 * Failed to start pigpiod                                                                                                     [ !! ]
 * ERROR: pigpiod failed to start


The thing is, it's supposed to be fixed in version 69, we just got 68 today so it may be a while - so I tested a patch from here: https://github.com/joan2937/pigpio/issues/266

no joy, still the same error. Guess I'll have to wait for a version 69 and then[/code] see?


Ok so I don't know if this is really what you want to hear, but if you haven't actually tried downgrading to an earlier version that may be better than upgrading to the latest release since sometimes issues arise and they are not worked out for some time. But assuming you have tried it and there is still an issue with the shared libraries the fix is going to probably involve manually locating the file somewhere (hopefully it got installed somewhere in the fs) then from there you just need to use the path to it by setting the environment variable for LDPATH in /etc/env.d. Files in this directory are numbered for priority but I don't think it matters as long as you create a file (using package name, e.g. 10pigpio) and inside that file you will tell the linker where to look for it.
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Tue Aug 13, 2019 11:15 am    Post subject: Reply with quote

Thanks. Need to remember to run eix-update from time to time.

It has compiled, pigpiod starts without errors, python module loads. off to test stuff! :-)
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Tue Aug 13, 2019 11:26 am    Post subject: Reply with quote

Gosh...

python
Python 3.6.9 (default, Aug 6 2019, 18:42:28)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pigpio
>>> pi = pigpio.pi()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)

Do you have permission to access the pigpio daemon?
Perhaps it was started with sudo pigpiod -nlocalhost
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Tue Aug 13, 2019 12:22 pm    Post subject: Reply with quote

Gosh...

Code:
python
Python 3.6.9 (default, Aug  6 2019, 18:42:28)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pigpio
>>> pi = pigpio.pi()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)

Do you have permission to access the pigpio daemon?
Perhaps it was started with sudo pigpiod -nlocalhost
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Changing default port in /etc/confd/pigpio to 8889 doesn't seem to make a difference:
Code:
python
Python 3.6.9 (default, Aug  6 2019, 18:42:28)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pigpio
>>> pi = pigpio.pi('soft', 8889)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at soft(8889)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Could it be linked to my network setup like for this person?:

https://github.com/joan2937/pigpio/issues/14
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Wed Aug 14, 2019 12:55 am    Post subject: Reply with quote

Is the pigpio daemon running? What port(s) is it listening on? Use ss -lnpt to see all listening TCP servers. If run as root, it will also show the process behind each listener.
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Wed Aug 14, 2019 1:08 pm    Post subject: Reply with quote

Hi Hu,

Code:
/etc/init.d/pigpiod status
 * status: started


Code:
LISTEN                           0                                100                                                              127.0.0.1:8889                                                            0.0.0.0:*                               users:(("pigpiod",pid=2049,fd=0))
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 229
Location: European sticks

PostPosted: Wed Aug 14, 2019 2:30 pm    Post subject: Reply with quote

Sorted with the new post v70 patch,

with help from sakaki,

cheers,

link here https://www.raspberrypi.org/forums/viewtopic.php?f=54&t=248720&p=1519011#p1519011
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum