https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Bug ID: 1222384 Summary: Error reading csl file Product: Fedora Version: 22 Component: pandoc-citeproc Assignee: petersen@redhat.com Reporter: sash.opensource@googlemail.com QA Contact: extras-qa@fedoraproject.org CC: haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Description of problem: I try to change my writing workflow from LaTeX to markdown for simply structured articles and read about it on http://nikolasander.com/writing-in-markdown/. The author provides a sample zip file with all files to compile markdown to pdf with pandoc, however, I also tried several cls files from zotero and the CSL github repository. Compiling the files does not work because pandoc-citeproc cannot read the csl.
pandoc -S -o sample-paper.pdf --filter pandoc-citeproc sample-paper.md
pandoc-citeproc: error while parsing the XML string pandoc: Error running filter pandoc-citeproc
Version-Release number of selected component (if applicable): pandoc: Name : pandoc Arch : x86_64 Epoch : 0 Version : 1.13.2 Release : 2.fc22
pandoc-citeproc: Name : pandoc-citeproc Arch : x86_64 Epoch : 0 Version : 0.5 Release : 2.fc22
How reproducible: Always
Steps to Reproduce: 1. Download and unzip the sample files from https://github.com/NikolaSander/NikolaSander.github.io/blob/master/images/sa... (or use any other sample files) 2. run pandoc -S -o sample-paper.pdf --filter pandoc-citeproc sample-paper.md (or equivalent commands)
Actual results: pandoc-citeproc: error while parsing the XML string pandoc: Error running filter pandoc-citeproc
Expected results: A compiled pdf file and some other messages, no errors.
Additional info: Current upstream pandoc-citeproc is 0.7.1 but this version has new dependencies (setenv and xml-conduit)
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #1 from Jens Petersen petersen@redhat.com --- Thanks a lot for reporting this. Reproduced.
I am not sure yet what the problem is: it could be a version incompatibility perhaps, yes.
It might be good to ask upstream if pandoc-citeproc-0.5 should work with pandoc-1.13.2...
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #2 from Jens Petersen petersen@redhat.com --- Works okay with pandoc-1.12.3.3 and pandoc-citeproc-0.3.1 (F21).
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1223293 Summary|Error reading csl file |pandoc-citeproc-0.5 fails | |with pandoc-1.13.2 with | |"Error reading csl file"
--- Comment #3 from Jens Petersen petersen@redhat.com --- I tested pandoc-1.13.2 with (cabal installed) pandoc-citeproc-0.6 and that seems to work okay. Latest 0.7.1 also seems okay.
0.6+ needs xml-conduit though: I put in a review request but it may take a little time before someone reviews it.
(I installed using cabal sandbox btw.)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1223293 [Bug 1223293] Review Request: ghc-xml-conduit - Utilities for dealing with XML with conduit
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #4 from Sascha Zantis sascha.zantis@gmail.com --- Thanks for your answers.
Just for your information: I tried building a pandoc-citeproc-0.7.1 package myself. xml-conduit was no problem, but pandoc-citeproc failed when I used the spec file that is created by cabal-rpm (There was an error regarding tests, somehow related to the line "%ghc_fix_dynamic_rpath %{pkg_name} pandoc-citeproc") but I was not able to resolve that problem. If you encounter these problems when you try to build it, would you tell me, how you solved them? Just out of personal interest.
Regards, Sascha
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #5 from Jens Petersen petersen@redhat.com --- (In reply to Sascha Zantis from comment #4)
Just for your information: I tried building a pandoc-citeproc-0.7.1 package myself. xml-conduit was no problem, but pandoc-citeproc failed when I used the spec file that is created by cabal-rpm (There was an error regarding tests, somehow related to the line "%ghc_fix_dynamic_rpath %{pkg_name} pandoc-citeproc") but I was not able to resolve that problem.
Could you attach the error?
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #6 from Jens Petersen petersen@redhat.com --- Nevermind I tried with cabal-rpm and found the problem:
If you remove test-citeproc from the end of the %ghc_fix_dynamic_rpath line, it should work okay. I guess it is a cabal-rpm bug, which I will report now in github.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #7 from Jens Petersen petersen@redhat.com --- I fixed the cabal-rpm issue with https://github.com/juhp/cabal-rpm/commit/f7c8ebf62fc4bde0fc0bf33d0d3fb7c069b...
(I just released 0.9.6 yesterday so it may be some days before this fix reaches Hackage and the Fedora repos...)
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #8 from Sascha Zantis sascha.zantis@gmail.com --- Thanks for all these information.
It might not matter anymore since you update the package, but I tried building it again (for learning purposes) using this specfile: http://paste.fedoraproject.org/224755/23151701 (That is the one created by cabal-rpm with and I changed the line you mentioned), but I still receive an error. I just pasted the complete output of the build process: https://paste.fedoraproject.org/224757/14323156/
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #9 from Jens Petersen petersen@redhat.com --- (In reply to Sascha Zantis from comment #8)
http://paste.fedoraproject.org/224755/23151701 (That is the one created by cabal-rpm with and I changed the line you mentioned), but I still receive an error. I just pasted the complete output of the build process: https://paste.fedoraproject.org/224757/14323156/
I think this is a different problem to your original report.
Right, in the Fedora package I disable the tests since they assume the datafiles are already installed...
You can do that by changing "%bcond_without tests" to "%bcond_with tests" near the top of the spec file.
Note also that cblrpm generates a "ghc-pandoc-citeproc" base package by default - you may prefer to use "cblrpm spec -b pandoc-citeproc" to get a pandoc-citeproc package.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Cristián Rojas mechonbarsa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mechonbarsa@gmail.com
--- Comment #10 from Cristián Rojas mechonbarsa@gmail.com --- I'm having the exact same problem over here.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |medium Severity|unspecified |high
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Yury Bulka yurkobb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yurkobb@gmail.com
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #11 from Jens Petersen petersen@redhat.com --- BTW best workaround I can suggest until we can build newer pandoc-citeproc in Fedora is to use my pandoc Copr repo:
https://copr.fedoraproject.org/coprs/petersen/pandoc
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #12 from Jens Petersen petersen@redhat.com --- This should be fixed now in Rawhide with pandoc-citeproc-0.7.4-1.fc24.
Updates coming for F23 and F22.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- ghc-xml-conduit-1.3.2-1.fc23 pandoc-citeproc-0.7.4-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f74c858168
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #14 from Fedora Update System updates@fedoraproject.org --- ghc-xml-conduit-1.3.2-1.fc22 pandoc-citeproc-0.7.4-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-7c9f9e2169
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #15 from Fedora Update System updates@fedoraproject.org --- ghc-hakyll-4.5.4.0-5.fc23, ghc-xml-conduit-1.3.2-1.fc23, pandoc-citeproc-0.7.4-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update ghc-hakyll pandoc-citeproc ghc-xml-conduit' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f74c858168
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #16 from Fedora Update System updates@fedoraproject.org --- ghc-hakyll-4.5.4.0-5.fc22, ghc-xml-conduit-1.3.2-1.fc22, pandoc-citeproc-0.7.4-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update ghc-hakyll pandoc-citeproc ghc-xml-conduit' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7c9f9e2169
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #17 from Fedora Update System updates@fedoraproject.org --- ghc-hakyll-4.5.4.0-5.fc23, ghc-xml-conduit-1.3.2-1.fc23, pandoc-citeproc-0.7.4-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384 Bug 1222384 depends on bug 1223293, which changed state.
Bug 1223293 Summary: Review Request: ghc-xml-conduit - Utilities for dealing with XML with conduit https://bugzilla.redhat.com/show_bug.cgi?id=1223293
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |pandoc-citeproc-0.7.4-1.fc2 | |3 Resolution|--- |ERRATA Last Closed| |2015-12-10 20:51:29
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
--- Comment #18 from Fedora Update System updates@fedoraproject.org --- ghc-hakyll-4.5.4.0-5.fc22, ghc-xml-conduit-1.3.2-1.fc22, pandoc-citeproc-0.7.4-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1222384
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|pandoc-citeproc-0.7.4-1.fc2 |pandoc-citeproc-0.7.4-1.fc2 |3 |3 | |pandoc-citeproc-0.7.4-1.fc2 | |2
haskell-devel@lists.stg.fedoraproject.org