* [linux-lvm] lvmdbusd failure(s) at ubuntu
@ 2017-12-11 1:53 Oliver Rath
2017-12-11 12:24 ` Marian Csontos
2017-12-13 12:52 ` [linux-lvm] SOLVED [was: lvmdbusd failure(s) at ubuntu] Oliver Rath
0 siblings, 2 replies; 3+ messages in thread
From: Oliver Rath @ 2017-12-11 1:53 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
Hi list,
Im playing around with the dbus-daemon, which shows me some strange
behaviours:
* lvmdbusd doesnt run with the message
# lvmdbusd
Traceback (most recent call last):
File "/sbin/lvmdbusd", line 13, in <module>
from lvmdbusd import main
ModuleNotFoundError: No module named 'lvmdbusd'
*but* the module seems to be installed:
# find /usr/lib/ -iname "lvmdbusd"
/usr/lib/python3.6/site-packages/lvmdbusd
/usr/lib/python3.5/site-packages/lvmdbusd
Btw, lvmdbusd seems not to be installed for python2
* lvmdbusd is a python-script, but the installer says "python is
deprecated, use dbus instead". Can I use the dbus-interface (Im
working on some examples in Rust for this) without the lvmdbusd?
Is lvm via dbus possibly out of date and not longer useable?
My system is ubuntu 17.10 with lvm2-git installed:
# lvdisplay --version
LVM version: 2.02.177(2)-git (2017-11-03)
Library version: 1.02.146-git (2017-11-03)
Driver version: 4.37.0
Configuration: ./configure --enable-lvmetad --enable-lvmpolld
--enable-dmfilemapd --enable-cmdlib --enable-applib
--enable-dbus-service --enable-notify-dbus --enable-python2_bindings
TfH
Oliver
[-- Attachment #2: Type: text/html, Size: 1730 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvmdbusd failure(s) at ubuntu
2017-12-11 1:53 [linux-lvm] lvmdbusd failure(s) at ubuntu Oliver Rath
@ 2017-12-11 12:24 ` Marian Csontos
2017-12-13 12:52 ` [linux-lvm] SOLVED [was: lvmdbusd failure(s) at ubuntu] Oliver Rath
1 sibling, 0 replies; 3+ messages in thread
From: Marian Csontos @ 2017-12-11 12:24 UTC (permalink / raw)
To: LVM general discussion and development, Oliver Rath
On 12/11/2017 02:53 AM, Oliver Rath wrote:
> Hi list,
>
> Im playing around with the dbus-daemon, which shows me some strange
> behaviours:
>
> * lvmdbusd doesnt run with the message
> # lvmdbusd
> Traceback (most recent call last):
> File "/sbin/lvmdbusd", line 13, in <module>
> from lvmdbusd import main
> ModuleNotFoundError: No module named 'lvmdbusd'
> *but* the module seems to be installed:
> # find /usr/lib/ -iname "lvmdbusd"
> /usr/lib/python3.6/site-packages/lvmdbusd
> /usr/lib/python3.5/site-packages/lvmdbusd
Hmmm, what does `/usr/bin/env python3` return?
I have fixed a bug usptream: lvmdbusd must use python 3 interpreter
detected by configure script not the python3 found in $PATH.
>
> Btw, lvmdbusd seems not to be installed for python2
That's true, it is not. It is python3 only.
> * lvmdbusd is a python-script, but the installer says "python is
> deprecated, use dbus instead". Can I use the dbus-interface (Im
> working on some examples in Rust for this) without the lvmdbusd?
It says "python bindings". It is those python2 and python3 bindings we
plan to remove in future - it never worked really well, had problems
with configuration - and lvmdbusd is the intended replacement.
D-Bus daemon is written in python(3). And it should not require python
bindings (and actually neither the applib - I fixed that bogus error
upstream.)
It may see and rewrite to a compiled language, if that happened to be a
bottleneck.
>
> Is lvm via dbus possibly out of date and not longer useable?
It should not be.
>
> My system is ubuntu 17.10 with lvm2-git installed:
>
> # lvdisplay --version
> LVM version: 2.02.177(2)-git (2017-11-03)
> Library version: 1.02.146-git (2017-11-03)
> Driver version: 4.37.0
> Configuration: ./configure --enable-lvmetad --enable-lvmpolld
> --enable-dmfilemapd --enable-cmdlib --enable-applib
> --enable-dbus-service --enable-notify-dbus --enable-python2_bindings
>
> TfH
>
> Oliver
>
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] SOLVED [was: lvmdbusd failure(s) at ubuntu]
2017-12-11 1:53 [linux-lvm] lvmdbusd failure(s) at ubuntu Oliver Rath
2017-12-11 12:24 ` Marian Csontos
@ 2017-12-13 12:52 ` Oliver Rath
1 sibling, 0 replies; 3+ messages in thread
From: Oliver Rath @ 2017-12-13 12:52 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 2808 bytes --]
Hi list,
Ive found the reason for failing lvmdbusd: The install-script installs
the python-module-dir "lvmdbusd" into /usr/lib/python3.6/site-packages.
Unfortunatly this path is not in the standard-python(3)-modulepath included:
--------------- snip -------------------------
ver@w541:~/gits/lvm2$ python3 -m site
sys.path = [
'/home/oliver/gits/lvm2',
'/usr/lib/python36.zip',
'/usr/lib/python3.6',
'/usr/lib/python3.6/lib-dynload',
'/usr/local/lib/python3.6/dist-packages',
'/usr/lib/python3/dist-packages',
'/usr/lib/python3.6/dist-packages',
]
USER_BASE: '/home/oliver/.local' (exists)
USER_SITE: '/home/oliver/.local/lib/python3.6/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
--------------- snap -------------------------
It seems the "site-packages" dir is in Ubuntu a local one in the current
home dir. Putting the moduledir "lvmdbusd" into
/usr/lib/python3.6/dist-packages works fine. For me it is sufficient to
change the installation-path to this dir.
I don't know, how the paths are organized in other distros like fedora
or redhat, but maybe you find a way installing the lvm2-python3-parts
for lvmdbusd in a way which works also out of the box for ubuntu, too.
Tfh!
Oliver
On 11.12.2017 02:53, Oliver Rath wrote:
>
> Hi list,
>
> Im playing around with the dbus-daemon, which shows me some strange
> behaviours:
>
> * lvmdbusd doesnt run with the message
> # lvmdbusd
> Traceback (most recent call last):
> File "/sbin/lvmdbusd", line 13, in <module>
> from lvmdbusd import main
> ModuleNotFoundError: No module named 'lvmdbusd'
> *but* the module seems to be installed:
> # find /usr/lib/ -iname "lvmdbusd"
> /usr/lib/python3.6/site-packages/lvmdbusd
> /usr/lib/python3.5/site-packages/lvmdbusd
>
> Btw, lvmdbusd seems not to be installed for python2
> * lvmdbusd is a python-script, but the installer says "python is
> deprecated, use dbus instead". Can I use the dbus-interface (Im
> working on some examples in Rust for this) without the lvmdbusd?
>
> Is lvm via dbus possibly out of date and not longer useable?
>
> My system is ubuntu 17.10 with lvm2-git installed:
>
> # lvdisplay --version
> LVM version: 2.02.177(2)-git (2017-11-03)
> Library version: 1.02.146-git (2017-11-03)
> Driver version: 4.37.0
> Configuration: ./configure --enable-lvmetad --enable-lvmpolld
> --enable-dmfilemapd --enable-cmdlib --enable-applib
> --enable-dbus-service --enable-notify-dbus --enable-python2_bindings
>
> TfH
>
> Oliver
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
[-- Attachment #2: Type: text/html, Size: 4236 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-13 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-11 1:53 [linux-lvm] lvmdbusd failure(s) at ubuntu Oliver Rath
2017-12-11 12:24 ` Marian Csontos
2017-12-13 12:52 ` [linux-lvm] SOLVED [was: lvmdbusd failure(s) at ubuntu] Oliver Rath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).