Closed strogdon closed 8 years ago
OK so presumably you would be hit just with LINGUAS=en
.
There are several graph_plot-16.pdf
files available - I presume they should be the same file. From src-python2_7/build_doc
ls -al `find ./ | grep graph_plot-16.pdf`
-rw-r--r-- 1 portage portage 90917 May 2 23:00 ./doctrees/en/reference/plot_directive/sage/graphs/graph_plot-16.pdf
-rw-r--r-- 1 portage portage 80502 May 2 22:29 ./html/en/reference/graphs/sage/graphs/graph_plot-16.pdf
-rw-r--r-- 1 portage portage 80502 May 2 22:32 ./html/en/reference/plotting/sage/graphs/graph_plot-16.pdf
-rw-r--r-- 1 portage portage 90917 May 2 23:00 ./inventory/en/reference/graphs/sage/graphs/graph_plot-16.pdf
-rw-r--r-- 1 portage portage 90917 May 2 23:00 ./inventory/en/reference/plotting/sage/graphs/graph_plot-16.pdf
-rw-r--r-- 1 portage portage 90917 May 2 23:00 ./latex/en/reference/graphs/graph_plot-16.pdf
If I copy ./html/en/reference/graphs/sage/graphs/graph_plot-16.pdf
over to build_doc/latex/en/reference/graphs
and type make
the build proceeds a bit further where I get a similar error for graph_plot-18.pdf
[720 <./graph_plot-18.pdf
pdfTeX warning: pdflatex (file ./graph_plot-18.pdf): PDF inclusion: invalid oth
er resource which is no dict (key 'XObject', type <null>); ignored.
pdfTeX warning: pdflatex (file ./graph_plot-18.pdf): PDF inclusion: invalid oth
er resource which is no dict (key 'Pattern', type <null>); ignored.
pdfTeX warning: pdflatex (file ./graph_plot-18.pdf): PDF inclusion: invalid oth
er resource which is no dict (key 'ExtGState', type <null>); ignored.
pdfTeX warning: pdflatex (file ./graph_plot-18.pdf): PDF inclusion: invalid oth
er resource which is no dict (key 'Shading', type <null>); ignored.
!pdfTeX error: pdflatex (file ./graph_plot-18.pdf): PDF inclusion: invalid font
resources dict type <null>
==> Fatal error occurred, no output PDF file produced!
Perhaps some of the pdfs are being corrupted?
And if I correct graph_plot-18.pdf
in the same way as graph_plot-16.pdf
and type make
the build completes for graph.pdf
.
I have a feeling it is related to #402 all this was introduced with new graphing capabilities in the doc.
When I try to open the offending graph_plot-16.pdf
in a pdf viewer I get
"Error (442): Bad 'Length' attribute in stream"
"Error (598): Missing 'endstream' or incorrect stream length"
"Error: XObject 'I1' is unknown"
Both graph_plot-16.pdf
and graph_plot-18.pdf
may be repaired with pdftk
so that the make
completes. I'm wondering if this is because of libpng warning: iTXt: bad compression info
that appears frequently during building the html-docs.
No, in that I have those messages too and I don't suffer from that problem. I cannot reproduce this locally. So I think that is possibly a useflag problem. What are the useflag you have for matplotlib
Slowly, over the years, I've been stripping away matplotlib
useflags
[I] dev-python/matplotlib
Available versions: [m]~1.3.1^m[1] 1.4.3 (~)1.5.0 (~)1.5.1 **9999 {cairo doc examples excel fltk gtk gtk2 gtk3 latex pyside qt4 qt5 test tk wxwidgets PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
Installed versions: 1.5.1(07:21:16 PM 03/01/2016)(cairo qt4 tk -doc -examples -excel -fltk -gtk2 -gtk3 -latex -pyside -qt5 -test -wxwidgets PYTHON_TARGETS="python2_7 python3_3 -python3_4 -python3_5")
Homepage: http://matplotlib.org/
Description: Pure python plotting library with matlab like syntax
[1] "local-overlay" /usr/local/portage
In prefix I have stripped every useflag from matplotlib
for various problems. If anything it's probably qt4
.
I don't think so, I would like you to re-enable latex
. It is a bit of a wild guess.
This will take a while. Nothing extra was installed by adding the useflag.
I was fearing that, it can be an automagic runtime dependency which makes the useflag meaningless.
Not surprising, the build failed in the same location.
Useflags for sphinx
?
sphinx useflags
[I] dev-python/sphinx
Available versions: 1.1.3-r7 1.2.2 1.2.2[1] [m]~1.2.3 [m]~1.2.3[1] [m]~1.2.3[2] [m]1.3.1-r1 ~1.3.5 (~)1.4.1[1] {doc latex test PYTHON_TARGETS="pypy pypy3 python2_7 python3_3 python3_4 python3_5"}
Installed versions: 1.4.1[1](08:02:52 PM 05/02/2016)(-doc -latex -test PYTHON_TARGETS="python2_7 python3_3 -python3_4 -python3_5")
Homepage: http://sphinx.pocoo.org/ https://pypi.python.org/pypi/Sphinx
Description: Python documentation generator
[1] "sage-on-gentoo" /var/lib/layman/sage-on-gentoo
[2] "local-overlay" /usr/local/portage
Adding latex
pulls in nothing new. I do notice that installed dev-python/Babel
is old, version 1.3-r1 which is no longer in the tree. Vanilla uses version 2.2. Let's try upgrading that.
But Babel
is probably not the issue.
Well Babel
was the issue. Who would have thought? So it must do lots of odd things. I'm not sure how the upgrade was skipped over here.
The sphinx
ebuild only require an old version not in the tree anymore. I will bump it to 2.1.1 (what I have).
So, I'll close this.
I am adding it to the stuff I need to communicate to sphinx
upstream, from sphinx
's own setup.py
requires = [
'six>=1.4',
'Jinja2>=2.3',
'Pygments>=2.0',
'docutils>=0.11',
'snowballstemmer>=1.1',
'babel>=1.3,!=2.0',
'alabaster>=0.7,<0.8',
'imagesize',
]
which is what is in the ebuild for a while.
This is the first sage with
sphinx-1.4.1
. l haveLINGUAS="en fr"
. Building the pdfs I get from thebuild.log
The
graph_plot-16.pdf
is fromsrc-python2_7/build_doc/latex/en/reference/graphs
andgraphs.log
has