Skip to content
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

make preview fails #7

Closed
naupaka opened this issue Apr 29, 2015 · 10 comments
Closed

make preview fails #7

naupaka opened this issue Apr 29, 2015 · 10 comments

Comments

@naupaka
Copy link
Member

naupaka commented Apr 29, 2015

Looks like one of the python scripts isn't happy:

pandoc -s -t html \
    --template=_layouts/page \
    --filter=tools/filters/blockquote2div.py \
    --filter=tools/filters/id4glossary.py \
    -Vheader="$(cat _includes/header.html)" -Vbanner="$(cat _includes/banner.html)" -Vfooter="$(cat _includes/footer.html)" -Vjavascript="$(cat _includes/javascript.html)" \
    -o 01-rstudio-intro.html 01-rstudio-intro.md
pandoc: Error running filter tools/filters/blockquote2div.py
fd:4: hPutBuf: resource vanished (Broken pipe)
make: *** [01-rstudio-intro.html] Error 83
@tomwright01
Copy link
Contributor

Works fine for me.

$ git pull swc gh-pages
$ make preview
$ uname -a
Linux tom-laptop 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) x86_64 GNU/Linux
$ python -V
Python 2.7.9

@naupaka
Copy link
Member Author

naupaka commented Apr 29, 2015

Which OS are you on? Which version of python?

@karawoo
Copy link
Contributor

karawoo commented Apr 29, 2015

Works for me on Ubuntu 14.04 with Python 3.4.

@naupaka
Copy link
Member Author

naupaka commented Apr 29, 2015

Here the prob:

python blockquote2div.py                                                                    gh-pages
Traceback (most recent call last):
  File "blockquote2div.py", line 47, in <module>
    import pandocfilters as pf
ImportError: No module named pandocfilters

Simple fix: pip install pandocfilters

Then everything works.

@naupaka
Copy link
Member Author

naupaka commented Apr 29, 2015

OS X 10.10.3, btw. Worth adding a note on this somewhere?

@karawoo
Copy link
Contributor

karawoo commented Apr 29, 2015

Yeah I think so. Now that I think of it I've definitely run into this before.

@jdblischak
Copy link
Contributor

@naupaka
Copy link
Member Author

naupaka commented Apr 29, 2015

Excellent, thanks.

@naupaka naupaka closed this as completed Apr 29, 2015
@abought
Copy link
Contributor

abought commented Apr 29, 2015

In theory, pandocfilters should be installed so long as you run pip install -r requirements.txt with the files from lesson-template... it's definitely worth emphasizing this prerequisite.
https://github.com/swcarpentry/lesson-template/blob/gh-pages/requirements.txt

It's mentioned in lesson-example, if that helps... but somehow README.md is only present in the example lesson now.

@gvwilson
Copy link
Contributor

Can we catch an exception somewhere in our code if pandocfilters isn't
installed, and print a link to the instructions?

Fil added a commit to Fil/D3-visualising-data that referenced this issue Jun 17, 2016
fmichonneau added a commit that referenced this issue Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants