zalando / pg_view

Get a detailed, real-time view of your PostgreSQL database and system metrics
https://pypi.python.org/pypi/pg-view
Other
494 stars 49 forks source link

local variable 'dbver' referenced before assignment #85

Open xa72 opened 7 years ago

xa72 commented 7 years ago

Hi there: --snip-- $ pg_view -c /path/to/pg_view.conf -i xxx Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/pg_view/init.py", line 253, in main collector = DetachedDiskStatCollector(q, work_directories, dbver) UnboundLocalError: local variable 'dbver' referenced before assignment ---snap-- Ubuntu 14.04 LTS, 64bit, PG 9.6, single local db (no cluster), running pg_view under user "postgres". pg_view installed from current source with "sudo python setup.py install". pg_view.conf has only the Section [xxx] with one entry: dbname=... Any ideas? Alex