public inbox for [email protected]  
help / color / mirror / Atom feed
pg_activity fails with TypeError on start
4+ messages / 3 participants
[nested] [flat]

* pg_activity fails with TypeError on start
@ 2021-07-26 02:11 Tom Cassidy <[email protected]>
  2021-07-26 10:03 ` Re: pg_activity fails with TypeError on start Denis Laxalde <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Cassidy @ 2021-07-26 02:11 UTC (permalink / raw)
  To: pgsql-pkg-debian

Hi,

OS: Devuan beowulf (equivalent to Debian buster)

Package: pg-activity=2.1.0-1.pgdg100+1

I have the latest version of pg-activity installed from the buster-pgdg 
repository and it fails on startup with a TypeError.

$ pg_activity 
Traceback (most recent call last):
  File "/usr/bin/pg_activity", line 321, in <module>
    ui.main(term, dataobj, host, options, dsn)
  File "/usr/lib/python3/dist-packages/pgactivity/ui.py", line 227, in
main
    width=width,
  File "/usr/lib/python3/dist-packages/pgactivity/views.py", line 526,
in screen
    width=width,
  File "/usr/lib/python3/dist-packages/pgactivity/views.py", line 123,
in wrapper
    for line in func(term, *args, **kwargs):
  File "/usr/lib/python3/dist-packages/pgactivity/views.py", line 378,
in processes_rows
    cell(getattr(process, field), column)
  File "/usr/lib/python3/dist-packages/pgactivity/views.py", line 363,
in cell
    text_append(f"{color}{column.render(value)}")
  File "/usr/lib/python3/dist-packages/pgactivity/types.py", line 359,
in render
    return self.template_h % self.transform(value)[: self.max_width]
  File "/usr/lib/python3/dist-packages/pgactivity/utils.py", line 79,
in ellipsis
    lv = len(v)
TypeError: object of type 'NoneType' has no len()


I can see in the package information that the upstream source is listed
as https://github.com/julmon/pg_activity.  That repository mentions
that it is a fork of the original upstream at 
https://github.com/dalibo/pg_activity.

I have tested the latest version of pg_activity 2.1.5 from 
https://github.com/dalibo/pg_activity installed via pip in a python3.7
virtual environment and it starts properly without any error.

Can the pg-activity package please be updated to the latest version
2.1.5 from https://github.com/dalibo/pg_activity?

Thanks,
Tom


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_activity fails with TypeError on start
  2021-07-26 02:11 pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
@ 2021-07-26 10:03 ` Denis Laxalde <[email protected]>
  2021-08-16 06:36   ` Re: pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Denis Laxalde @ 2021-07-26 10:03 UTC (permalink / raw)
  To: [email protected]

Tom Cassidy a écrit :
> 
> Package: pg-activity=2.1.0-1.pgdg100+1
> 
> I have the latest version of pg-activity installed from the buster-pgdg
> repository and it fails on startup with a TypeError.

Indeed, this got fixed in version 2.1.4 (GH issue 203).





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_activity fails with TypeError on start
  2021-07-26 02:11 pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
  2021-07-26 10:03 ` Re: pg_activity fails with TypeError on start Denis Laxalde <[email protected]>
@ 2021-08-16 06:36   ` Tom Cassidy <[email protected]>
  2021-08-16 08:41     ` Re: pg_activity fails with TypeError on start Christoph Berg <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Cassidy @ 2021-08-16 06:36 UTC (permalink / raw)
  To: [email protected] <[email protected]>

On Mon, 2021-07-26 at 12:03 +0200, Denis Laxalde wrote:
> Tom Cassidy a écrit :
> > Package: pg-activity=2.1.0-1.pgdg100+1
> > 
> > I have the latest version of pg-activity installed from the buster-
> > pgdg
> > repository and it fails on startup with a TypeError.
> 
> Indeed, this got fixed in version 2.1.4 (GH issue 203).
> 
> 

Thanks.  How do we get the apt pgdg repo package updated?  Should I
submit a bug on bugs.debian.org for the pg-activity package?


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_activity fails with TypeError on start
  2021-07-26 02:11 pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
  2021-07-26 10:03 ` Re: pg_activity fails with TypeError on start Denis Laxalde <[email protected]>
  2021-08-16 06:36   ` Re: pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
@ 2021-08-16 08:41     ` Christoph Berg <[email protected]>
  0 siblings, 0 replies; 4+ messages in thread

From: Christoph Berg @ 2021-08-16 08:41 UTC (permalink / raw)
  To: Tom Cassidy <[email protected]>; +Cc: [email protected] <[email protected]>

Re: Tom Cassidy
> On Mon, 2021-07-26 at 12:03 +0200, Denis Laxalde wrote:
> > Tom Cassidy a écrit :
> > > Package: pg-activity=2.1.0-1.pgdg100+1
> > > 
> > > I have the latest version of pg-activity installed from the buster-
> > > pgdg
> > > repository and it fails on startup with a TypeError.
> > 
> > Indeed, this got fixed in version 2.1.4 (GH issue 203).
> > 
> > 
> 
> Thanks.  How do we get the apt pgdg repo package updated?  Should I
> submit a bug on bugs.debian.org for the pg-activity package?

Right, or poke the repository directly:

https://salsa.debian.org/kolter/pg-activity

(There is some internal error atm, but that's hopefully transient.)

Christoph






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2021-08-16 08:41 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 02:11 pg_activity fails with TypeError on start Tom Cassidy <[email protected]>
2021-07-26 10:03 ` Denis Laxalde <[email protected]>
2021-08-16 06:36   ` Tom Cassidy <[email protected]>
2021-08-16 08:41     ` Christoph Berg <[email protected]>

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