New version of Keras and conflict with TMVA!

tensorflow 2.2.0
Keras 2.4.3 [2.3.0 OK]

running tutorial
tutorials/tmva/keras/RegressionKeras.py
bugs

ImportError: cannot import name 'tensorflow_backend' from 'keras.backend' (/usr/local/lib/python3.8/site-packages/keras/backend.py)

and I thinks the TMVA method PyKeras should have a function check Keras and tensor flow version so that it would not run if version is not right

Hi,
can you use keras+tensorflow at all (i.e. without tmva involved)?
As far as I can tell this is a problem with keras+tensorflow. I don’t think it’s too unreasonable if ROOT assumes the environment is sane if keras is found.

Cheers,
Enrico

of course yes, just a potential bug report for future use

I have the same issue, but I am working inside the CMSSW environment:
(Keras == 2.4.3, Tensorflow == 2.5.0 )

Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name ‘tensorflow_backend’ from ‘keras.backend’ (/cvmfs/cms.cern.ch/slc7_amd64_gcc10/external/py3-Keras/2.4.3-llifpc2/lib/python3.9/site-packages/keras/backend.py)
:
***> abort program execution

Does someone know how I can I change the Keras and Tensorflow version inside the cmsenv?
Thanks in advance!