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 1nmnBs-0001O1-4d for pgsql-general@arkaria.postgresql.org; Fri, 06 May 2022 01:55:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmnBq-0007Vk-TJ for pgsql-general@arkaria.postgresql.org; Fri, 06 May 2022 01:55:30 +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 1nmnBq-0007Va-IT for pgsql-general@lists.postgresql.org; Fri, 06 May 2022 01:55:30 +0000 Received: from resdmta-h1p-028482.sys.comcast.net ([2001:558:fd02:2446::c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmnBn-0002Ln-Iw for pgsql-general@lists.postgresql.org; Fri, 06 May 2022 01:55:30 +0000 Received: from resomta-h1p-028509.sys.comcast.net ([96.102.179.194]) by resdmta-h1p-028482.sys.comcast.net with ESMTP id mmknnzMyJSRRHmnBingh6s; Fri, 06 May 2022 01:55:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1651802122; bh=bs3whUEnj6sjnyTPjvnYBw8nVwHjV549v89VRzo5Sic=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=qbfV8CIsc8Fg7Bj6U1jZTGUjS2Oot1vD/KrN7h2NDZRVFS6zg2ZMzesV4NQDqxyOW 3VBJEqqHHMv2t9ZtEN1CIHIYb6f4SK21bcYIA79f4BUmRVcRTTfuJlAeTS4EX09C+J xcLpy8+w3rSftETFi/w1GIQ0hr28hnm572YrhQVfx0GNsXARpNqGOZRpNo1Sm1bmJW /2JZQHrK1xUq/fQqcyy3xanTdyKdiCZ3uEcPqyOdfedZmCWA6NQxO3bm3mG0pZJgYa z4Dt9e/POuP9AvVQmWUrEVne8F0lJDlfIX5vrOWw2Ex2cpq7iCoqQOymUdJ0mSuN46 a2xI6XoH82RTg== Received: from clm-c02jl17zdkq5.local.vpn.enova.com ([12.187.116.132]) by resomta-h1p-028509.sys.comcast.net with ESMTPSA id mnB4nFB9fLAB3mnB6nslzR; Fri, 06 May 2022 01:54:50 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvgdehudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomheplfgvrhhrhicuufhivghvvghrshcuoehgshhivghvvghrshduleestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepleeitedtudelhfeiieevjeefkeeutddttdehieehiefhffdttdffvdeuvdefvdeunecuffhomhgrihhnpehphihpihdrohhrghenucfkphepuddvrddukeejrdduudeirddufedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheptghlmhdqtgdtvdhjlhdujeiiughkqhehrdhlohgtrghlrdhvphhnrdgvnhhovhgrrdgtohhmpdhinhgvthepuddvrddukeejrdduudeirddufedvpdhmrghilhhfrhhomhepghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepuggrnhhivghlvgdrvhgrrhhrrgiiiihosehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS From: Jerry Sievers In-Reply-To: Date: Thu, 5 May 2022 20:54:42 -0500 Cc: pggeneral Content-Transfer-Encoding: quoted-printable Message-Id: References: <108B3AA1-8FBF-4C76-98BE-490156DAA5B5@comcast.net> To: Daniele Varrazzo X-Mailer: Apple Mail (2.3608.120.23.2.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 5, 2022, at 8:43 PM, Daniele Varrazzo = wrote: >=20 > On Fri, 6 May 2022 at 03:04, Jerry Sievers = wrote: >>=20 >> Has anyone run into This? >>=20 >> Psycopg3 fails to resolve timezone localtime on MacOS (Catalina). >=20 > That warning is typical on Windows, which doesn't have a system > timezone database, and on minimal Alpine installations, where the apk > package 'tzdata' must be installed. Never seen it reported on macOS > before. >=20 > The workaround on Windows is to install the python package tzdata > (https://pypi.org/project/tzdata/), which is a windows dependency of > psycopg. >=20 > Maybe you have a broken python package called tzdata? Your Python > installation seems mildly broken. >=20 Hmmm,dunno everything else is, and has worked perfectly. I'll try a clean venv to include tzdata and see if that helps anything. Already did try installing tzdata and got a backtrace showoing that it = was being used. Still literally says something like "FileNotFoundError, = $tzdir/localtime". As for Psycopg3 in general... Very, very nice work. Cheers! > 'localtime' is a weird timezone. However it does work on Linux for me. >=20 >=20 > -- Daniele >=20 >=20