From: Andreas Enge <andreas@enge.fr>
To: guix-devel@gnu.org
Subject: Python (was: Merging core-updates?)
Date: Sun, 19 Feb 2023 12:02:15 +0100 [thread overview]
Message-ID: <Y/IBt4HoRV1h2QOo@jurong> (raw)
In-Reply-To: <Y+qfFPAjaTuT4gxL@jurong>
Hello,
I am having problems with at least two python packages in core-updates:
*** File "/gnu/store/5i3yqwaqd8mayl2vr9lmrihxwv8203b1-python-pycrypto-2.6.1/lib/python3.10/site-packages/Crypto/Util/number.py", line 139
value |= 2L ** (N-1) # Ensure high bit is set
^
SyntaxError: invalid decimal literal
error: in phase 'install': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/5i3yqwaqd8mayl2vr9lmrihxwv8203b1-python-pycrypto-2.6.1") exit-status: 1 term-signal: #f stop-signal: #f>
phase `install' failed after 0.5 seconds
command "python" "-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/5i3yqwaqd8mayl2vr9lmrihxwv8203b1-python-pycrypto-2.6.1" failed with status 1
starting phase `sanity-check'
validating 'attrdict' /gnu/store/lvy1fmmf1dsr3fjw82zal2aaisf3d47k-python-attrdict-2.0.1/lib/python3.10/site-pac
kages
...checking requirements: OK
...trying to load module attrdict: ERROR:
Traceback (most recent call last):
File "/gnu/store/35ix1m6m8a5s21j02ajhdyqxb2xkshfb-sanity-check.py", line 69, in <module>
importlib.import_module(name)
File "/gnu/store/blals34ar25fiifvm17m2b504waxzys0-python-3.10.7/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/gnu/store/lvy1fmmf1dsr3fjw82zal2aaisf3d47k-python-attrdict-2.0.1/lib/python3.10/site-packages/attrdict/__init__.py", line 5, in <module>
from attrdict.mapping import AttrMap
File "/gnu/store/lvy1fmmf1dsr3fjw82zal2aaisf3d47k-python-attrdict-2.0.1/lib/python3.10/site-packages/attrdict/mapping.py", line 4, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/gnu/store/blals34ar25fiifvm17m2b504waxzys0-python-3.10.7/lib/python3.10/collections/__init__.py)
error: in phase 'sanity-check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("/gnu/store/35ix1m6m8a5s21j02ajhdyqxb2xkshfb-sanity-check.py" "/gnu/store/lvy1fmmf1dsr3fjw82zal2aaisf3d47k-python-attrdict-2.0.1/lib/python3.10/site-packages") exit-status: 1 term-signal: #f stop-signal: #f>
phase `sanity-check' failed after 0.2 seconds
command "python" "/gnu/store/35ix1m6m8a5s21j02ajhdyqxb2xkshfb-sanity-check.py" "/gnu/store/lvy1fmmf1dsr3fjw82zal2aaisf3d47k-python-attrdict-2.0.1/lib/python3.10/site-packages" failed with status 1
for python-attrdict.
Both are at their latest version from Pypi.
Have there been some incompatible changes in Python 3.10? Should we revert
the Python update or try to backport patches? (I have no idea about Python,
and probably need it only for calibre.)
Andreas
PS: On the second issue: The latest commit is this:
v2.0.1 2019/02/01 -- Haven't used or looked at this in years so updating tests to the current version of python and then marking it inactive.
This would rather make me thing we should drop it, but here we go:
Building the following 160 packages would ensure 366 dependent packages are rebuilt: kicad@6.0.10 ...
There is something called attrdict3:
https://pypi.org/project/attrdict3/
at the same version +0.0.1; maybe we should use this?
PPS: On the first issue, the homepage says:
PyCrypto 2.x is unmaintained, obsolete, and contains security vulnerabilities.
Please choose one of the following alternatives:
Cryptography
Recommended for new applications.
Newer API with fewer gotchas.
API docs
GitHub
PyPI
PyCryptodome
Recommended for existing software that depends on PyCrypto.
Fork of PyCrypto. Most applications should run unmodified.
API docs
GitHub
PyPI
Then we have:
Building the following 6 packages would ensure 9 dependent packages are rebuilt: python-miio@0.5.11 ledger-agent@0.9.0 electrum@4.3.2 eolie@0.9.101 jrnl@1.9.7 poezio@0.13.2
We already have python-pycryptodome and python-pycryptodomex.
Maybe we should try rebuilding the 9 dependent packages with one of them?
Do the specialists have a preference as to which one to use?
Both have a similar number of dependents currently.
next prev parent reply other threads:[~2023-02-19 11:02 UTC|newest]
Thread overview: 124+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 9:05 Merging core-updates? Julien Lepiller
2023-02-12 11:06 ` Andreas Enge
2023-02-12 11:52 ` Julien Lepiller
2023-02-12 11:58 ` Julien Lepiller
2023-02-12 13:05 ` Christopher Baines
2023-02-20 11:10 ` Christopher Baines
2023-02-12 17:08 ` Andreas Enge
2023-02-12 18:29 ` Kaelyn
2023-02-13 20:04 ` Efraim Flashner
2023-02-13 21:36 ` Kaelyn
2023-02-14 14:50 ` Efraim Flashner
2023-02-14 20:29 ` Kaelyn
2023-02-15 0:07 ` Kaelyn
2023-02-12 18:40 ` Janneke Nieuwenhuizen
2023-02-13 11:34 ` Janneke Nieuwenhuizen
2023-02-13 13:57 ` Andreas Enge
2023-02-15 8:39 ` Janneke Nieuwenhuizen
2023-02-16 14:19 ` Andreas Enge
2023-02-16 15:03 ` bug#49985: " Janneke Nieuwenhuizen
2023-02-16 15:24 ` Andreas Enge
2023-02-16 15:33 ` Julien Lepiller
2023-02-12 14:49 ` Josselin Poiret
2023-02-13 3:05 ` John Kehayias
2023-02-12 12:02 ` Leo Famulari
2023-02-21 23:01 ` Ludovic Courtès
2023-02-12 13:28 ` Christopher Baines
2023-03-05 19:52 ` Christopher Baines
2023-03-05 22:18 ` Merging core-updates? OFF TOPIC PRAISE Joshua Branson
2023-02-12 15:51 ` Merging core-updates? Efraim Flashner
2023-02-13 16:40 ` Katherine Cox-Buday
2023-02-13 17:11 ` John Kehayias
2023-02-13 20:22 ` Andreas Enge
2023-02-13 20:38 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-02-13 9:43 ` zimoun
2023-02-13 10:56 ` Architecture support [was: Re: Merging core-updates?] Efraim Flashner
2023-02-13 12:59 ` Architecture support Andreas Enge
2023-02-14 16:30 ` Architecture support [was: Re: Merging core-updates?] Andreas Enge
2023-02-14 16:40 ` Julien Lepiller
2023-02-15 9:45 ` Architecture support Andreas Enge
2023-02-17 16:49 ` Architecture support [was: Re: Merging core-updates?] Christopher Baines
2023-02-19 22:50 ` Architecture support Andreas Enge
2023-02-20 9:23 ` Christopher Baines
2023-02-14 20:10 ` Architecture support [was: Re: Merging core-updates?] Efraim Flashner
2023-02-15 9:35 ` Andreas Enge
2023-02-13 20:35 ` Merging core-updates? Andreas Enge
2023-02-13 21:31 ` Efraim Flashner
2023-02-14 18:27 ` Andreas Enge
2023-02-15 18:51 ` Andreas Enge
2023-02-15 19:19 ` Openjdk (was: Merging core-updates?) Andreas Enge
2023-02-16 11:03 ` Efraim Flashner
2023-02-16 11:38 ` Julien Lepiller
2023-02-18 11:28 ` Andreas Enge
2023-02-17 10:36 ` Andreas Enge
2023-02-17 14:49 ` Andreas Enge
2023-02-17 16:28 ` Andreas Enge
2023-02-17 17:27 ` Kaelyn
2023-02-18 10:55 ` Andreas Enge
2023-02-16 11:41 ` Merging core-updates? Maxime Devos
2023-02-16 16:03 ` Andreas Enge
2023-02-18 11:03 ` Ocaml (was: Merging core-updates?) Andreas Enge
2023-02-18 11:38 ` Andreas Enge
2023-02-19 9:15 ` Julien Lepiller
2023-02-20 10:35 ` Simon Tournier
2023-02-20 11:16 ` Julien Lepiller
2023-02-20 11:55 ` Ocaml Andreas Enge
2023-02-19 11:02 ` Andreas Enge [this message]
2023-02-19 11:15 ` Python (was: Merging core-updates?) Andreas Enge
2023-02-19 11:19 ` Andreas Enge
2023-02-19 15:10 ` Attila Lendvai
2023-02-21 16:24 ` Python Andreas Enge
2023-02-19 11:30 ` Python (was: Merging core-updates?) Andreas Enge
2023-02-19 20:31 ` Python Andreas Enge
2023-02-21 16:41 ` Python Andreas Enge
2023-02-22 14:23 ` Python Andreas Enge
2023-02-23 15:16 ` Python Andreas Enge
2023-02-24 16:47 ` Python Andreas Enge
2023-02-24 16:51 ` Python Andreas Enge
2023-02-24 18:08 ` Python Lars-Dominik Braun
2023-02-25 15:15 ` Python Andreas Enge
2023-02-25 15:45 ` Python Lars-Dominik Braun
2023-02-25 16:39 ` Python Andreas Enge
2023-02-25 16:56 ` Python Lars-Dominik Braun
2023-02-25 18:00 ` Python Andreas Enge
2023-02-25 18:06 ` Python Andreas Enge
2023-02-25 18:15 ` Python Andreas Enge
2023-02-25 18:33 ` Python Andreas Enge
2023-02-27 19:14 ` Python Lars-Dominik Braun
2023-02-28 15:05 ` Python Andreas Enge
2023-02-25 18:29 ` Python Andreas Enge
2023-03-11 11:20 ` Python Andreas Enge
2023-03-11 11:44 ` Python Andreas Enge
2023-03-15 13:49 ` Python Andreas Enge
2023-03-18 8:59 ` Python Lars-Dominik Braun
2023-03-18 9:15 ` Python Andreas Enge
2023-03-18 10:02 ` Python Lars-Dominik Braun
2023-03-18 10:13 ` Python Andreas Enge
2023-03-18 9:43 ` Python Lars-Dominik Braun
2023-03-18 19:37 ` Python Andreas Enge
2023-03-21 18:56 ` Python Lars-Dominik Braun
2023-03-30 9:57 ` Python Lars-Dominik Braun
2023-03-30 10:10 ` Python Andreas Enge
2023-04-03 17:29 ` PyQt in core-updates Andreas Enge
2023-04-04 7:55 ` Lars-Dominik Braun
2023-04-17 8:32 ` Andreas Enge
2023-03-30 11:05 ` Python Lars-Dominik Braun
2023-03-31 8:52 ` Python Andreas Enge
2023-02-27 18:55 ` Python Efraim Flashner
2023-02-27 19:12 ` Python Lars-Dominik Braun
2023-02-21 16:50 ` Python (was: Merging core-updates?) Andreas Enge
2023-02-19 11:47 ` Lars-Dominik Braun
2023-02-19 11:57 ` Andreas Enge
2023-02-19 15:50 ` Lars-Dominik Braun
2023-02-19 20:27 ` Python Andreas Enge
2023-02-25 17:44 ` Python Andreas Enge
2023-02-19 21:35 ` Python (was: Merging core-updates?) Andreas Enge
2023-02-19 22:08 ` Andreas Enge
2023-02-19 22:59 ` Kaelyn
2023-02-21 16:18 ` Andreas Enge
2023-02-19 19:55 ` Andreas Enge
2023-02-19 11:48 ` Andreas Enge
2023-02-19 22:24 ` Andreas Enge
2023-02-21 16:58 ` Andreas Enge
2023-02-22 9:40 ` Icecat (was: Python) Andreas Enge
2023-02-16 20:11 ` Merging core-updates? Josselin Poiret
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=Y/IBt4HoRV1h2QOo@jurong \
--to=andreas@enge.fr \
--cc=guix-devel@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).