[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Python (was: Merging core-updates?)
From: |
Andreas Enge |
Subject: |
Python (was: Merging core-updates?) |
Date: |
Sun, 19 Feb 2023 12:02:15 +0100 |
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.
Ocaml (was: Merging core-updates?), Andreas Enge, 2023/02/18
- Re: Ocaml (was: Merging core-updates?), Andreas Enge, 2023/02/18
- Re: Ocaml (was: Merging core-updates?), Julien Lepiller, 2023/02/19
- Re: Ocaml (was: Merging core-updates?), Simon Tournier, 2023/02/20
- Re: Ocaml (was: Merging core-updates?), Julien Lepiller, 2023/02/20
- Re: Ocaml, Andreas Enge, 2023/02/20
Python (was: Merging core-updates?),
Andreas Enge <=
Re: Python (was: Merging core-updates?), Andreas Enge, 2023/02/19
Re: Python, Andreas Enge, 2023/02/19
Re: Python, Andreas Enge, 2023/02/21
Re: Python, Andreas Enge, 2023/02/22
Re: Python, Andreas Enge, 2023/02/23
Re: Python, Andreas Enge, 2023/02/24