Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] bjdata (UBJSON backend) prints a NumPy 1.x/2.x ABI notice under NumPy 2.x

Abierto
#1,890 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
numpy, python
Área
api, backend

Línea de trabajo

Comienza con la importación opcional de bjdata en autobahn.wamp.serializer y, después, revisa NeuroJSON/pybj#7 y la entrada relacionada del tracker de crossbar. El issue presenta como opciones la documentación, fijar la versión de la dependencia o hacer un seguimiento sin cambios de código; por lo tanto, para completarlo se requiere una decisión de un maintainer y depende de una versión upstream de bjdata compatible con NumPy.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug CI-CD PRIO LOW

Summary

Since the py-ubjson → bjdata migration (#1849), autobahn's optional
"ubjson" serializer is backed by bjdata. bjdata (0.6.6) ships sdist only
and builds its _bjdata C extension against NumPy 1.x via the deprecated
oldest-supported-numpy. Imported under NumPy 2.x (now the default), NumPy
prints a multi-line diagnostic to stderr:

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.4.x ...
  from _bjdata import dump, dumpb, load, loadb
AttributeError: _ARRAY_API not found

import bjdata still succeeds and UBJSON (de)serialization of normal WAMP
payloads works — only bjdata's unused NumPy-NDArray path is affected — but the
notice is alarming and shows up in any app that imports
autobahn.wamp.serializer with bjdata installed (e.g. crossbar version).

Root cause / where the real fix lives

This is a bjdata packaging bug (it should build against numpy>=2.0, which
is dual-compatible, and ship wheels). Filed upstream: https://github.com/NeuroJSON/pybj/issues/7
NeuroJSON/pybj (see also the existing NeuroJSON/pybj#6, which is a different
topic).

What autobahn could do (options, none urgent)

  1. Document the caveat for the serialization/all extras (UBJSON backend
    is CPython-only and currently emits a NumPy-2 notice until bjdata is fixed).
  2. Pin bjdata to the first release that builds against NumPy 2.x, once
    available.
  3. Nothing in code — autobahn cannot fix bjdata's build; this is mainly a
    tracking note so the ecosystem is aware.

Downstream note

crossbar has added a short-term, narrowly-scoped stderr filter for this
specific benign notice in its CLI entry point, to be removed once bjdata ships a
NumPy 2.x build. (crossbar issue: see the crossbar tracker.)

Related: #1849.

Checklist

  • I have searched existing issues to avoid duplicates
  • I have provided a minimal reproducible example
  • I have included version information
  • I have included error messages/logs
Lenguaje dominante
Python
Estrellas
2.5k
Forks
770
Merge medio
2 d 6 h
PR fusionados (30 d)
10

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de crossbario/autobahn-python

Todos los issues de crossbario/autobahn-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.