On 12Jun2022 21:08, Patrick Dupre pdupre@gmx.com wrote:
Following the instructions in https://libraries.io/pypi/pympress
I did
dnf copr enable cimbali/pympress dnf install python3-pympress
But then,
pympress [000055bc9c452fc0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused Traceback (most recent call last): File "/usr/bin/pympress", line 33, in <module> sys.exit(load_entry_point('pympress==1.7.0b1', 'gui_scripts', 'pympress')()) File "/usr/local/lib/python3.9/site-packages/pympress/__main__.py", line 105, in main app.Pympress().run(argv) File "/usr/local/lib/python3.9/site-packages/pympress/app.py", line 110, in __init__ self.gui = ui.UI(self, self.config) File "/usr/local/lib/python3.9/site-packages/pympress/ui.py", line 263, in __init__ self.make_pwin() File "/usr/local/lib/python3.9/site-packages/pympress/ui.py", line 339, in make_pwin pane_handles = self.replace_layout(layout, self.p_central, self.placeable_widgets, self.on_pane_event) File "/usr/local/lib/python3.9/site-packages/pympress/builder.py", line 309, in replace_layout parent.pack1(w, True, True) File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 1580, in pack1 super(Paned, self).pack1(child, resize, shrink) TypeError: Argument 1 does not allow None as a value
Any idea?
This looks to me like a GUI toolkit issue rather than a PulseAudio issue: it is still setting up the widgets and I would guess that "child1" above is None.
But that _could_ be the result of failing to connect to PulseAudio, since apparently that failed too: there's an OS-level COnnection refused message up the top.
Is PulseAudio running? Does pympress need to be told how to connect to it?
I'm not in a position to test here; I'm on a Mac. I can install pympress but it complains about no Gtk.
I notice that you've got pympress==1.7.0b1, whereas if I do a "pip install pympress" I get pympress 1.7.2.
Have you tried installing pympress without dnf? Try:
python3 -m pip install pygobject pycairo pympress
That should install a personal copy.
Cheers, Cameron Simpson cs@cskk.id.au