From: Thorsten Scherer <T.Scherer@eckelmann.de>
To: Michael Olbrich <m.olbrich@pengutronix.de>
Cc: g.schenk@eckelmann.de, ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] scripts/generate-report: Fix missing dot2tex import
Date: Mon, 26 May 2025 08:42:03 +0200 [thread overview]
Message-ID: <7txwtssgui2cddp6y4q2gsjal4iwsxuzxqnru5w4jggdkzsi77@k7pfvmsmtixd> (raw)
In-Reply-To: <aDMdReBnpqf8bHe3@pengutronix.de>
Hi,
On Sun, May 25, 2025 at 03:38:13PM +0200, Michael Olbrich wrote:
> On Mon, May 19, 2025 at 01:54:58PM +0200, Thorsten Scherer wrote:
> > Removal of the global import broke license report generation. Fix it.
> >
> > File "/usr/local/stow/ptxdist-2025.03.0/lib/ptxdist-2025.03.0/scripts/report/latex.py", line 32, in format_dot
> > return (args[1]['name'], dot2tex(dot, docpreamble='\\usepackage[xetex]{hyperref}', figonly=True,
> > ^^^^^^^
> > NameError: name 'dot2tex' is not defined
>
> Right, the local import is broken because it does not work with the
> multiprocessing pool. But it should still be a local import.
> I'll create the correct fix for that.
Ah. Ok. Thx for taking care.
> Michael
Best regards
tsc
> > Fixes: e27adde6e54d ("generate-report: remove global dot2tex import")
> > Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
> > ---
> > scripts/report/latex.py | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/scripts/report/latex.py b/scripts/report/latex.py
> > index cdb564a41eab..71344f988d4f 100644
> > --- a/scripts/report/latex.py
> > +++ b/scripts/report/latex.py
> > @@ -10,6 +10,7 @@ from multiprocessing import Pool
> > from os import path, environ
> > import hashlib
> > import subprocess
> > +from dot2tex import dot2tex
> >
> > from report.report import find_file, ReportException
> > from report.generator import Generator
> > --
> > 2.47.2
> >
> >
> >
>
> --
> Pengutronix e.K. | |
> Steuerwalder Str. 21 | http://www.pengutronix.de/ |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2025-05-26 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 11:54 Thorsten Scherer
2025-05-25 13:38 ` Michael Olbrich
2025-05-26 6:42 ` Thorsten Scherer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7txwtssgui2cddp6y4q2gsjal4iwsxuzxqnru5w4jggdkzsi77@k7pfvmsmtixd \
--to=t.scherer@eckelmann.de \
--cc=g.schenk@eckelmann.de \
--cc=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox