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

Install fails with Python 2 because of more-itertools version #103

Open nezda opened 4 years ago

nezda commented 4 years ago

Attempting to install from current master source on a machine with python 2 with sudo python setup.py install fails with

  File "/tmp/easy_install-Vd6lIV/more-itertools-8.2.0/more_itertools/more.py", line 480
    yield from iterable
             ^
SyntaxError: invalid syntax

Pinning more-itertools by adding more-itertools==5.0.0; python_version <= '2.7' after https://github.com/zalando/pg_view/blob/de5325ac502647d2186a9355c8520963ceb62274/requirements.txt#L2 worked for me