fchauvel / flap

Flattening LaTeX projects
https://fchauvel.github.io/flap
GNU General Public License v3.0
17 stars 2 forks source link

Support for Python 3.2 #3

Closed fchauvel closed 8 years ago

fchauvel commented 8 years ago

Create after https://github.com/fchauvel/flap/issues/1#issuecomment-135980243.

I will check for the compatibility with python 3.2 and let you know.

gro1729 commented 8 years ago

That would be great! Thanks in advance

fchauvel commented 8 years ago

I just made minor changes to run the test suite under Python 3.2 using Tox, and all tests pass. Could you tell me more about the python version you are using as well as the stacktrace you get?

gro1729 commented 8 years ago

Good morning,

I use:

"Python 3.2 (r32:88445, Apr 16 2015, 14:24:34) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2"

And here is what I did. Only in order to be sure that I did not change my set of slides:

FLaP v0.2.3 -- Flat LaTeX Projects

Traceback (most recent call last): File "/home/gro/.pythonbrew/pythons/Python-3.2/lib/python3.2/runpy.py", line 160, in _run_module_as_main "main", fname, loader, pkg_name) File "/home/gro/.pythonbrew/pythons/Python-3.2/lib/python3.2/runpy.py", line 73, in _run_code exec(code, run_globals) File "/home/gro/tefeld/Presentations/EinfuehrungLaTeX/flap/main.py", line 21, in main(sys.argv) File "flap/ui.py", line 105, in main Controller(OSFileSystem()).run(arguments) File "flap/ui.py", line 83, in run self.flap.flatten(rootFile, output) File "flap/core.py", line 341, in flatten self.merge_latex_source() File "flap/core.py", line 356, in merge_latex_source merge = ''.join([ f.text() for f in fragments ]) File "flap/core.py", line 356, in merge = ''.join([ f.text() for f in fragments ]) File "flap/core.py", line 178, in fragments for each_fragment in self._delegate.fragments(): File "flap/core.py", line 179, in fragments for f in self.process_fragment(each_fragment): yield f File "flap/core.py", line 185, in process_fragment for f in self.replacements_for(fragment, eachMatch): yield f File "flap/core.py", line 272, in replacements_for graphic = self.select_image_file(fragment, match, path) File "flap/core.py", line 280, in select_image_file raise ValueError("Unable to find any file for graphic '%s' in '%s'" % (match.group(1), fragment.file().container().path())) ValueError: Unable to find any file for graphic ' figures/LaTeXcheatsheetPageone' in '//slides/EineKurzeEinfuehrungInLaTeX/Spickzettel'

figures/LaTeXcheatsheetPageone}'

keepaspectratio]{

figures/LaTeXcheatsheetPageone}'

figures/LaTeXcheatsheetPagetwo}'

keepaspectratio]{

figures/LaTeXcheatsheetPagetwo}'

figures/LaTeXcheatsheetPocketmod}'

figures/PocketmodFaltanleitung00}'

figures/PocketmodFaltanleitung01}'

figures/PocketmodFaltanleitung02}'

figures/PocketmodFaltanleitung03}'

figures/PocketmodFaltanleitung04}'

figures/PocketmodFaltanleitung05}'

figures/PocketmodFaltanleitung06}'

figures/PocketmodFaltanleitung07}'

figures/PocketmodFaltanleitung08}'

figures/jEdit}'

clip,interpolate,width=\textwidth]{

figures/TeXMakerUndStudioUndCo/DieHardcoreVariante/AcrobatReader}'

scale=0.25,clip,interpolate]{

figures/TeXMakerUndStudioUndCo/DieHardcoreVariante/AcrobatReader}'

scale=0.25,clip,interpolate]{

figures/TeXMakerUndStudioUndCo/DieHardcoreVariante/AcrobatReader}'

clip,interpolate,width=\textwidth]{

figures/TeXMakerUndStudioUndCo/DieHardcoreVariante/AcrobatReader}'

clip,interpolate,width=\textwidth]{

figures/Evince}'

scale=0.25,clip,interpolate]{

figures/EvinceOhneVollscreen}'

width=.85\textwidth,height=\textheight,keepaspectratio]{

figures/EvinceAlsTeilDerEntwicklungsumgebung}'

clip,interpolate,width=\textwidth]{

figures/SumatraPDF}'

clip,interpolate,width=\textwidth]{

figures/TeXMakerWindowsI}'

clip,interpolate,width=\textwidth]{

figures/TeXMakerWindowsII}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/WechselInDasTeXStudio}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudio}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioKonfigurieren}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioKonfigurierenReferenzenAufLaTeXUndCo}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioKonfigurierenReferenzenAufDefaultLuaLaTeX}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioKonfigurierenMasterdateiSetzen}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioErstellenUndAnzeigen}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioErstellenUndAnzeigenButton}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioGeheZuPDF}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioGeheZumQuelltext}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures//TexStudioAufbauEinerFolie}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioItemHinzufuegen}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioFolieErweitern}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioFolieErweiternUndAnzeigen}'

clip,interpolate,

width=\textwidth,height=\textheight,keepaspectratio]{

figures/TexStudioZuPDFGegangen}'

figures/LyX}'

figures/PowerdotFJALayoutBakomaTeX01}'

figures/PowerdotFJALayoutBakomaTeX02}'

figures/PowerdotFJALayoutBakomaTeX03}'

Flatten complete.

fchauvel commented 8 years ago

Hello,

Looking at the stack trace, it looks like I broke something in the manipulation of paths. I will check if I found what the problem is and let you know

gro1729 commented 8 years ago
                                                                                  Thanks for your support                                                                                                                                                                                                                                                                                                                                                     Von: Franck ChauvelGesendet: Sonntag, 30. August 2015 08:44An: fchauvel/flapAntwort an: fchauvel/flapCc: gro1729Betreff: Re: [flap] Support for Python 3.2 (#3)Hello,

Looking at the stack trace, it looks like I broke something in the manipulation of paths. I will check if I found what the problem is and let you know

—Reply to this email directly or view it on GitHub.

fchauvel commented 8 years ago

I close the issue related to Python 3.2 as all tests pass on my side.