Re: More RHEL 6 build issues - Mailing list pgadmin-hackers

From Dave Page
Subject Re: More RHEL 6 build issues
Date
Msg-id CA+OCxoz-yHg-oDHJp3cf85hNjMdufO71Op3huNLUrOK-wMsP_A@mail.gmail.com
Whole thread Raw
In response to More RHEL 6 build issues  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: More RHEL 6 build issues
Re: More RHEL 6 build issues
List pgadmin-hackers


On Tue, Jul 11, 2017 at 11:21 AM, Devrim Gündüz <devrim@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

pgadmin-hackers by date:

Previous
From: Devrim Gündüz
Date:
Subject: More RHEL 6 build issues
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Fix proxy support with Qt 5.9+