ageron / ageron/handson-ml2

Chapter 18: cannot import name 'naming' from 'tensorflow.python.autograph.core'

Abierto
#148 2 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
30k
Forks
13.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I've been trying to make the TF-Agents examples work on my machine and I keep getting this error which I can't seem to find a solution for (went on Tensorflow's github repo to search for issues and at a surface level nothing seemed to match what I had).

The error is the following :
```ImportError: cannot import name 'naming' from 'tensorflow.python.autograph.core' (/home/quoding/AI/ai_venv/lib/python3.7/site-packages/tensorflow/python/autograph/core/__init__.py)```

This error happens when importing with this line: `from tf_agents.environments import suite_atari`

I have installed the Python packages in the following manner : `pip install -r requirements.txt` with the `requirements.txt` file provided in this repo.

If it is worth noting, the error happens in the Notebook as well as in an editor with only the code.

I'll keep looking for a workaround, but any help is appreciated.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.