chaco icon indicating copy to clipboard operation
chaco copied to clipboard

can't build chaco 4.1.0 docs without access to an X11 display

Open lebedov opened this issue 12 years ago • 3 comments

Not exactly a bug, but it does complicate rebuilding of the docs when building chaco via an automated Linux distro package build system. It seems that the chaco 4.1.0 docs can only be built with access to an X11 display:

$ export DISPLAY=
$ make html 
sphinx-build -b html -d build/doctrees   source build/html
Making output directory...
Running Sphinx v1.1.2
loading pickled environment... not yet created
building [html]: targets for 28 source files that are out of date
updating environment: 28 added, 0 changed, 0 removed
Unable to access the X Display, is $DISPLAY set properly?             
make: *** [html] Error 1

I'm attempting the build on a Linux box running Python 2.7.2.

lebedov avatar Dec 27 '11 17:12 lebedov

I am not able to reproduce your error, in either Mac OS or Ubuntu.

timdiller avatar Dec 27 '11 20:12 timdiller

I can confirm this on Fedora 16.

It seems to occur because Sphinx' autodoc imports enable.api; if you build the docs while enable is not installed in the python path, then the error doesn't occur (but Sphinx complains about not being able to import enable.api.)

ptomato avatar Apr 30 '12 16:04 ptomato

Probably fixed by enthought/enable#392

jwiggins avatar Mar 24 '21 11:03 jwiggins