The transition to numpy2 may be tracked here: https://github.com/Amulet-Team/Amulet-NBT/issues/73
In the meanwhile, this package will depend on numpy1
Git Clone URL: | https://aur.archlinux.org/python-amulet-nbt.git (read-only, click to copy) |
---|---|
Package Base: | python-amulet-nbt |
Description: | A Python and Cython library for reading and writing binary NBT and stringified NBT |
Upstream URL: | https://github.com/Amulet-Team/Amulet-NBT |
Keywords: | amulet cython editor library map nbt python |
Licenses: | LicenseRef-Amulet-Team-1.0.0 |
Submitter: | 0x9fff00 |
Maintainer: | Kimiblock |
Last Packager: | Kimiblock |
Votes: | 1 |
Popularity: | 0.000526 |
First Submitted: | 2020-05-16 17:01 (UTC) |
Last Updated: | 2025-04-20 05:11 (UTC) |
The transition to numpy2 may be tracked here: https://github.com/Amulet-Team/Amulet-NBT/issues/73
In the meanwhile, this package will depend on numpy1
This library is still incompatible with numpy 2.x:
$ amulet_map_editor
Traceback (most recent call last):
File "/usr/bin/amulet_map_editor", line 5, in <module>
from amulet_map_editor.__main__ import main
File "/usr/lib/python3.13/site-packages/amulet_map_editor/__init__.py", line 27, in <module>
from amulet_map_editor.api.framework.app import open_level, close_level
File "/usr/lib/python3.13/site-packages/amulet_map_editor/api/framework/__init__.py", line 1, in <module>
from .app import AmuletApp
File "/usr/lib/python3.13/site-packages/amulet_map_editor/api/framework/app.py", line 2, in <module>
from . import amulet_ui
File "/usr/lib/python3.13/site-packages/amulet_map_editor/api/framework/amulet_ui.py", line 8, in <module>
from amulet.api.errors import LoaderNoneMatched
File "/usr/lib/python3.13/site-packages/amulet/__init__.py", line 23, in <module>
from .api import *
File "/usr/lib/python3.13/site-packages/amulet/api/__init__.py", line 1, in <module>
from .block import *
File "/usr/lib/python3.13/site-packages/amulet/api/block.py", line 6, in <module>
from amulet_nbt import ByteTag, ShortTag, IntTag, LongTag, StringTag, from_snbt
File "/usr/lib/python3.13/site-packages/amulet_nbt/__init__.py", line 100, in <module>
from ._array import (
...<7 lines>...
)
File "amulet_nbt/_array.pyx", line 1, in init amulet_nbt._array
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Until there is an upstream fix, maybe you could update the dependency to point to python-numpy1 or at least python-numpy<2.0
? The numpy1
package here in the AUR just got a patch to work with the latest Python 3.13 today.
Whoops...
FAILED (errors=108, skipped=4)
==> ERROR: A failure occurred in check()
@Pietro_Pizzi Doesn't happen in a clean chroot, please post full logs
Does anybody know if this is only a problem for me?
FAILED (errors=13, skipped=1) ==> ERROR: A failure occurred in check(). Aborting... -> Failed to install layer, rolling up to next layer.error:error making: python-amulet-nbt - exit status 4
fyi this fails to build currently due to too new numpy
and cpython
versions
there is currently a pre-release version that rewrites the entire library in C++ found here, unsure if you'll update to it yet or not but do note for an eventual stable release that dependencies will most likely need to be changed as a result
@ross232 Fixed, I've switched to a git source to avoid the unstable hash
I'm getting this error at the moment:
Building python-amulet-nbt... ==> Making package: python-amulet-nbt 2.1.2-1 (Sun 25 Feb 2024 10:20:50) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found python-amulet-nbt-2.1.2.tar.gz ==> Validating source files with sha256sums... python-amulet-nbt-2.1.2.tar.gz ... FAILED ==> ERROR: One or more files did not pass the validity check! Failed to build python-amulet-nbt
@SysGhost I can't reproduce those errors in a clean chroot
Got an invalid checksum again.
It also fails on a bunch of errors: (All the same) python-amulet-nbt/src/Amulet-NBT-2.1.2/build/lib.linux-x86_64-cpython-311/amulet_nbt/_value.cpython-311-x86_64-linux-gnu.so: failed to map segment from shared object
Pinned Comments
Kimiblock commented on 2025-04-20 05:12 (UTC)
The transition to numpy2 may be tracked here: https://github.com/Amulet-Team/Amulet-NBT/issues/73
In the meanwhile, this package will depend on numpy1