Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyOe2-0005xT-G4 for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Mar 2018 21:18:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyOe1-0003Ji-CH for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Mar 2018 21:18:09 +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.89) (envelope-from ) id 1eyOe0-0003Ia-W4 for pgadmin-hackers@lists.postgresql.org; Tue, 20 Mar 2018 21:18:09 +0000 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyOdw-0000s7-Ur for pgadmin-hackers@postgresql.org; Tue, 20 Mar 2018 21:18:07 +0000 Received: by mail-it0-x235.google.com with SMTP id c1-v6so3284051itj.1 for ; Tue, 20 Mar 2018 14:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wWJnaGgSz+xbXQEWJ1kFkIt65nPhVECUGojXuhMe6D8=; b=XlLgN+ZI0PT4BBzHOMp2AkbMP1723+2OY9SIJVj9tTr89Y7RcM8mhQtvaV/WP9a2tf fuxOEXeoVIN0c1Wu2YPH50bEEQv2DjOOWQQChQzRXNhFGhAWH9OlN3MGpKpEp9WB14H2 coafkJibhtFyIeToPIFLdaPoIEvGj1neML2zmQU4m2Dpj08VkVJ7R6NwR+aOgc7IZZQC K7E6yFvjco3Q7G3TBY5WFProjdySWXXFFIKRvm3LiLOSH2Yj6P/KN70+UzVykBTrc6Fb p9JwOTUn4pCQEQ33KjRxaOYqa3+UVVEcaJpBsiErWeUMA2Se/jHJ4Uv9av6iUwDpBWII uO2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wWJnaGgSz+xbXQEWJ1kFkIt65nPhVECUGojXuhMe6D8=; b=sXxrtZGhJ8W8c25BG5YlZJBDCukeEe0WNbzVV5Uouuhj0NvQgqAFzKP6aRCfV3iq95 90JQibnpBwGvQRst2Ij7e0VhRTMIvEQGzcaBEUuuh8EHJZmw/wrjz/dPhXeA93Co1a9r prRWlRqeIPB+YOQ2ebQIyF1K0hzJGZefEPpDPsaAwoSJdKs/a+A8Y/P9jh/MQgECOWkK QEVgHryq+npJ4NK6J30SlQNdoH828k9VvkwYmp6aCk+LDu8ob1xiRVyvUXEyuDWfGbch w+Tit8YG9/ehg6v5FnaNxnlTrmrKc2QNcmMMxK5J7lVGocxsm82jGyH2npwAbJNicQ/f +nVQ== X-Gm-Message-State: AElRT7EL1XRHAbsn7AavL2fYINIOW/UpzkVfYwK0LoxNdqDZeSgn6WVc 2WLO4qKsiW36uhOIeYoO9/nq6CeLP9M2Yn251qMxvQ== X-Google-Smtp-Source: AG47ELsGyZ22/+kjMGIvH7MaKoortbAxJ9boYnmrdWp/RzzSHMBFi7fnsOtmRkz8HtRBiDYpqR53iII+xxnrCgyH+A4= X-Received: by 2002:a24:e89:: with SMTP id 131-v6mr1391020ite.147.1521580683397; Tue, 20 Mar 2018 14:18:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Joao De Almeida Pereira Date: Tue, 20 Mar 2018 21:17:52 +0000 Message-ID: Subject: Re: AttributeError To: Rahul Soshte Cc: pgadmin-hackers@postgresql.org Content-Type: multipart/alternative; boundary="00000000000021b2a90567de9c60" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000021b2a90567de9c60 Content-Type: text/plain; charset="UTF-8" Hi Rahul, Sorry for the late reply, if you still have any issue just let us know Thanks Joao On Tue, Mar 20, 2018 at 4:21 PM Rahul Soshte wrote: > I installed from the git source but when I am trying to run the I am > getting this > error.I am using Ubuntu 17.10.What do I do? > > AttributeError > > AttributeError: 'Babel' object has no attribute 'load_locale' > Traceback *(most recent call last)* > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1997*, in __call__ > > return self.wsgi_app(environ, start_response) > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1985*, in wsgi_app > > response = self.handle_exception(e) > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1540*, in handle_exception > > reraise(exc_type, exc_value, tb) > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1982*, in wsgi_app > > response = self.full_dispatch_request() > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1614*, in full_dispatch_request > > rv = self.handle_user_exception(e) > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1517*, in handle_user_exception > > reraise(exc_type, exc_value, tb) > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1612*, in full_dispatch_request > > rv = self.dispatch_request() > > - File "/home/hunter/.local/lib/python2.7/site-packages/flask/app.py", > line *1598*, in dispatch_request > > return self.view_functions[rule.endpoint](**req.view_args) > > - File > "/home/hunter/.local/lib/python2.7/site-packages/flask_login/utils.py", > line *260*, in decorated_view > > return current_app.login_manager.unauthorized() > > - File > "/home/hunter/.local/lib/python2.7/site-packages/flask_login/login_manager.py", > line *152*, in unauthorized > > return self.unauthorized_callback() > > - File "/var/www/flask/pgadmin4/pgadmin4/web/pgadmin/utils/session.py", > line *318*, in pga_unauthorised > > login_message = lm.localize_callback(lm.login_message) > > - File > "/home/hunter/.local/lib/python2.7/site-packages/werkzeug/local.py", > line *375*, in > > __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw) > > - File > "/home/hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", > line *533*, in gettext > > t = self.get_translations() > > - File > "/home/hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", > line *510*, in get_translations > > locale = get_locale() > > - File > "/home/hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", > line *224*, in get_locale > > locale = babel.load_locale(rv) > > > AttributeError: 'Babel' object has no attribute 'load_locale' > > The debugger caught an exception in your WSGI application. You can now > look at the traceback which led to the error. > > To switch between the interactive traceback and the plaintext one, you can > click on the "Traceback" headline. From the text traceback you can also > create a paste of it. For code execution mouse-over the frame you want to > debug and click on the console icon on the right side. > > You can execute arbitrary Python code in the stack frames and there are > some extra helpers available for introspection: > > - dump() shows all variables in the frame > - dump(obj) dumps all that's known about the object > > > > --00000000000021b2a90567de9c60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Rahul,
Sorry for the late reply, if you still have = any issue just let us know

Thanks
Joao

On Tue, Mar 20, 2= 018 at 4:21 PM Rahul Soshte <rahulsoshte360@gmail.com> wrote:
I installed from the git source but when I= am trying to run the I am getting this
error.I am using Ubuntu 17= .10.What do I do?

AttributeError

AttributeError: 'Babel'= ; object has no attribute 'load_locale'

Traceback (most rece= nt call last)

=20
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__

    return self.wsgi_app(environ, start_response)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app

    response =3D self.handle_exception(e)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_excepti= on

    reraise(exc_type, exc_value, tb)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app

    response =3D self.full_dispatch_request()
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_= request

    rv =3D self.handle_user_exception(e)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_ex= ception

    reraise(exc_type, exc_value, tb)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_= request

    rv =3D self.dispatch_request()
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_reque= st

    return self.view_functions[rule.endpoint](**req.view_args)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask_login/utils.py"= , line 260, in decorated_view=

    return current_app.login_manager.unauthorized()
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask_login/login_manager.py"= ;, line 152, in unauthorized

    return self.unauthorized_callback()
  • File "/var/w= ww/flask/pgadmin4/pgadmin4/web/pgadmin/utils/session.py", line 318, in pga_unauthoris= ed

    login_message =3D lm.localize_callback(lm.login_message)
  • File "/home/= hunter/.local/lib/python2.7/site-packages/werkzeug/local.py", line 375, in <lambda>=

    __call__ =3D lambda x, *a, **kw: x._get_current_object()(*a, **kw)
    
    
    
    
    
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", line 533, in gettext=

    t =3D self.get_translations()
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", line 510, in get_translatio= ns

    locale =3D get_locale()
  • File "/home/= hunter/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", line 224, in get_locale

    locale =3D babel.load_locale(rv)
AttributeError: 'Babel' object has no attribute '= load_locale'
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To=20 switch between the interactive traceback and the plaintext one, you can=20 click on the "Traceback" headline. From the text traceback you c= an also create a paste of it. For code execution mouse-over the frame you want=20 to debug and click on the console icon on the right side.

You can exe= cute arbitrary Python code in the stack frames and there are some extra hel= pers available for introspection:

  • dump() shows all = variables in the frame
  • dump(obj) dumps all that's = known about the object


--00000000000021b2a90567de9c60--