Fresh install doesn't work (incompatible versions of tensorflow and tensorflow_privacy)

Abierto
#520 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python, tensorflow

Línea de trabajo

Comienza reproduciendo la instalación en un entorno nuevo con pip install tensorflow-privacy, después prueba import tensorflow_privacy e inspecciona las declaraciones de dependencias del paquete. Se considera terminado cuando una instalación nueva se importa correctamente con versiones compatibles de TensorFlow y TensorFlow Probability, incluida la cobertura de futuras incompatibilidades de versiones.

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

Descripción

Problem: Fresh install of tensorflow_privacy doesn't work

Steps to recreate: Create a new environment, run
pip install tensorflow-privacy
Now from within python, run
import tensorflow_privacy

I get this horrendous-looking error
ValueError: Arg specs do not match: original=FullArgSpec(args=['input', 'dtype', 'name', 'layout'], varargs=None, varkw=None, defaults=(None, None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), new=FullArgSpec(args=['input', 'dtype', 'name'], varargs=None, varkw=None, defaults=(None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), fn=<function ones_like_v2 at 0x16fe7a200>

Quick fix:
pip install tfp-nightly

Root of the problem:
This issue in tfp shows that the problem is that the current version of tfp was built using tf 2.13, however the latest version of tf is now 2.14 and they are incompatible. This is fixed in the nightly version of tfp but not yet in the main release.

SO, the error is not your fault (the privacy team) but in terms of the user experience I installed privacy and it didn't work. Is this something you could fix by specifying version numbers? I think if you do nothing the problem will fix itself when a new version of tfp is released, but then it might reappear when a new version of tensorflow is released

Lenguaje dominante
Python
Estrellas
2k
Forks
477
Merge medio
17 h 24 min
PR fusionados (30 d)
4

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 tensorflow/privacy

Todos los issues de tensorflow/privacy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.