title: ImportError: cannot import name 'convert_kernel' from partially initialized module 'keras.utils.conv_utils'
body: <p>So, I have written python ML code with many packages, some of which are tensorflow, keras and stuff like this. The code didn't have any problem, it was running, until 2 days ago the interpreter displayed this error:</p>
  <pre><code>ImportError: cannot import name 'convert_kernel' from partially initialized module 'keras.utils.conv_utils' (most likely due to a circular import) (/home/UbuntuUser/.local/lib/python3.8/site-packages/keras/utils/conv_utils.py)
  </code></pre>
  <p>I am trying since yesterday to fix it. I found this suggested solution:
  <a href="https://stackoverflow.com/questions/61911032/attributeerror-keras-backend-no-attribute-eager">AttributeError: keras.backend ,no attribute &#39;eager&#39;</a>
  but it does not make any difference. Still the same error. I updated tensorflow to 2.2 -&gt; nothing, I installed previous Keras edition prior to 2.2.5 as I figured out from the above link + tensorflow 2.0 -&gt; nothing...</p>
  <p>This also, didn't work for me: <a href="https://stackoverflow.com/questions/53456874/importerror-cannot-import-name-convert-kernel">ImportError: cannot import name &#39;convert_kernel&#39;</a></p>
  <p>I have no idea how to fix it. I am searching google, github, stackoverflow links to find a solution however without any success. What I cannot understand is how this can happen, I mean how did I get this error, since my program was running without any problems and I haven't done any updates recently.</p>
  <p>I also changed <code>keras</code> to <code>tensorflow.keras</code> command (as this post suggests: <a href="https://stackoverflow.com/questions/58047454/how-to-fix-module-keras-backend-tensorflow-backend-has-no-attribute-is-tf">How to fix &#39; module &#39;keras.backend.tensorflow_backend&#39; has no attribute &#39;_is_tf_1&#39;&#39;</a>) and I got something similar:</p>
  <pre><code>ImportError: cannot import name 'constant' from partially initialized module 'tensorflow.python.framework.constant_op' (most likely due to a circular import) (/home/UbuntuUser/.local/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py)
  </code></pre>
  <p>I also changed filename, as this post suggests: <a href="https://stackoverflow.com/questions/64807163/importerror-cannot-import-name-from-partially-initialized-module-m">ImportError: cannot import name &#39;...&#39; from partially initialized module &#39;...&#39; (most likely due to a circular import)</a> without anything improved. Similar error.</p>
  <p>I am using the latest Kubuntu 20.04.2 LTS OS. Has anyone faced something similar and how he fixed it??</p>