[Bug 1872281] Re: collectd python plugin not working
Is this ever going to be backported to Focal? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
We have this issue too. Ubuntu 20.04 x86_64, collectd 5.9.2.g-1ubuntu5 The LD_PRELOAD workaround @Mike Battersby (mib-8) suggested works for us. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
I downloaded the 20.10 collectd-core_5.11.0-7_amd64.deb to my 20.04 system installed using dpkg -i and that resolves the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
Related Debian bug: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=953953 ** Bug watch added: Debian Bug tracker #953953 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953953 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
@Mike Battersby (mib-8) -- thanks, perfect, that fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
@Mike Battersby (mib-8) -- thanks, that fixed it for me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
** Merge proposal linked: https://code.launchpad.net/~kswoboda/ubuntu/+source/collectd/+git/collectd/+merge/386085 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
Hi Mike, thanks for the suggestion, that work around didn't resolve my issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
I have this problem as well. You can work around it by adding the following line to /etc/default/collectd LD_PRELOAD=/usr/lib/python3.8/config-3.8-x86_64-linux- gnu/libpython3.8.so this will force it to load the python shared library. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
No You are not, i have this problem too. Do you have some plans to fix it in Focal? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
Just to clarify: I'm not the only one experiencing this on another architecture than the armhf, right? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
Thanks for the Information. This was my solution too for now. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
I don't know if it will help, but I've been able to compile collectd with the Python plugin. If I'm not wrong, collectd uses a custom interpreter (a kind of wrapper over the cpython interpreter) to avoid to initialize a new interpreter each time we need to execute Python scripts. That interpreter seems to be compiled into a shared library that is placed in /usr/lib/collectd/python.so after install the package from the Ubuntu repos. If we execute ldd over the shared library installed with apt from the official repository, we can see that it is not linked with libpython.so, the real interpreter, so it is not able to run it. I've been able to compile the version 5.11.0 of collectd enabling Python support installing `python-dev-is-python3` before to compile it. That package installs a shell script that is able to detect which version of Python is installed (and other details like libs and paths). That script is used by the configure script of collectd to determine if Python is supported or not. I've been tried to compile the same version that is present in the repository (5.9.2) with no luck, probably I'm missing some header, however I've been able to use the python.so compiled for 5.11.0 with Python support with collectd 5.9.2. The only changes to the Python plugin between these two versions are just a few format changes (indentation changes) and the replacement of snprintf by snnprintf in some functions (the older one uses snprintf and the newer one snnprintf). As you can see my knowledge on this topic is limited but I hope this can be useful to you. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1872281] Re: collectd python plugin not working
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: collectd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872281 Title: collectd python plugin not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs