pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <gsievers19@comcast.net>
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Cc: pggeneral <pgsql-general@lists.postgresql.org>
Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS
Date: Thu, 5 May 2022 20:54:42 -0500
Message-ID: <AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net> (raw)
In-Reply-To: <CA+mi_8a-4THF98vMrKPrRBYD4+2tEkDUBRA_DPM+BvAjK0nhZg@mail.gmail.com>
References: <108B3AA1-8FBF-4C76-98BE-490156DAA5B5@comcast.net>
	<CA+mi_8a-4THF98vMrKPrRBYD4+2tEkDUBRA_DPM+BvAjK0nhZg@mail.gmail.com>



> On May 5, 2022, at 8:43 PM, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote:
> 
> 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.
> 
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.
> 
> 
> -- Daniele
> 
> 






view thread (7+ messages)  latest in thread

Message-ID: <AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net>
Permalink:  ../AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net/
Also on:    postgresql.org/message-id/AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: gsievers19@comcast.net, daniele.varrazzo@gmail.com
  Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS
  In-Reply-To: <AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net>
  References: <108B3AA1-8FBF-4C76-98BE-490156DAA5B5@comcast.net> <CA+mi_8a-4THF98vMrKPrRBYD4+2tEkDUBRA_DPM+BvAjK0nhZg@mail.gmail.com> <AE806733-8DF7-48D5-95B3-1ACB19F83CA8@comcast.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox