datajoint-python icon indicating copy to clipboard operation
datajoint-python copied to clipboard

`pydot` error for Windows pip install: `dot` executable not in path

Open CBroz1 opened this issue 2 years ago • 0 comments

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:

  1. Permit pydot's optional prog argument (see source) across all write_X functions when calling dj.Diagram(table, prog='dot.exe')
  2. Catch this FileNotFoundError and do one or more of the following
    1. Attempt prog arg ourselves.
    2. Direct users to pydot discussion
    3. Suggest conda install of pydot

CBroz1 avatar Jun 10 '22 14:06 CBroz1