{"action":"created","issue":{"url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/3","repository_url":"https://api.github.com/repos/martinGithub/beamer2pptx","labels_url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/3/comments","events_url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/3/events","html_url":"https://github.com/martinGithub/beamer2pptx/issues/3","id":174309374,"number":3,"title":"'header.tex' not found when running example","user":{"login":"davmat","id":12457840,"avatar_url":"https://avatars.githubusercontent.com/u/12457840?v=3","gravatar_id":"","url":"https://api.github.com/users/davmat","html_url":"https://github.com/davmat","followers_url":"https://api.github.com/users/davmat/followers","following_url":"https://api.github.com/users/davmat/following{/other_user}","gists_url":"https://api.github.com/users/davmat/gists{/gist_id}","starred_url":"https://api.github.com/users/davmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davmat/subscriptions","organizations_url":"https://api.github.com/users/davmat/orgs","repos_url":"https://api.github.com/users/davmat/repos","events_url":"https://api.github.com/users/davmat/events{/privacy}","received_events_url":"https://api.github.com/users/davmat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T15:48:41Z","updated_at":"2016-09-01T11:04:06Z","closed_at":null,"body":"I'm attempting to run the script using the 'example.tex' file, but it errors out when pdflatex attempts to convert the equations.  I've tried this on 2 OS's (OS X and Fedora 20), and I get the same error.  Any idea why?  Am I missing a TeXLive dependency?  Full error output is below.\r\n\r\n[username@localhost beamer2pptx-master]$ python beamer2pptx.py \r\nadd slide First Slide (1 over 4)\r\nadd slide Slide with images (2 over 4)\r\nadd slide Equations (3 over 4)\r\nThis is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev)\r\n restricted \\write18 enabled.\r\nentering extended mode\r\n(./tmp_equation.tex\r\nLaTeX2e <2011/06/27>\r\nBabel <3.9h> and hyphenation patterns for 2 languages loaded.\r\n(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.cls\r\nDocument Class: standalone 2012/09/15 v1.1b Class to compile TeX sub-files stan\r\ndalone\r\n(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)\r\n(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)\r\n(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)\r\n(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty\r\n(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex\r\n(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)))\r\n(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.cfg)\r\n(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls\r\nDocument Class: article 2007/10/19 v1.4h Standard LaTeX document class\r\n(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))\r\n(/usr/share/texlive/texmf-dist/tex/latex/preview/preview.sty\r\n(/usr/share/texlive/texmf-dist/tex/latex/preview/prtightpage.def)))\r\n\r\n! LaTeX Error: File `header.tex' not found.\r\n\r\nType X to quit or <RETURN> to proceed,\r\nor enter new name. (Default extension: tex)\r\n\r\nEnter file name: "},"comment":{"url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/comments/244046716","html_url":"https://github.com/martinGithub/beamer2pptx/issues/3#issuecomment-244046716","issue_url":"https://api.github.com/repos/martinGithub/beamer2pptx/issues/3","id":244046716,"user":{"login":"davmat","id":12457840,"avatar_url":"https://avatars.githubusercontent.com/u/12457840?v=3","gravatar_id":"","url":"https://api.github.com/users/davmat","html_url":"https://github.com/davmat","followers_url":"https://api.github.com/users/davmat/followers","following_url":"https://api.github.com/users/davmat/following{/other_user}","gists_url":"https://api.github.com/users/davmat/gists{/gist_id}","starred_url":"https://api.github.com/users/davmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davmat/subscriptions","organizations_url":"https://api.github.com/users/davmat/orgs","repos_url":"https://api.github.com/users/davmat/repos","events_url":"https://api.github.com/users/davmat/events{/privacy}","received_events_url":"https://api.github.com/users/davmat/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T11:04:06Z","updated_at":"2016-09-01T11:04:06Z","body":"Partially.  The 'header.tex' error is gone now, but now I get another error stating that it can't find 'equations/eqn1.png' (below is the output).  I was able to fix the problem by replacing lines 131 and 142 with `file=os.path.join('eqn%d.png'%ideqn)`, so the equation .png's are just placed in the working directory.  That or I can just manually make a directory called 'equations' and leave the script as-is.  Thanks for putting this code out on github, I'm sure its going to save me quite a bit of time in the future!  --David\r\n\r\n~/python/beamer2pptx$ python beamer2pptx.py \r\nadd slide First Slide (1 over 4)\r\nadd slide Slide with images (2 over 4)\r\nadd slide Equations (3 over 4)\r\nThis is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/MacPorts 2015_3) (preloaded format=pdflatex)\r\n restricted \\write18 enabled.\r\nentering extended mode\r\n(./tmp_equation.tex\r\nLaTeX2e <2015/01/01>\r\nBabel <3.9l> and hyphenation patterns for 2 languages loaded.\r\n(/opt/local/share/texmf-texlive/tex/latex/standalone/standalone.cls\r\nDocument Class: standalone 2012/09/15 v1.1b Class to compile TeX sub-files stan\r\ndalone\r\n(/opt/local/share/texmf-texlive/tex/generic/oberdiek/ifluatex.sty)\r\n(/opt/local/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)\r\n(/opt/local/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)\r\n(/opt/local/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty\r\n(/opt/local/share/texmf-texlive/tex/generic/xkeyval/xkeyval.tex\r\n(/opt/local/share/texmf-texlive/tex/generic/xkeyval/xkvutils.tex\r\n(/opt/local/share/texmf-texlive/tex/generic/xkeyval/keyval.tex))))\r\n(/opt/local/share/texmf-texlive/tex/latex/standalone/standalone.cfg)\r\n(/opt/local/share/texmf-texlive/tex/latex/base/article.cls\r\nDocument Class: article 2014/09/29 v1.4h Standard LaTeX document class\r\n(/opt/local/share/texmf-texlive/tex/latex/base/size10.clo))\r\n(/opt/local/share/texmf-texlive/tex/latex/preview/preview.sty\r\n(/opt/local/share/texmf-texlive/tex/latex/preview/prtightpage.def)))\r\nNo file tmp_equation.aux.\r\nPreview: Fontsize 10pt\r\nPreview: PDFoutput 1\r\nPreview: Tightpage 0 0 0 0\r\n[1{/opt/local/var/db/texmf/fonts/map/pdftex/updmap/pdftex.map}]\r\n(./tmp_equation.aux) )</opt/local/share/texmf-texlive/fonts/type1/public/amsfon\r\nts/cm/cmex10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm\r\n/cmmi10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi\r\n7.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>\r\n</opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr7.pfb></opt/l\r\nocal/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb>\r\nOutput written on tmp_equation.pdf (1 page, 45340 bytes).\r\nTranscript written on tmp_equation.log.\r\nconvert: unable to open image `equations/eqn1.png': No such file or directory @ error/blob.c/OpenBlob/2709.\r\nconvert: WriteBlob Failed `equations/eqn1.png' @ error/png.c/MagickPNGErrorHandler/1645.\r\nTraceback (most recent call last):\r\n  File \"beamer2pptx.py\", line 148, in <module>\r\n    pic = newslide.shapes.add_picture(file, left, top,height=height)  \r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pptx/shapes/shapetree.py\", line 321, in add_picture\r\n    image_part, rId = self.part.get_or_add_image_part(image_file)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pptx/parts/slide.py\", line 40, in get_or_add_image_part\r\n    image_part = self._package.get_or_add_image_part(image_file)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pptx/package.py\", line 49, in get_or_add_image_part\r\n    return self._image_parts.get_or_add_image_part(image_file)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pptx/package.py\", line 119, in get_or_add_image_part\r\n    image = Image.from_file(image_file)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pptx/parts/image.py\", line 166, in from_file\r\n    with open(image_file, 'rb') as f:\r\nIOError: [Errno 2] No such file or directory: 'equations/eqn1.png'"}}
{"actor":{"display_login":"davmat"}}