zalando / pg_view

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

Problem with version number #88

Open Vampouille opened 7 years ago

Vampouille commented 7 years ago
Traceback (most recent call last):
  File "pg_view.py", line 6, in <module>
    main()
  File "/pg_view/pg_view/__init__.py", line 211, in main
    if not establish_user_defined_connection(instance, conn, clusters):
  File "/pg_view/pg_view/models/db_client.py", line 113, in establish_user_defined_connection
    dbver = dbversion_as_float(pgcon)
  File "/pg_view/pg_view/utils.py", line 102, in dbversion_as_float
    return float('{0}.{1}'.format(version_num / 100, version_num % 100))
ValueError: could not convert string to float: '9.0507.5.07000000000005'
alexeyklyukin commented 7 years ago

The issue is related to running pg_view under python3. #89 should fix it, you can check if it solves the issue on your system.

elthariel commented 1 year ago

I've just tried running using the suggested branch, and the result is the same