Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS - Mailing list pgsql-general

From Daniele Varrazzo
Subject Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS
Date
Msg-id CA+mi_8a-4THF98vMrKPrRBYD4+2tEkDUBRA_DPM+BvAjK0nhZg@mail.gmail.com
Whole thread Raw
In response to Psycopg3 fails to resolve 'timezone localtime' on MacOS  (Jerry Sievers <gsievers19@comcast.net>)
Responses Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS
List pgsql-general
On Fri, 6 May 2022 at 03:04, Jerry Sievers <gsievers19@comcast.net> wrote:
>
> Has anyone run into This?
>
> Psycopg3 fails to resolve timezone localtime on MacOS (Catalina).

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.

The workaround on Windows is to install the python package tzdata
(https://pypi.org/project/tzdata/), which is a windows dependency of
psycopg.

Maybe you have a broken python package called tzdata? Your Python
installation seems mildly broken.

'localtime' is a weird timezone. However it does work on Linux for me.


-- Daniele



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS
Next
From: Jerry Sievers
Date:
Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS