Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVGmQ-0004KF-Gx for pgadmin-hackers@arkaria.postgresql.org; Thu, 04 Aug 2016 11:25:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVGmP-0003b0-OA for pgadmin-hackers@arkaria.postgresql.org; Thu, 04 Aug 2016 11:25:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVGmO-0003Uz-KY for pgadmin-hackers@postgresql.org; Thu, 04 Aug 2016 11:25:36 +0000 Received: from mail-fw.wtccommunications.ca ([66.102.92.155]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVGmH-0000bs-7C for pgadmin-hackers@postgresql.org; Thu, 04 Aug 2016 11:25:35 +0000 X-ASG-Debug-ID: 1470309926-08fa031a56eeada0001-MRQd0H Received: from mail2.kingston.net (mail2.kingston.net [66.102.92.5]) by mail-fw.wtccommunications.ca with ESMTP id LWiwpVNHVChlFWnX for ; Thu, 04 Aug 2016 07:25:26 -0400 (EDT) X-Barracuda-Envelope-From: colbec@kingston.net X-Barracuda-Effective-Source-IP: mail2.kingston.net[66.102.92.5] X-Barracuda-Apparent-Source-IP: 66.102.92.5 Received: from [192.168.0.111] (unallocated-66-102-88-207.wtccommunications.ca [66.102.88.207]) (authenticated bits=0) by mail2.kingston.net (8.14.4/8.14.4/Debian-4) with ESMTP id u74BPOdQ011000 for ; Thu, 4 Aug 2016 07:25:26 -0400 Subject: Re: Possible error in latest git pull To: pgadmin-hackers@postgresql.org X-ASG-Orig-Subj: Re: [pgadmin-hackers] Possible error in latest git pull References: From: Colin Beckingham Message-ID: Date: Thu, 4 Aug 2016 07:25:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------13012F6236D4F79988FB1B71" X-Barracuda-Connect: mail2.kingston.net[66.102.92.5] X-Barracuda-Start-Time: 1470309926 X-Barracuda-URL: https://mail-fw.wtccommunications.ca:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 15170 X-Virus-Scanned: by bsmtpd at wtccommunications.ca X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=7.0 KILL_LEVEL=1000.0 tests=HTML_MESSAGE, WEIRD_PORT X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31744 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP 0.00 HTML_MESSAGE BODY: HTML included in message X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------13012F6236D4F79988FB1B71 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks Ashesh, all good now. On 04/08/16 07:15, Ashesh Vashi wrote: > Dave upgraded the dependencies of flask_babel few days back. > Did you run "pip upgrade -r requirements_pyX.txt"? > > -- > > Thanks & Regards, > > Ashesh Vashi > EnterpriseDB INDIA: Enterprise PostgreSQL Company > > > > /http://www.linkedin.com/in/asheshvashi/ > > > On Thu, Aug 4, 2016 at 4:42 PM, Colin Beckingham > wrote: > > Just did a git pull on pgadmin4 and on attempt to start the web > interface I have a problem. App seems to start correctly and > invites me to open my browser, but on attempt to log in I get a > rotating wheel and this in the console. Quite possibly my error, > on openSUSE Leap 42.1 fully patched: > > > python pgAdmin4.py > Starting pgAdmin 4. Please navigate to http://localhost:5050 in > your browser. > 2016-08-04 07:02:40,202: ERROR pgadmin: Exception on > /browser/js/messages.js [GET] > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, > in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, > in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, > in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, > in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, > in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/home/colin/pgadmin4git/web/pgadmin/browser/__init__.py", > line 543, in messages_js > render_template('browser/js/messages.js', _=gettext), > File "/usr/lib/python2.7/site-packages/flask/templating.py", > line 128, in render_template > context, ctx.app) > File "/usr/lib/python2.7/site-packages/flask/templating.py", > line 110, in _render > rv = template.render(context) > File "/usr/lib/python2.7/site-packages/jinja2/environment.py", > line 969, in render > return self.environment.handle_exception(exc_info, True) > File "/usr/lib/python2.7/site-packages/jinja2/environment.py", > line 742, in handle_exception > reraise(exc_type, exc_value, tb) > File > "/home/colin/pgadmin4git/web/pgadmin/browser/templates/browser/js/messages.js", > line 19, in top-level template code > 'MUST_GR_EQ' : "{{ _("'%s' must be greater than or equal to > %d.")|safe }}", > File "/usr/lib/python2.7/site-packages/flask_babel/__init__.py", > line 461, in gettext > return t.ugettext(string) % variables > TypeError: not enough arguments for format string > 2016-08-04 07:02:40,233: ERROR pgadmin: Exception on > /browser/js/node.js [GET] > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, > in wsgi_app > response = self.full_dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, > in full_dispatch_request > rv = self.handle_user_exception(e) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, > in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, > in full_dispatch_request > rv = self.dispatch_request() > File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, > in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/usr/lib/python2.7/site-packages/flask_login.py", line > 758, in decorated_view > return func(*args, **kwargs) > File "/home/colin/pgadmin4git/web/pgadmin/browser/__init__.py", > line 535, in node_js > _=gettext > File "/usr/lib/python2.7/site-packages/flask/templating.py", > line 128, in render_template > context, ctx.app) > File "/usr/lib/python2.7/site-packages/flask/templating.py", > line 110, in _render > rv = template.render(context) > File "/usr/lib/python2.7/site-packages/jinja2/environment.py", > line 969, in render > return self.environment.handle_exception(exc_info, True) > File "/usr/lib/python2.7/site-packages/jinja2/environment.py", > line 742, in handle_exception > reraise(exc_type, exc_value, tb) > File > "/home/colin/pgadmin4git/web/pgadmin/browser/templates/browser/js/node.js", > line 457, in top-level template code > var msg = '{{ _('Are you sure want to stop editing the > properties of %s "%s"?') }}'; > File "/usr/lib/python2.7/site-packages/flask_babel/__init__.py", > line 461, in gettext > return t.ugettext(string) % variables > TypeError: not enough arguments for format string > > > > -- > Sent via pgadmin-hackers mailing list > (pgadmin-hackers@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > > --------------13012F6236D4F79988FB1B71 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Thanks Ashesh, all good now.

On 04/08/16 07:15, Ashesh Vashi wrote:
Dave upgraded the dependencies of flask_babel few days back.
Did you run "pip upgrade -r requirements_pyX.txt"? 

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company


http://www.linkedin.com/in/asheshvashi


On Thu, Aug 4, 2016 at 4:42 PM, Colin Beckingham <colbec@kingston.net> wrote:
Just did a git pull on pgadmin4 and on attempt to start the web interface I have a problem. App seems to start correctly and invites me to open my browser, but on attempt to log in I get a rotating wheel and this in the console. Quite possibly my error, on openSUSE Leap 42.1 fully patched:

> python pgAdmin4.py
Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.
2016-08-04 07:02:40,202: ERROR    pgadmin:    Exception on /browser/js/messages.js [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/colin/pgadmin4git/web/pgadmin/browser/__init__.py", line 543, in messages_js
    render_template('browser/js/messages.js', _=gettext),
  File "/usr/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
    context, ctx.app)
  File "/usr/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
    rv = template.render(context)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/colin/pgadmin4git/web/pgadmin/browser/templates/browser/js/messages.js", line 19, in top-level template code
    'MUST_GR_EQ' : "{{ _("'%s' must be greater than or equal to %d.")|safe }}",
  File "/usr/lib/python2.7/site-packages/flask_babel/__init__.py", line 461, in gettext
    return t.ugettext(string) % variables
TypeError: not enough arguments for format string
2016-08-04 07:02:40,233: ERROR    pgadmin:    Exception on /browser/js/node.js [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/site-packages/flask_login.py", line 758, in decorated_view
    return func(*args, **kwargs)
  File "/home/colin/pgadmin4git/web/pgadmin/browser/__init__.py", line 535, in node_js
    _=gettext
  File "/usr/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
    context, ctx.app)
  File "/usr/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
    rv = template.render(context)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/colin/pgadmin4git/web/pgadmin/browser/templates/browser/js/node.js", line 457, in top-level template code
    var msg = '{{ _('Are you sure want to stop editing the properties of %s "%s"?') }}';
  File "/usr/lib/python2.7/site-packages/flask_babel/__init__.py", line 461, in gettext
    return t.ugettext(string) % variables
TypeError: not enough arguments for format string



--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


--------------13012F6236D4F79988FB1B71--