I found out that the problem is specifically triggered by the import order of tensorflow
and pandas
. If pandas
package is imported after the import of tensorflow
, even if pandas
is not used in the subsequent code, the execution of next()
runs into an infinite loop.
I would like to know if anybody encounters the same problem and can explain why the import order is causing this issue.