datajoint-python
datajoint-python copied to clipboard
`pydot` error for Windows pip install: `dot` executable not in path
trafficstars
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
progargument (see source) across allwrite_Xfunctions when callingdj.Diagram(table, prog='dot.exe') - Catch this
FileNotFoundErrorand do one or more of the following- Attempt
progarg ourselves. - Direct users to pydot discussion
- Suggest conda install of pydot
- Attempt