Failure to run autopkgtest with python3.14

Aperta
#2,028 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Reproduce the failure with the shown Python 3.14 import command and inspect ola/rpc/Rpc_pb2.py together with the protobuf runtime imports in the traceback. Identify the compatibility problem, then verify that the ClientWrapper import succeeds and the Debian autopkgtest passes under Python 3.14.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug Language-Python OpSys-Linux

Debian unstable/testing recently added python3.14.

This causes the following error:

root@bf69505d7d74:~# python3.14 -c "from ola.ClientWrapper import ClientWrapper; print(ClientWrapper)"
TypeError: Metaclasses with custom tp_new are not supported.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from ola.ClientWrapper import ClientWrapper; print(ClientWrapper)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/ola/ClientWrapper.py", line 29, in <module>
    from ola.OlaClient import OlaClient
  File "/usr/lib/python3/dist-packages/ola/OlaClient.py", line 24, in <module>
    from ola.rpc.StreamRpcChannel import StreamRpcChannel
  File "/usr/lib/python3/dist-packages/ola/rpc/StreamRpcChannel.py", line 23, in <module>
    from ola.rpc import Rpc_pb2
  File "/usr/lib/python3/dist-packages/ola/rpc/Rpc_pb2.py", line 5, in <module>
    from google.protobuf.internal import builder as _builder
  File "/usr/lib/python3/dist-packages/google/protobuf/internal/builder.py", line 42, in <module>
    from google.protobuf import reflection as _reflection
  File "/usr/lib/python3/dist-packages/google/protobuf/reflection.py", line 51, in <module>
    from google.protobuf import message_factory
  File "/usr/lib/python3/dist-packages/google/protobuf/message_factory.py", line 42, in <module>
    from google.protobuf.internal import api_implementation
  File "/usr/lib/python3/dist-packages/google/protobuf/internal/api_implementation.py", line 104, in <module>
    from google.protobuf.pyext import _message
SystemError: <built-in function __import__> returned a result with an exception set

My python skills are not advanced enough to resolve this...

Lingua principale
C++
Stelle
771
Fork
234
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenLightingProject/ola

Tutte le issue di OpenLightingProject/ola

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.