The repository has not been cloned yet. Run the following command first
to clone the repo, check out the target commit, and install dependencies:
bash
bash /setup_files/setup.sh
The code will then be available at /testbed.
You are working on the repository keras-team/keras (instance: keras-team__keras-20682).
The code is located in /testbed.
##20681 Consider changing the import order of pydot and its forks
In keras/src/utils/model_visualization.py:
python
try:
# pydot-ng is a fork of pydot that is better maintained.
import pydot_ng as pydot
except ImportError:
# pydotplus is an improved version of pydot
try:
import pydotplus as pydot
except ImportError:
# Fall back on pydot if necessary.
try:
import pydot
except ImportError:
pydot = None
pydotplus has not been updated in 10 years, and pydot-ng has not been updated in 6 years.
Consider using pydot as the first option and the other options as fallbacks instead of the other way around.
pydot has been resurrected some time ago and it's the main project.