Comments (4)
@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.
That's a problem in the Debian packaging, nothing we can do on our side.
from pg_activity.
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.
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)
- ZeroDivisionError when server has no swap HOT 1
- [Rocky8] [Rocky9] Can't install because of python3.9 dependencies HOT 2
- Help for installation pg_activity 3.0.1 HOT 12
- AttributeError: module 'humanize' has no attribute 'precisedelta' HOT 2
- ModuleNotFoundError: No module named '_curses' HOT 1
- Encoding mess recap HOT 17
- Ask for new release, including pid bug HOT 4
- 3.1.0 issue: AttributeError: 'NoneType' object has no attribute 'encode' HOT 4
- 3.1.1: TypeError: cannot use a string pattern on a bytes-like object HOT 17
- psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type bytea HOT 3
- Weird display issues inside GNU screen HOT 8
- erorr attrs!=21.1,>=17 on centos8 HOT 1
- The 'client' column only shows the first 16 characters of IPv6 addresses. HOT 2
- Any plans to allow for running pg_activity remotely with superuser privileges? HOT 2
- AttributeError: module 'attr.validators' has no attribute 'gt' HOT 1
- Dependency errors when updating RHEL 8 HOT 1
- Document how to run tests locally HOT 3
- psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type bytea HOT 1
- ValueError after connected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_activity.