Giter Club home page Giter Club logo

Comments (4)

deric avatar deric commented on June 3, 2024 1

@b0n0r A workaround is to update humanize package, which is outdated in Debian Buster (and derived distributions):

python3 -m pip install -U humanize

from pg_activity.

dlax avatar dlax commented on June 3, 2024

That's a problem in the Debian packaging, nothing we can do on our side.

from pg_activity.

lanaparadinha avatar lanaparadinha commented on June 3, 2024

after updte humanize that error ocurred:
postgres@xxxxxxx:~$ pg_activity

Traceback (most recent call last):
File "/usr/bin/pg_activity", line 11, in
load_entry_point('pg-activity==3.0.1', 'console_scripts', 'pg_activity')()
File "/usr/lib/python3/dist-packages/pgactivity/cli.py", line 407, in main
ui.main(term, dataobj, host, args)
File "/usr/lib/python3/dist-packages/pgactivity/ui.py", line 205, in main
pg_procs.set_items(data.pg_get_activities(ui.duration_mode))
File "/usr/lib/python3/dist-packages/pgactivity/data.py", line 438, in pg_get_activities
"dbname_filter": self.filters.dbname,
File "/var/lib/postgresql/.local/lib/python3.6/site-packages/psycopg2/extras.py", line 146, in execute
return super().execute(query, vars)
psycopg2.errors.SyntaxError: syntax error at or near ""
LINE 16: convert_from(replace(a.query, '', '\')::bytea, coale...
^

from pg_activity.

dlax avatar dlax commented on June 3, 2024

psycopg2.errors.SyntaxError: syntax error at or near ""
LINE 16: convert_from(replace(a.query, '', '')::bytea, coale...

This particular problem got resolved in a later release (3.1.0) of pg_activity. Unfortunately, it's not available in Debian/Ubuntu (yet).

from pg_activity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.