Your message dated Sat, 07 Sep 2024 03:20:20 +0000 with message-id <E1smlzo-0026Rw-Az@fasolo.debian.org> and subject line Bug#1077793: fixed in haskell-pandoc 3.1.3-3 has caused the Debian Bug report #1077793, regarding pandoc: Pandoc trying to use python2 for filter to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1077793: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077793 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: pandoc: Pandoc trying to use python2 for filter
- From: Kyle Robbertze <paddatrapper@debian.org>
- Date: Fri, 02 Aug 2024 18:19:38 +0900
- Message-id: <172259037863.130537.7644449403784013932.reportbug@kyle-laptop.paddatrapper.com>
Package: pandoc Version: 3.1.3+ds-3 Severity: normal Dear Maintainer, It appears that pandoc will try execute the binary 'python' when running a .py filter, when it should be using 'python3'. This only occurs when calling a non-executable python filter, so a workaround is to have the executable bit set on the filter. I have verified that this occurs in unstable too. Example: $ pandoc -F ./abc.py abc-sample.md Error running filter ./abc.py: Could not find executable python abc.py ------- #!/usr/bin/env python3 """ Pandoc filter to process code blocks with class "abc" containing ABC notation into images. Assumes that abcm2ps and ImageMagick's convert are in the path. Images are put in the abc-images directory. """ import os import sys from subprocess import Popen, PIPE, call from pandocfilters import toJSONFilter, Para, Image, get_caption, get_filename4code, get_extension def abc2eps(abc_src, filetype, outfile): p = Popen(["abcm2ps", "-O", outfile + '.eps', "-"], stdin=PIPE) p.stdin.write(abc_src) p.communicate() p.stdin.close() call(["convert", outfile + '.eps', outfile + '.' + filetype]) def abc(key, value, format, _): if key == 'CodeBlock': [[ident, classes, keyvals], code] = value if "abc" in classes: caption, typef, keyvals = get_caption(keyvals) outfile = get_filename4code("abc", code) filetype = get_extension(format, "png", html="png", latex="pdf") dest = outfile + '.' + filetype if not os.path.isfile(dest): abc2eps(code.encode("utf-8"), filetype, outfile) sys.stderr.write('Created image ' + dest + '\n') return Para([Image([ident, [], keyvals], caption, [dest, typef])]) if __name__ == "__main__": toJSONFilter(abc) abc-sample.md ------------- Use this ``` X:7 T:Qui Tolis (Trio) C:André Raison M:3/4 L:1/4 Q:1/4=92 %%staves {(Pos1 Pos2) Trompette} K:F % V:Pos1 %%MIDI program 78 "Positif"x3 |x3 |c'>ba|Pga/g/f|:g2a |ba2 |g2c- |c2P=B |c>de |fga | V:Pos2 %%MIDI program 78 Mf>ed|cd/c/B|PA2d |ef/e/d |:e2f |ef2 |c>BA |GA/G/F |E>FG |ABc- | V:Trompette %%MIDI program 56 "Trompette"z3|z3 |z3 |z3 |:Mc>BA|PGA/G/F|PE>EF|PEF/E/D|C>CPB,|A,G,F,-| ``` to get ```abc X:7 T:Qui Tolis (Trio) C:André Raison M:3/4 L:1/4 Q:1/4=92 %%staves {(Pos1 Pos2) Trompette} K:F % V:Pos1 %%MIDI program 78 "Positif"x3 |x3 |c'>ba|Pga/g/f|:g2a |ba2 |g2c- |c2P=B |c>de |fga | V:Pos2 %%MIDI program 78 Mf>ed|cd/c/B|PA2d |ef/e/d |:e2f |ef2 |c>BA |GA/G/F |E>FG |ABc- | V:Trompette %%MIDI program 56 "Trompette"z3|z3 |z3 |z3 |:Mc>BA|PGA/G/F|PE>EF|PEF/E/D|C>CPB,|A,G,F,-| ``` See [(this is a link to whatever)](#whatever) for an example with options `{.abc #whatever caption="this is the caption" width=50%}`. ```{.abc #whatever caption="this is the caption" width=50%} X:7 T:Qui Tolis (Trio) C:André Raison M:3/4 L:1/4 Q:1/4=92 %%staves {(Pos1 Pos2) Trompette} K:F % V:Pos1 %%MIDI program 78 "Positif"x3 |x3 |c'>ba|Pga/g/f|:g2a |ba2 |g2c- |c2P=B |c>de |fga | V:Pos2 %%MIDI program 78 Mf>ed|cd/c/B|PA2d |ef/e/d |:e2f |ef2 |c>BA |GA/G/F |E>FG |ABc- | V:Trompette %%MIDI program 56 "Trompette"z3|z3 |z3 |z3 |:Mc>BA|PGA/G/F|PE>EF|PEF/E/D|C>CPB,|A,G,F,-| ``` -- System Information: Debian Release: 12.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-23-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages pandoc depends on: ii libc6 2.36-9+deb12u7 ii libffi8 3.4.4-1 ii libgmp10 2:6.2.1+dfsg1-1.1 ii liblua5.3-0 5.3.6-2 ii libyaml-0-2 0.2.5-1 ii pandoc-data 2.17.1.1-2~deb12u1 ii zlib1g 1:1.2.13.dfsg-1 pandoc recommends no packages. Versions of packages pandoc suggests: pn citation-style-language-styles <none> pn context <none> pn ghc <none> pn groff <none> pn libjs-katex <none> pn libjs-mathjax <none> pn librsvg2-bin <none> pn nodejs <none> pn pandoc-citeproc <none> ii perl 5.36.0-7+deb12u1 pn php <none> pn python <none> pn r-base-core <none> ii ruby 1:3.1 pn texlive-latex-extra <none> pn texlive-latex-recommended <none> pn texlive-luatex <none> pn texlive-xetex <none> pn wkhtmltopdf <none> -- no debconf information
--- End Message ---
--- Begin Message ---
- To: 1077793-close@bugs.debian.org
- Subject: Bug#1077793: fixed in haskell-pandoc 3.1.3-3
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Sat, 07 Sep 2024 03:20:20 +0000
- Message-id: <E1smlzo-0026Rw-Az@fasolo.debian.org>
- Reply-to: Scott Talbert <swt@techie.net>
Source: haskell-pandoc Source-Version: 3.1.3-3 Done: Scott Talbert <swt@techie.net> We believe that the bug you reported is fixed in the latest version of haskell-pandoc, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1077793@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Scott Talbert <swt@techie.net> (supplier of updated haskell-pandoc package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Fri, 06 Sep 2024 22:04:41 -0400 Source: haskell-pandoc Architecture: source Version: 3.1.3-3 Distribution: unstable Urgency: medium Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> Changed-By: Scott Talbert <swt@techie.net> Closes: 1071169 1077793 1078342 Changes: haskell-pandoc (3.1.3-3) unstable; urgency=medium . [ zhangdandan <zhangdandan@loongson.cn> ] * Use extra --ghc-options and enable tests in d/rules on loong64 (Closes: #1071169) . [ Scott Talbert ] * Use Python 3 for Python filters (Closes: #1077793) * Fix memory leak when converting markdown files (Closes: #1078342) Checksums-Sha1: c29e55cc61fdadca00110b7ed6790becafabd57b 8568 haskell-pandoc_3.1.3-3.dsc 75f957749d8cd2b808866675cb0ba8a69e3a19c8 15204 haskell-pandoc_3.1.3-3.debian.tar.xz 41505c6839820eec925c564642bac591565cf13c 24432 haskell-pandoc_3.1.3-3_amd64.buildinfo Checksums-Sha256: 0df63bb3bb8fbde5259933f19efffaa2c207108ec216233c5611c8a692a0295e 8568 haskell-pandoc_3.1.3-3.dsc b98f43c28f094000c3cfc0c1a7deac03ae36e7d0ed59ba0235e6b20217aacfb8 15204 haskell-pandoc_3.1.3-3.debian.tar.xz 92403ca95fc8f8a20225aab3d803d7b03df19d586c669dfb62344ceddd26b5a1 24432 haskell-pandoc_3.1.3-3_amd64.buildinfo Files: c13982a8809ed119583a755ab71f3284 8568 haskell optional haskell-pandoc_3.1.3-3.dsc 601ab07453ae8774cc66b07bafda43d6 15204 haskell optional haskell-pandoc_3.1.3-3.debian.tar.xz 5761aa49365b18e0e72b9c15470fff8e 24432 haskell optional haskell-pandoc_3.1.3-3_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEbnQ09Yl9Q7F/zVe3U9W8ZLUjeKIFAmbbwScPHHN3dEB0ZWNo aWUubmV0AAoJEFPVvGS1I3ii2AUP/jQeALZlnUFdq/IW3YIYJR5PUYvOq51pkXx2 WQcFQkUP1mUOyDrVP5zWUIr/BeY6HX5Zras2D/4Q2knhn6hyO7ZKYbwR3Rb9eaDf gaDhpgjgebkCLafW4ViVSLrkA+io5tGFwff20nx1SPdjxKcAet/REklbZz8mcfjb tpf5Vn13rCStI18BETb0Ve5fDTM7j6s+BmxcVTNfzYDDobBDGt5TjWRk+zp/a8eE bb0XOdY7AK6IVVv6BFtvy7fpFHndtSa862FCS4+qCcpHBvNZJzJoFJnbrVRN95Wi tVsAy2BvSP+qS0zbExOBkX4CfL7EcrKQ7aox1Ou09crFAK1yEDLMoiwmRSfN+px6 k0ui05BclUlhQ6LLRMc1DQ4tcGNWGAM9o3G5oFGQ36njCKByginkz9VW1NnxQlPM G+TmPO3oVpUe+LSY+YSb+HN1i9R93XwuhS8nHEd0Oz3ui2PnS31Oc9aazBfEHoEL xAZMbDrRcqYr136WKxgJhZqqp0H+jb6Kv5oV/50+GvgdMhAzzSxjzbzAeOvJtECp wWxoa580WMwIwcxtUYxLxWYKxKDEpJVAFrNcQRCUgKHjx+8vXWj40pzftvARxNz0 RHcK4+NAcAsmk6Vx6eU1nmdkajxfhwIzpvHyX4R8/rMB/+ZCPr4B6c+aFD/icFqV DmVBQ+RO =wECL -----END PGP SIGNATURE-----Attachment: pgpLVELVmZLEd.pgp
Description: PGP signature
--- End Message ---