On Tue, Jul 11, 2017 at 11:21 AM, Devrim Gündüz <dev...@gunduz.org> wrote:

>
> Hi,
>
> I thought we fixed it at some point, but I'm recently getting this again:
>
> in the web/config.py, I changed
> MINIFY_PAGE = True
>
> to False.
>

Never modify config.py! You should be using config_distro.py.


>
> Still getting
>
> sphinx-1.0-build -b html -d _build/doctrees   . _build/html
> Making output directory...
> Running Sphinx v1.0.8
>
> Exception occurred:
>   File "/usr/lib/python2.6/site-packages/pgadmin4-web/flask_htmlmin.py",
> line 1, in <module>
>     from htmlmin.main import minify
> ImportError: No module named main
>

It was fixed in the code:

     # HTMLMIN doesn't work with Python 2.6.
    if not config.DEBUG and sys.version_info >= (2,7):
        HTMLMIN(app)

Though, we do have an unconditional import (both in
web/pgadmin/__init__.py).

Does the app run?

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Reply via email to