Hello,
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?
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
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
Thanks for the suggestion.
However, on another machine (same version of fedora), pympress works fine.
Anyway, trying: python3 -m pip install pygobject pycairo pympress
I get:
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pygobject in /usr/lib64/python3.9/site-packages (3.40.1) Requirement already satisfied: pycairo in /usr/lib64/python3.9/site-packages (1.20.1) Requirement already satisfied: pympress in /usr/local/lib/python3.9/site-packages (1.6.1) Requirement already satisfied: watchdog in /usr/lib/python3.9/site-packages (from pympress) (2.1.6) WARNING: Keyring is skipped due to an exception: Failed to open keyring: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
Sent: Monday, June 13, 2022 at 12:59 AM From: "Cameron Simpson" cs@cskk.id.au To: "Community support for Fedora users" users@lists.fedoraproject.org Subject: Re: pympress
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 pympressThat should install a personal copy.
Cheers, Cameron Simpson cs@cskk.id.au _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On 13Jun2022 15:07, Joe Zeff joe@zeff.us wrote:
On 6/13/22 13:51, Patrick Dupre wrote:
Defaulting to user installation because normal site-packages is not writeabl
That just means that you should have done this with root privs.
I certainly DID NOT want it done with root privileges. Gadzooks!
This should do a persoanl install of pympress for comparison and testing.
Patrick: does the local pympress run?
Cheers, Cameron Simpson cs@cskk.id.au
The bizarre thing is that pympress works on one machine, and not on the other one (both fedora 34 in the last update).
which pympress|xargs rpm -qf python3-pympress-1.7.0b1-1.noarch
pip list |grep pympress pympress 1.7.0b1
Is this good?
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
Sent: Tuesday, June 14, 2022 at 12:11 AM From: "Cameron Simpson" cs@cskk.id.au To: "Community support for Fedora users" users@lists.fedoraproject.org Subject: Re: pympress
On 13Jun2022 15:07, Joe Zeff joe@zeff.us wrote:
On 6/13/22 13:51, Patrick Dupre wrote:
Defaulting to user installation because normal site-packages is not writeabl
That just means that you should have done this with root privs.
I certainly DID NOT want it done with root privileges. Gadzooks!
This should do a persoanl install of pympress for comparison and testing.
Patrick: does the local pympress run?
Cheers, Cameron Simpson cs@cskk.id.au _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Tue, 14 Jun 2022 08:11:13 +1000 Cameron Simpson cs@cskk.id.au wrote:
On 13Jun2022 15:07, Joe Zeff joe@zeff.us wrote:
On 6/13/22 13:51, Patrick Dupre wrote:
Defaulting to user installation because normal site-packages is not writeabl
That just means that you should have done this with root privs.
I certainly DID NOT want it done with root privileges. Gadzooks!
Doesn't that require a --user in the command? My understanding is that without the --user, it tries to install in system libraries, /usr/lib/python?.?? This is really problematic because it confuses the package managers, and can end up with an unworkable system.
Or does pip now default to using a ~/home/ directory as its install and update location?
On 6/14/22 05:57, stan via users wrote:
On Tue, 14 Jun 2022 08:11:13 +1000 Cameron Simpson cs@cskk.id.au wrote:
On 13Jun2022 15:07, Joe Zeff joe@zeff.us wrote:
On 6/13/22 13:51, Patrick Dupre wrote:
Defaulting to user installation because normal site-packages is not writeabl
That just means that you should have done this with root privs.
I certainly DID NOT want it done with root privileges. Gadzooks!
Doesn't that require a --user in the command? My understanding is that without the --user, it tries to install in system libraries, /usr/lib/python?.?? This is really problematic because it confuses the package managers, and can end up with an unworkable system.
Or does pip now default to using a ~/home/ directory as its install and update location?
Notice the message that was originally commented on. "Defaulting to user installation because normal site-packages is not writeable" If you run pip as a user, it can't write to the system directory, so it will automatically switch to a user install.
Hello,
I do not understand this
rpm -q python3-pympress python3-pympress-1.7.0b1-1.noarch rpm -ql python3-pympress |grep bin /usr/bin/pympress /usr/bin/pympress -bash: /usr/bin/pympress: No such file or directory
dnf reinstall python3-pympress Repository copr:copr.fedorainfracloud.org:cimbali:pympress is listed more than once in the configuration Last metadata expiration check: 1:00:11 ago on Tue 14 Jun 2022 09:17:09 PM CEST. Installed package python3-pympress-1.7.0b1-1.noarch (from copr:copr.fedorainfracloud.org:cimbali:pympress) not available. Error: No packages marked for reinstall
pympress bash: pympress: command not found... Install package 'python3-pympress' to provide command 'pympress'? [N/y] * Waiting in queue... Failed to install packages: higher version "1.7.0b1-1" of package python3-pympress.noarch is already installed
Something is not logical.
As a user: pip install pympress Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pympress in /usr/lib/python3.9/site-packages (1.7.0b1) Requirement already satisfied: watchdog in /usr/lib/python3.9/site-packages (from pympress) (2.1.6)
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On 6/14/22 13:20, Patrick Dupre wrote:
I do not understand this
rpm -q python3-pympress python3-pympress-1.7.0b1-1.noarch rpm -ql python3-pympress |grep bin /usr/bin/pympress /usr/bin/pympress -bash: /usr/bin/pympress: No such file or directory
What is the output of these:
rpm -qV python3-pympress file /usr/bin/pympress
On 14Jun2022 05:57, stan upaitag@zoho.com wrote:
On Tue, 14 Jun 2022 08:11:13 +1000 Cameron Simpson cs@cskk.id.au wrote:
On 13Jun2022 15:07, Joe Zeff joe@zeff.us wrote:
On 6/13/22 13:51, Patrick Dupre wrote:
Defaulting to user installation because normal site-packages is not writeabl
That just means that you should have done this with root privs.
I certainly DID NOT want it done with root privileges. Gadzooks!
Doesn't that require a --user in the command? My understanding is that without the --user, it tries to install in system libraries, /usr/lib/python?.??
If you're not root, it can't do that. And I'm pretty sure the default has been a --user install for quite a while.
This is really problematic because it confuses the package managers, and can end up with an unworkable system.
Indeed.
Or does pip now default to using a ~/home/ directory as its install and update location?
I think so. Seems to work fine here.
Cheers, Cameron Simpson cs@cskk.id.au
On Wed, 15 Jun 2022 07:57:30 +1000 Cameron Simpson cs@cskk.id.au wrote:
On 14Jun2022 05:57, stan upaitag@zoho.com wrote:
Or does pip now default to using a ~/home/ directory as its install and update location?
I think so. Seems to work fine here.
Thanks.
On Tue, 14 Jun 2022 11:03:17 -0700 Samuel Sieb samuel@sieb.net wrote:
On 6/14/22 05:57, stan via users wrote:
Or does pip now default to using a ~/home/ directory as its install and update location?
Notice the message that was originally commented on. "Defaulting to user installation because normal site-packages is not writeable" If you run pip as a user, it can't write to the system directory, so it will automatically switch to a user install.
Thanks.
OK
Thank for the help. Finally, I removed pyyhon3-pympress and I reinstalled it. It seems working now.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
Sent: Wednesday, June 15, 2022 at 3:01 PM From: "stan via users" users@lists.fedoraproject.org To: users@lists.fedoraproject.org Cc: "stan" upaitag@zoho.com Subject: Re: pympress
On Tue, 14 Jun 2022 11:03:17 -0700 Samuel Sieb samuel@sieb.net wrote:
On 6/14/22 05:57, stan via users wrote:
Or does pip now default to using a ~/home/ directory as its install and update location?
Notice the message that was originally commented on. "Defaulting to user installation because normal site-packages is not writeable" If you run pip as a user, it can't write to the system directory, so it will automatically switch to a user install.
Thanks. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure