You are not logged in.

#1 2020-11-03 17:32:52

superipermeganoob
Member
Registered: 2011-05-03
Posts: 19

[Solved]import python pydbus lib into meson prj

hi, i'll try to make a simple gtk window app with builder and a flatpak setup; these are the step i follow:
* open builder
* create a new python project with python + gnome application
* modfiy main.py to include some basic operation with lib pydbus
* add pydbus dependency  on meson conf file
* try to compile
at this point it show me this error -> https://paste.ubuntu.com/p/dnsCSBjhXt/
this is the meson conf -> https://paste.ubuntu.com/p/kxXv9czpmR/
how can i solve this? thx

Last edited by superipermeganoob (2020-11-05 13:38:26)

Offline

#2 2020-11-03 21:01:16

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,768

Re: [Solved]import python pydbus lib into meson prj

The pastebin you're using has a "Download as text" link that redirects me to a login page. You should consider finding a better pastebin.

...

anyway, your meson.build specifies dependency('pydbus') which checks, as indicated, for:

Dependency "pydbus" not found, tried pkgconfig and cmake

Now consider the output of pacman -Ql python-pydbus, or pkgfile -l if you don't currently have it installed:

community/python-pydbus	/usr/
community/python-pydbus	/usr/lib/
community/python-pydbus	/usr/lib/python3.8/
community/python-pydbus	/usr/lib/python3.8/site-packages/
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/PKG-INFO
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/SOURCES.txt
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/dependency_links.txt
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/top_level.txt
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus-0.6.0-py3.8.egg-info/zip-safe
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__init__.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/__init__.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/__init__.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/_inspect3.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/_inspect3.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/auto_names.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/auto_names.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/bus.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/bus.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/bus_names.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/bus_names.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/exitable.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/exitable.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/generic.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/generic.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/identifier.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/identifier.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/method_call_context.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/method_call_context.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_method.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_method.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_property.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_property.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_signal.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/proxy_signal.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/publication.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/publication.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/registration.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/registration.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/request_name.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/request_name.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/subscription.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/subscription.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/timeout.cpython-38.opt-1.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/__pycache__/timeout.cpython-38.pyc
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/_inspect3.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/auto_names.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/bus.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/bus_names.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/exitable.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/generic.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/identifier.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/method_call_context.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/proxy.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/proxy_method.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/proxy_property.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/proxy_signal.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/publication.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/registration.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/request_name.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/subscription.py
community/python-pydbus	/usr/lib/python3.8/site-packages/pydbus/timeout.py
community/python-pydbus	/usr/share/
community/python-pydbus	/usr/share/doc/
community/python-pydbus	/usr/share/doc/python-pydbus/
community/python-pydbus	/usr/share/doc/python-pydbus/README.rst

Do you see any pkg-config *.pc files in there? No? Then this cannot be looked up using dependency().

I think you want this instead: https://mesonbuild.com/Python-module.ht … stallation

pymod = import('python')
python = pymod.find_installation(modules: ['pydbus'])

Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-11-04 13:51:13

superipermeganoob
Member
Registered: 2011-05-03
Posts: 19

Re: [Solved]import python pydbus lib into meson prj

eschwartz wrote:

yes, you are right; i just not understand from the beginning how to use meson.
the new  old paste bin here - > https://pastebin.com/01FyDshS / -> https://pastebin.com/NE4gVyr6
thx now it can compile and run well smile

Offline

#4 2020-11-04 19:14:53

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,768

Re: [Solved]import python pydbus lib into meson prj

Great, happy to help spread the meson love. smile

Please remember to edit the first post of the thread, and add the word "[Solved]" to the thread title.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB