unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Vilata i Balaguer <ivan@selidor.net>
To: 63657@debbugs.gnu.org
Subject: [bug#63657] [PATCH] gnu: python-py3status: Update to 3.50, compatible with Python 3.10.
Date: Fri, 26 May 2023 14:29:31 +0200	[thread overview]
Message-ID: <ZHCmK1uTvb3YU77S@sax> (raw)
In-Reply-To: <727bc4f11c03e2406521ccf177f9fe19ef46d0ac.1684828094.git.ivan@selidor.net>

[-- Attachment #1: Type: text/plain, Size: 2089 bytes --]

Ivan Vilata i Balaguer (2023-05-23 09:49:29 +0200) wrote:

> This avoids "ImportError: cannot import name 'Iterable' from 'collections'"
> from py3status version < 3.25.
> 
> * gnu/packages/python-xyz.scm (python-py3status): Update to 3.50.

To add some context to this patch, the issue is with the main package program
crashing with current Python 3.10 on execution (building doesn't fail):

```
$ guix shell -CW which procps python-py3status
user@computer /tmp [env]$ guix describe
  guix 14c0380
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 14c03807ba4bc81d42cf869f5b827f7da54ff843
user@computer /tmp [env]$ py3status
Traceback (most recent call last):
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/bin/.py3status-real", line 13, in <module>
    sys.exit(main())
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/lib/python3.10/site-packages/py3status/__init__.py", line 34, in main
    from py3status.core import Py3statusWrapper
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/lib/python3.10/site-packages/py3status/core.py", line 22, in <module>
    from py3status.i3status import I3status
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/lib/python3.10/site-packages/py3status/i3status.py", line 14, in <module>
    from py3status.py3 import Py3
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/lib/python3.10/site-packages/py3status/py3.py", line 19, in <module>
    from py3status.storage import Storage
  File "/gnu/store/73w4jp96ib943bzxc3g4wg1ja8xdg7ha-python-py3status-3.21/lib/python3.10/site-packages/py3status/storage.py", line 5, in <module>
    from collections import Iterable, Mapping
ImportError: cannot import name 'Iterable' from 'collections' (/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/collections/__init__.py)
```

Newer versions use `from collections.abc`.

Cheers,

-- 
Ivan Vilata i Balaguer -- https://elvil.net/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2023-05-26 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23  7:49 [bug#63657] [PATCH] gnu: python-py3status: Update to 3.50, compatible with Python 3.10 Ivan Vilata i Balaguer
2023-05-26 12:29 ` Ivan Vilata i Balaguer [this message]
2023-06-12 19:18 ` bug#63657: " Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZHCmK1uTvb3YU77S@sax \
    --to=ivan@selidor.net \
    --cc=63657@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).