developmentseed / slickformer

Segmenting oil slicks with a panoptic segmentation transformer architecture
4 stars 1 forks source link

graphviz doesn't work in container #9

Closed rbavery closed 1 year ago

rbavery commented 1 year ago

I updated the container to add xdg-open but when I run to_graph:

/usr/bin/xdg-open: 869: www-browser: not found
/usr/bin/xdg-open: 869: links2: not found
/usr/bin/xdg-open: 869: elinks: not found
/usr/bin/xdg-open: 869: links: not found
/usr/bin/xdg-open: 869: lynx: not found
/usr/bin/xdg-open: 869: w3m: not found
xdg-open: no method available for opening 'Digraph.gv.pdf'

not finding a lot of hits on how to solve this so moving on and not using to_graph for now to inspect datapipe

weiji14 commented 1 year ago

Using to_graph works for me in JupyterLab from the docker container:

image

Code:

import torchdata

dp = torchdata.datapipes.iter.IterableWrapper(iterable=range(10))
torchdata.datapipes.utils.to_graph(dp)

Are you running this in the bash shell?

rbavery commented 1 year ago

Sorry stale issue, this is fixed now!