Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp954207rdb; Fri, 22 Dec 2023 09:41:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfRXUlbsPQP/BfURd1hYDj+COXJ5YERLvjrop5jQaMDLhXyY3TzkjjNSaaqCfg5yuU1aKm X-Received: by 2002:a05:620a:384c:b0:781:5b2:ecd8 with SMTP id po12-20020a05620a384c00b0078105b2ecd8mr1520001qkn.67.1703266866826; Fri, 22 Dec 2023 09:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703266866; cv=none; d=google.com; s=arc-20160816; b=PX0cNmkfRhxgz7tSoc9AWAn+M08qM8iPCIVuJkNVPRXnuMw1u8zCjwW9X5FoANJ/m5 8/+QG8El3hBTS1ifHCGQzJm0I5cwwNlSS+vNLfDsY4yUyJP0QiZhpOCVxIQaVZOW3iGL XyGC3UgJX6IOLWiasR93p+BIjjap8v5Bfo/YMIfRZWojlDWOjhR7hN5zWo9IStX8VMML gYzkj3i9NSzeyp6LesvhjPq9FV6C++lYQw8iOcq9cG0aPkRXOkQ/I20jb221vMSDD0nN 9+lYzm1oxXQ7ZzlyxoqeyvZ563CkJub14hjTm8pxZ14399Lib5akJDSndxH60uDdTR0G HMpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=axFqOF9829BuhcCZG5smc3T7AKG8dyGANZJCUS4PCkQ=; fh=8LjiIlCaMiE30CQ+IdcEzbZUgT4mxY+ekRERrX53GJo=; b=wZ5e8y+nX1roc/HCb3zpfhssXShaKxHXmiu5iFkVwrxCSU1BvcmPiwCmxPGpisfTbO iPMUiH4mNElPdE5LZ71NZc/Oa/kjFnwtzj4kfPZjfG5vSbrCsQBtacxd78gC+Ri1cXBw L3tRvl/4fQJrI+oGRlmbGIejNjcjLAkFvm0J2//ljri25GldzyiGloa5X+nqhOJNOXCQ A5sqyE5fmiyWPYLc1a9aIoGSGldSBfmxX/Sl70oU3eQ0NgZJGRrcFvWYfegbD2A1aRZt S5Tnynh+RXDI90hUMYalLXMQKOHEP4jqAQHFvhE+dbUTAo2KyjjidOpfkmWEYnXnL0Bl dUng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h1nIouA7; spf=pass (google.com: domain of linux-kernel+bounces-9947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s20-20020a05620a29d400b0077f3740c2c3si5336435qkp.267.2023.12.22.09.41.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:41:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h1nIouA7; spf=pass (google.com: domain of linux-kernel+bounces-9947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8CFEB1C21D5F for ; Fri, 22 Dec 2023 17:41:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E3B428E01; Fri, 22 Dec 2023 17:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h1nIouA7" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B0F324A09; Fri, 22 Dec 2023 17:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703266853; x=1734802853; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=WZamYqzzs9Xmm1nTXwdiLWmcvR3nl+x/q6EpuUCFBfY=; b=h1nIouA7wnAKu6wUtpQtB6slDa5u9J2EAU1s5xRxxlIS1icUoeQ6I5KC gEYJgLNpkPeYppkePfYQJEU59/k+/KFxuH5/JUWLEirKMNwzXseHUvT6v kxoXJGpvt2QLOqjNv8aUDSz4kjdVh4chLbcAiiDihtYgzuqvNsa0k4pws Edgq6BTEOlMGSI3qKhMkR5gfHr3KHrKlLxi1cQCTLkrqW8llKhVgNw0ft zetzWINGE5oI2vP6geehflSQZlxaSe0fTYZUaA/oA2I3/QPxvIWUWXtBW p3YH3MhXAfxgigNrjwr5ZKFk4UPmrFsdsCaPUHNY11dKxjuxGoI45tjmu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10932"; a="3382952" X-IronPort-AV: E=Sophos;i="6.04,297,1695711600"; d="scan'208";a="3382952" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 09:40:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,297,1695711600"; d="scan'208";a="19096588" Received: from yspisare-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.50.156]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 09:40:49 -0800 From: Jani Nikula To: Vegard Nossum , Jakub Kicinski Cc: netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Vegard Nossum , Breno Leitao , "David S . Miller" , Jonathan Corbet Subject: Re: [PATCH net-next] Documentation: add pyyaml to requirements.txt In-Reply-To: <20231222133628.3010641-1-vegard.nossum@oracle.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20231222133628.3010641-1-vegard.nossum@oracle.com> Date: Fri, 22 Dec 2023 19:40:46 +0200 Message-ID: <87a5q2rv8h.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, 22 Dec 2023, Vegard Nossum wrote: > Commit f061c9f7d058 ("Documentation: Document each netlink family") added > a new Python script that is invoked during 'make htmldocs' and which reads > the netlink YAML spec files. > > Using the virtualenv from scripts/sphinx-pre-install, we get this new > error wen running 'make htmldocs': > > Traceback (most recent call last): > File "./tools/net/ynl/ynl-gen-rst.py", line 26, in > import yaml > ModuleNotFoundError: No module named 'yaml' > make[2]: *** [Documentation/Makefile:112: Documentation/networking/netlink_spec/rt_link.rst] Error 1 > make[1]: *** [Makefile:1708: htmldocs] Error 2 > > Fix this by adding 'pyyaml' to requirements.txt. > > Note: This was somehow present in the original patch submission: > > I'm not sure why the pyyaml requirement disappeared in the meantime. FWIW, not really specific to the patch at hand, but I'd always prefer strictyaml [1] with schemas over plain yaml. You get strict typing and validation of the data during parsing. It's pretty nice, maybe worth looking into here. BR, Jani. [1] https://hitchdev.com/strictyaml/ > > Fixes: f061c9f7d058 ("Documentation: Document each netlink family") > Cc: Breno Leitao > Cc: Jakub Kicinski > Cc: David S. Miller > Cc: Jonathan Corbet > Signed-off-by: Vegard Nossum > --- > Documentation/sphinx/requirements.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/sphinx/requirements.txt b/Documentation/sphinx/requirements.txt > index 335b53df35e2..a8a1aff6445e 100644 > --- a/Documentation/sphinx/requirements.txt > +++ b/Documentation/sphinx/requirements.txt > @@ -1,3 +1,4 @@ > # jinja2>=3.1 is not compatible with Sphinx<4.0 > jinja2<3.1 > Sphinx==2.4.4 > +pyyaml -- Jani Nikula, Intel