From nobody Wed Oct 19 22:49:40 2022 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mt5X43m8Gz4fxYY for ; Wed, 19 Oct 2022 22:49:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mt5X41H04z3SM7 for ; Wed, 19 Oct 2022 22:49:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mt5X40MZGzgdf for ; Wed, 19 Oct 2022 22:49:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 29JMndQO045900 for ; Wed, 19 Oct 2022 22:49:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29JMndH9045899 for python@FreeBSD.org; Wed, 19 Oct 2022 22:49:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 267212] devel/py-nbconvert 7.2.1 fails to run option --to script Date: Wed, 19 Oct 2022 22:49:40 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666219780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=frA98QJYJWcnsvKQXfHUteK+36zHoS6smQNVRmoJuvA=; b=RYXOJUsibqval1Yimjlg9QoMwAhfSM3OTrk7qhwwywC6u+cMABj07L0B/VS03GqumXXqJz XtcYp0ZPYuj1OdGUkJRWZ/5VSL2bS1GxNGZL/O6nrDLTDR3wlVWQQ67qWre7cQD1n+qJ0N dtYaafcDnZheeyZLJpIyqPeYg+MZXWRTxMtLJtSWFghNj0iINP0V84vPIBQOXtRXDZRAeB xH+BvZkwkiGTv/phLx+8iS9H6R0BbPtz3l+oArw1VFdNsQ6nfKlTE4raAke2NVRV2DPp2N P/oy8JhZ66YxVznA1VSVZYQgYCeWzsCc1vh+UpGkSCflJn5czaC2HOVLwcfPZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666219780; a=rsa-sha256; cv=none; b=ajq8Sw5iZAgOzN5pfhYhLhOIVcyhupYt4VVb8k5RQRK9SFXmaF0pvtRlvsZLtzYoWPaTbB 9oTy7PzrZO2xCOTgkLpx8cpk3ayAd7Vdq5whpAN7FZo5t7Qs9TgA7ckamomz5fpdn+rf4s NpI3rU9FjN6lZYtKzZvOdM7C00JljMHaSYLFQXoTDmARFSN5AveqBVOHQbN+DjBwxv0run 6a5TCErjiuNwas1hSLrdWTOgp6UrdkpEXdjFY8dp75yJby02Ex9SOcIdbfmNFANLQ2/fSB l/hwyDCwHVNrVv5mOn77Cc4CqjcRU/nnMr2Th7MviZYIlQIRymFMMucB5BQSLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 267212: devel/py-nbconvert 7.2.1 fails to run option --to script https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267212 --- Description --- > jupyter nbconvert --to script some_notebook.ipynb=20 Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/traitlets/traitlets.py", line 645, in get value =3D obj._trait_values[self.name] KeyError: 'template_paths' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/bin/jupyter-nbconvert", line 33, in sys.exit(load_entry_point('nbconvert=3D=3D7.2.1', 'console_scripts', 'jupyter-nbconvert')()) File "/usr/local/lib/python3.9/site-packages/jupyter_core/application.py", line 269, in launch_instance return super().launch_instance(argv=3Dargv, **kwargs) File "/usr/local/lib/python3.9/site-packages/traitlets/config/application.py", l= ine 978, in launch_instance app.start() File "/usr/local/lib/python3.9/site-packages/nbconvert/nbconvertapp.py", = line 426, in start self.convert_notebooks() File "/usr/local/lib/python3.9/site-packages/nbconvert/nbconvertapp.py", = line 594, in convert_notebooks cls =3D get_exporter(self.export_format) File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter if getattr(exporter(config=3Dconfig), "enabled", True): File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/templateexporte= r.py ", line 342, in __init__ super().__init__(config=3Dconfig, **kw) File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/exporter.py", l= ine 118, in __init__ self._init_preprocessors() File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/templateexporte= r.py ", line 508, in _init_preprocessors conf =3D self._get_conf() File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/templateexporte= r.py ", line 526, in _get_conf for path in map(Path, self.template_paths): File "/usr/local/lib/python3.9/site-packages/traitlets/traitlets.py", line 686, in __get__ return self.get(obj, cls) File "/usr/local/lib/python3.9/site-packages/traitlets/traitlets.py", line 648, in get default =3D obj.trait_defaults(self.name) File "/usr/local/lib/python3.9/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults return self._get_trait_default_generator(names[0])(self) File "/usr/local/lib/python3.9/site-packages/traitlets/traitlets.py", line 1132, in __call__ return self.func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/templateexporte= r.py ", line 537, in _template_paths template_names =3D self.get_template_names() File "/usr/local/lib/python3.9/site-packages/nbconvert/exporters/templateexporte= r.py ", line 621, in get_template_names raise ValueError( ValueError: No template sub-directory with name 'script' found in the follo= wing paths: /home/user/.local/share/jupyter /usr/local/share/jupyter /usr/share/jupyter The last ipynb to py conversion (--to script) here was done 2022-07-08 so a version after that introduced this bug.