autonomio / talos

Hyperparameter Experiments with TensorFlow and Keras
https://autonom.io
MIT License
1.62k stars 268 forks source link

ImportError: cannot import name 'get_config' #553

Closed zonexo closed 2 years ago

zonexo commented 3 years ago

Hi,

I got this error when i run my code with talos in a new cluster. It worked previously on another cluster with the same code.

Traceback (most recent call last): File "main_multi_ip=cst_op=c_end_clc_clcd_cm_aoa_opt_talos.py", line 35, in import talos File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/talos/init.py", line 14, in from . import utils File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/talos/utils/init.py", line 3, in from kerasplotlib import TrainingLog as live File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/kerasplotlib/init.py", line 1, in from kerasplotlib.traininglog import TrainingLog File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/kerasplotlib/traininglog.py", line 8, in from keras.callbacks import Callback File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/keras/init.py", line 25, in from keras import models File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/keras/models.py", line 19, in from keras import backend File "/home/users/nus/tslcph1/.local/lib/python3.6/site-packages/keras/backend.py", line 36, in from tensorflow.python.eager.context import get_config ImportError: cannot import name 'get_config'

The version is talos 1.0, installed using "pip install talos --user"

The installation was successful though.

ghost commented 3 years ago

Hey,

same problem here. Everything was fine few weeks ago, now this error occurs...

MerveNazlim commented 3 years ago

Hello, Anybody solved this problem?

joekakone commented 2 years ago

Hello Any update ? I'm facing the same issue.

mikkokotila commented 2 years ago

Seems to be an issue upstream in TensorFlow. Have a look here.