[{"id":16063,"web_url":"https://patchwork.libcamera.org/comment/16063/","msgid":"<20210331021304.GC9995@pyrite.rasen.tech>","date":"2021-03-31T02:13:04","subject":"Re: [libcamera-devel] [PATCH v7] Add alternative meson install\n\tcommand","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/people/17/","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"content":"Hi Vedant,\n\nOn Tue, Mar 30, 2021 at 08:09:23PM +0530, Vedant Paranjape wrote:\n> While installing meson using pip3 install --user meson, due to python\n> path issues, build.ninja can't be located by ninja. meson generates\n> ninja files fine, but then when you run ninja, it is unable to find\n> meson's build.ninja python module due to path issues.\n> It gives the following error on ninja -C build install:\n> \n> ninja: Entering directory `build'\n> ninja: error: loading 'build.ninja': No such file or directory\n> \n> After uninstalling meson using pip3 and installing it again using pip\n> without --user argument solved the issue.\n> \n> Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n> ---\n> Changes in v7:\n> * Updated README.rst to describe meson install issue\n> * Removed \"changelog\" heading from commit message\n> * Fixed few grammatical mistakes\n> * Reworded few sentences\n> * Added a new troubleshooting section in readme, and shifted meson issue \n> to that section\n> * Fixed line width issues and some grammatical mistakes\n> \n>  README.rst | 28 ++++++++++++++++++++++++++++\n>  1 file changed, 28 insertions(+)\n> \n> diff --git a/README.rst b/README.rst\n> index 1427c714..d46109c8 100644\n> --- a/README.rst\n> +++ b/README.rst\n> @@ -104,3 +104,31 @@ onto the default video display element on your system.\n>    gst-launch-1.0 libcamerasrc camera-name=\"Camera 1\" ! videoconvert ! autovideosink\n>  \n>  .. section-end-getting-started\n> +\n> +Troubleshooting\n> +~~~~~~~~~~~~~~~\n> +\n> +Several users have reported issues with meson installation, crux of the issue\n> +is a potential version mismatch between the version that root uses, and the\n> +version that the normal user uses. On calling `ninja -C build`, it can't find\n> +the build.ninja module. This the snippet of error message,\n\ns/This the snippet of error message,/This is a snippet of the error message:/\n\n> +\n> +:: \n> +\n> +  ninja: Entering directory `build'     \n> +  ninja: error: loading 'build.ninja': No such file or directory\n> +\n> +This can be solved in two ways: \n> +\n> +1) Don't install meson again if it is already installed system-wide. 2) If a\n\n2) should be on a new line.\n\n> +version of meson which is different from the system-wide version is already\n> +installed, uninstall that meson using pip3, and install again without the\n> +--user argument.\n> +\n> +Solution to this was installing meson as root, this is not ideal, and should be\n> +done as a last resort\n\nYou already provide a solution above, so what is this a solution to?\n\nI'm not sure this (and the below) section is necessary.\n\n> +\n> +::\n> +\n> +  sudo pip3 install meson\n> +\n> -- \n> 2.25.1\n\nAlmost there!\n\n\nPaul","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id B3005C0DA3\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 31 Mar 2021 02:13:19 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C2D306877F;\n\tWed, 31 Mar 2021 04:13:18 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CF43C602DB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 31 Mar 2021 04:13:17 +0200 (CEST)","from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id D8D4A8C4;\n\tWed, 31 Mar 2021 04:13:13 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"MD52C5+7\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1617156797;\n\tbh=m4+YyEKNxaz6vhqKT/vcrOwxjAt9TW647vSFg86OzzM=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=MD52C5+7QPSfelaxNnlIG+NSpSyjPnXIEPJPGCdWWZg6Vn2eiFQIyMZX+yKrbyqro\n\tC1lV6y1VH8OX1AZHs/IHC43Oe+Nj0tynLDo6W2Jd4kc7iegF9WIslDm0xiPHm1QGXO\n\tAMsrOwRltsFAwYQlWyuzOrGJzRWbw7Rnazu/L7RU=","Date":"Wed, 31 Mar 2021 11:13:04 +0900","From":"paul.elder@ideasonboard.com","To":"Vedant Paranjape <vedantparanjape160201@gmail.com>","Message-ID":"<20210331021304.GC9995@pyrite.rasen.tech>","References":"<20210330143923.9664-1-vedantparanjape160201@gmail.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20210330143923.9664-1-vedantparanjape160201@gmail.com>","Subject":"Re: [libcamera-devel] [PATCH v7] Add alternative meson install\n\tcommand","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]