View previous topic :: View next topic |
Author |
Message |
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
Posted: Tue Aug 13, 2019 9:54 am Post subject: pigpiod not starting on arm64 "[solved]" |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31443 Location: here
|
Posted: Tue Aug 13, 2019 10:08 am Post subject: |
|
|
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 |
|
|
LIsLinuxIsSogood Veteran
Joined: 13 Feb 2016 Posts: 1186
|
Posted: Tue Aug 13, 2019 10:11 am Post subject: Re: pigpiod not starting on arm64 |
|
|
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 |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
Posted: Tue Aug 13, 2019 11:15 am Post subject: |
|
|
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 |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
Posted: Tue Aug 13, 2019 11:26 am Post subject: |
|
|
Gosh...
python
Python 3.6.9 (default, Aug 6 2019, 18:42:2
[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 |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
Posted: Tue Aug 13, 2019 12:22 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Wed Aug 14, 2019 12:55 am Post subject: |
|
|
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 |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
Posted: Wed Aug 14, 2019 1:08 pm Post subject: |
|
|
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 |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 229 Location: European sticks
|
|
Back to top |
|
|
|