datajoint-python
datajoint-python copied to clipboard
`pydot` error for Windows pip install: `dot` executable not in path
Bug Report
Description
This pydot issue summarizes the issues for Windows users. For DataJoint Windows users, pip install datajoint
may result in the following errors when calling dj.Diagram
:
FileNotFoundError: [WinError 2] "dot" not found in path.
Reproducibility
Include:
- OS WIN
- Python 3.8
- DataJoint 0.13.5
- Minimum number of steps to reliably reproduce the issue
pip install datajoint
from any_pipeline import table
import datajoint as dj
dj.Di(table)
Expected Behavior
When installing datajoint according to instructions, Diagram
should work across all platforms.
Possible solves:
- Permit pydot's optional
prog
argument (see source) across allwrite_X
functions when callingdj.Diagram(table, prog='dot.exe')
- Catch this
FileNotFoundError
and do one or more of the following- Attempt
prog
arg ourselves. - Direct users to pydot discussion
- Suggest conda install of pydot
- Attempt