New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbconvert test failure #3894
Comments
Thanks again for this report. There are two issues here:
Can you apply this patch, and report on what you get back? I threw in an diff --git a/IPython/nbconvert/tests/test_nbconvertapp.py b/IPython/nbconvert/tests/test_nbconvertapp.py
index 8649fc7..8927234 100644
--- a/IPython/nbconvert/tests/test_nbconvertapp.py
+++ b/IPython/nbconvert/tests/test_nbconvertapp.py
@@ -81,8 +81,11 @@ def test_post_processor(self):
Do post processors work?
"""
with self.create_temp_cwd(['notebook1.ipynb']):
- self.call('nbconvert --log-level=0 --to="latex" notebook1'
+ o,e = self.call('nbconvert --log-level=10 --to="latex" notebook1'
' --post="PDF" --PDFPostProcessor.verbose=True')
+ print e
+ print os.path.abspath('.')
+ os.abort()
assert os.path.isfile('notebook1.tex')
assert os.path.isfile('notebook1.pdf') my output with that patch looks like this:
(so in this case, I could have gone on to |
👂 |
It sounds like it may be a problem with the pdflatex installation. If you have time, and if the output @ivanov requested doesn't seem to provide much more information, try these steps:
|
Just ran the test, the error is:
|
AH! Do you have sphinx on your machine? |
sphinx version? |
BTW, you should always run pdflatex with |
This brings up a good point, that test should check for sphinx and report something meaningful. |
I have it set as a flag in the templates, is that a bad idea? |
it might be the howto.cls has moved, or in debian-style installs it may live somewhere weird. |
I have |
what does this mean? the |
There's no point in running with interactive queries at least in the test suite, since it's meant to be a completely automated process. |
1.1.3 is latest. Does Ubuntu split sphinx into a few different packages, so you might have a partial install? |
Ok, I'll add the flag to the post-processor. I meant it's here - https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/latex/latex_basic.tplx#L4 |
I have the file: |
You may want to play with the |
arg, so debian puts files in a different place from a normal sphinx install. I love it when they do that. |
It's in the sphinx transformer |
But we should try to fix this before release, I don't want a broken test suite on debian/ubuntu out of the gate... |
That path isn't guaranteed to be valid, unfortunately. |
I think I found it: from sphinx import package_dir
tex_inputs = os.path.join(package_dir, "texinputs") |
resolves to /usr/share/sphinx on my debian machine, and site-packages/sphinx on my manual install. |
Go forth and spawn a PR... |
Nice! Thanks @minrk , do you want to open the PR or should I? |
PR #3948 |
You guys are great! As soon the PR is merged, I will run |
Sphinx and PDF tweaks for nbconvert: - add `--interaction=batchmode` to pdflatex call to avoid waiting for interactive input. - use sphinx.package_dir to find texinputs directory regardless of on-disk location. Closes #3894.
Sphinx and PDF tweaks for nbconvert: - add `--interaction=batchmode` to pdflatex call to avoid waiting for interactive input. - use sphinx.package_dir to find texinputs directory regardless of on-disk location. Closes ipython#3894.
this was originally reported by @gabraganca as ipython/nbconvert#200, but we're not using that repo anymore, so I decided to move the conversation here:
@gabraganca wrote:
Hi,
I have run
iptest
as @ivanov asked on twitter and the test have thrown me an error:I then rerun this as asked and got
I hope that this helps.
The text was updated successfully, but these errors were encountered: