Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAEM2-00037I-By for pgsql-general@arkaria.postgresql.org; Sun, 01 Aug 2021 16:30:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAEM0-0000vr-BH for pgsql-general@arkaria.postgresql.org; Sun, 01 Aug 2021 16:30:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAEM0-0000vj-2J for pgsql-general@lists.postgresql.org; Sun, 01 Aug 2021 16:30:20 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAELx-0006Ve-3z for pgsql-general@lists.postgresql.org; Sun, 01 Aug 2021 16:30:19 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5E6B65C00D3; Sun, 1 Aug 2021 12:30:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 01 Aug 2021 12:30:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=i xqe9elw+phd0U+WwRnfD7yN/19nE+9c5Ol1VxlPatk=; b=b9fWqahICXWg9O44v H53BhdbRcX/ez61DEHYcj0g69jg7sE3mBxsdJdBfhFvQ4SCOQuZQ53ty85iWdcHy Cpr9vB3vau/UFoxyPxrOmlntApiBP6gyb5TELiDcl3sw8T/rbTtn00M5UhykJ9tO mzwxdnGJpkinpKgYYqlDk8QiHWN91NKF2mHP1Z+zoBtLTciuPVnaavr17lhuuY8N GqpNDr3a6jzomEfDAXc+ChBWLAxtD6YfmJvnoM6AV9Nihigx9sFNjWhm6Ei/oi6P kWo7lbkWXWx8L+9Ko3p6ZDkaLrlYqt4RGqw5vIR6pblnsHrqrbcH/YrmNOMpPXs0 a6Tog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=ixqe9elw+phd0U+WwRnfD7yN/19nE+9c5Ol1VxlPa tk=; b=LEDeT7NnDlrZPW9KJOMuH58wPGjKujbd/d5ShJ4tCWqpTuLRsoS6gmZrU sikUQJRJOeJxrG8OJoWxNs6n7SC2PX9lnyTXhqqXMuyv39VA8Z2ZhIRyCLAoK3GU MBv4vDClXw4GmFuvpQOUKZz3bR3q18c1Tz2nIhYRQgIToka9Oxv4+w+frB8V/X0c txO1YsvE5AVY9Q9rnknZs2g5qX25iTEzW4NYAofo6DwKKg5MrN1q6l+TofS/EaT0 o68PS0fdlaJwBaTbldKD9c8hJZ2tmzjHfjQiN36UfwmC7n9+danBur2CO7QlaA1v VdtBAWOH2P6f1OpM3h80dfehz+q6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddriedtgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepteejvdetffejuedvleeifeefheeutdfhgfdvhffhhfek vdduveegvdejudefgfevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Aug 2021 12:30:13 -0400 (EDT) Subject: Re: ERROR: ImportError: No module named 'psutil' To: Tom Lane Cc: Ganesh Korde , pgsql-general References: <113c9dee-7126-79f3-0c78-03ecbba89f0b@aklaver.com> <1442423.1627833063@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Sun, 1 Aug 2021 09:30:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1442423.1627833063@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/1/21 8:51 AM, Tom Lane wrote: > Adrian Klaver writes: > > Now it's possible that the wording didn't change exactly at the 2/3 > boundary, but I doubt it. So it looks to me like the alleged plpython3u > language is actually invoking python 2.something, which is unlikely > to work well at all. In that vein the OP could run: DO $$ import sys plpy.notice(sys.version) $$ LANGUAGE plpython3u; in the database to see what plpython3u is actually pointing at? > > regards, tom lane > -- Adrian Klaver adrian.klaver@aklaver.com