Re: [pgadmin-hackers] Last few steps for pgadmin4 on RHEL 6 - Mailing list pgadmin-hackers
From | Dave Page |
---|---|
Subject | Re: [pgadmin-hackers] Last few steps for pgadmin4 on RHEL 6 |
Date | |
Msg-id | F73488EF-83BE-439D-8DC4-AE491D709D05@pgadmin.org Whole thread Raw |
In response to | [pgadmin-hackers] Last few steps for pgadmin4 on RHEL 6 (Devrim Gündüz <devrim@gunduz.org>) |
Responses |
Re: [pgadmin-hackers] Last few steps for pgadmin4 on RHEL 6
|
List | pgadmin-hackers |
That one is easy, there's a setting in config.py to enable/disable HTML minimisation. Put that in config_distro.py and set it to False.
In 1.4, that'll happen automatically with Python 2.6.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK:http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK:http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Hi,
I spent a couple of hours this morning to build pgadmin4 dependencies on RHEL
6. I think I made them work, but pgadmin4 does not run (actually it runs, but
the window comes empty). Here is the console output. Can you please take a
look?
[devrim@CentOS6x8664 ~]$ pgadmin4
Python path: "/usr/lib/python2.6/site-packages:/usr/lib64/python2.6/site-packages"
Python Home: ""
Webapp path: "/usr/lib/python2.6/site-packages/pgadmin4-web/pgAdmin4.py"
/usr/lib/python2.6/site-packages/flask_security/forms.py:67: DeprecationWarning: Required is going away in WTForms 3.0, use DataRequired
email_required = Required(message='EMAIL_NOT_PROVIDED')
/usr/lib/python2.6/site-packages/flask_security/forms.py:69: DeprecationWarning: Required is going away in WTForms 3.0, use DataRequired
password_required = Required(message='PASSWORD_NOT_PROVIDED')
/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
loaded the Generic plugin
can't make "generic.orientation" because no QAccelerometer sensors exist
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.6/SocketServer.py", line 573, in process_request_thread
self.handle_error(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 570, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.6/SocketServer.py", line 627, in __init__
self.handle()
File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 216, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 251, in handle_one_request
return self.run_wsgi()
File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python2.6/site-packages/flask/app.py", line 2000, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python2.6/site-packages/flask/app.py", line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python2.6/site-packages/flask/app.py", line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.6/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.6/site-packages/flask/app.py", line 1643, in full_dispatch_request
response = self.process_response(response)
File "/usr/lib/python2.6/site-packages/flask/app.py", line 1862, in process_response
response = handler(response)
File "/usr/lib/python2.6/site-packages/flask_htmlmin.py", line 27, in response_minify
remove_comments=True, reduce_empty_attributes=True, remove_optional_attribute_quotes=False)
File "/usr/lib/python2.6/site-packages/htmlmin/main.py", line 98, in minify
minifier.feed(input)
File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib64/python2.6/HTMLParser.py", line 152, in goahead
k = self.parse_comment(i)
File "/usr/lib64/python2.6/markupbase.py", line 174, in parse_comment
self.handle_comment(rawdata[i+4: j])
File "/usr/lib/python2.6/site-packages/htmlmin/parser.py", line 281, in handle_comment
data[1:] if data[0] == '!' else data))
ValueError: zero length field name in format
If you want to test it yourself, the RPMs will be available in 9.6 *testing* repo in next 50 mins.
Regards,
--
Devrim Gündüz
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
pgadmin-hackers by date: