ImportError: generic_type: cannot initialize type "StatusCode": an object with that name is already defined
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza con el punto de entrada py::google::ImportStatusModule() y reproduce el fallo importando TensorFlow y launchpad en ambos órdenes. Sigue cómo la extensión de pybind11 inicializa StatusCode; se considera terminado cuando los paquetes que usan ImportStatusModule se pueden importar conjuntamente sin el ImportError por tipo duplicado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi,
I am trying to figure out some issues with using the pybind11_abseil.status usage. TensorFlow as well as some other Google projects are using the pybind11_abseil modules. I found that as of TensorFlow 2.14.0 (2.13.1 is fine), it looks like that using TensorFlow in conjunction with packages that use pybind11_abseil will fail with the error
ImportError: generic_type: cannot initialize type "StatusCode": an object with that name is already defined
This happens for example in https://github.com/google-deepmind/launchpad/issues/44 and https://github.com/tensorflow/tflite-support/issues/954. The error happens when a pybind11 extension that uses
py::google::ImportStatusModule() is called.
For example
import tensorflow
import launchpad # Fails when importing an extension that uses ImportStatusModule.
Reversing the order we will see the same issues this time coming from TensorFlow trying to import a module that uses
ImportStatusModule.
I noticed that there are some changes to the pybind11_abseil version used in TensorFlow 2.14.0, which incoporates some changes around the import_status_module, but I don't have a really good clue about what that change entails, it would be quite useful if you can provide some help.
Thanks!
- Lenguaje dominante
- C++
- Estrellas
- 27
- Forks
- 22
- Merge medio
- 19 h
- PR fusionados (30 d)
- 45
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pybind/pybind11_abseil
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 43/100
pybind/pybind11_abseil#83 ·
Los mantenedores suelen responder en 1 día
-
CMake linking and install improvementsQuizá libre de nuevo @Mizux la tomó hace 638 días y no hay ningún pull request abierto. Abiertocmake enhancement
pybind/pybind11_abseil#21 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Python bindings for absl::Status cause ODR violationQuizá libre de nuevo @Mizux la tomó hace 400 días y no hay ningún pull request abierto. Abiertobazel bug
pybind/pybind11_abseil#20 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bazel bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pybind/pybind11_abseil#18 ·
Los mantenedores suelen responder en 1 día
-
bug enhancement help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pybind/pybind11_abseil#4 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de pybind/pybind11_abseil
Issues similares
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
patrick-hudson/put.gd-desktop#2044 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
uxlfoundation/oneDNN#6604 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Posiblemente ocupada @fmu1337 la tomó hoy. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
alliedmodders/sourcemod#2627 ·
Los mantenedores suelen responder en 1 día