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-0005xU-Et 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-0003Jj-CL for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Mar 2018 21:18:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyOcM-0001mz-JZ for pgadmin-hackers@lists.postgresql.org; Tue, 20 Mar 2018 21:16:26 +0000 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyOcI-0000kh-0w for pgadmin-hackers@postgresql.org; Tue, 20 Mar 2018 21:16:25 +0000 Received: by mail-io0-x234.google.com with SMTP id y128so4118026iod.4 for ; Tue, 20 Mar 2018 14:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4AU0CJsKbJa2zsu1QVUeO864f6jsK6dVyAUvQTYpN4M=; b=BxbUvUoPUUIJDCnC4fAzgVR9Ozdq4ZMgsgjnLBSv6X/eCEMeswjjod/SHhmFyzDVjG b/MZ9Vozr9SXB69n4Oqhvx6XQaY5dxVaM5pyA4ZJYZA5tua9jN+9RctRwiuf76/zwgaf cdy1ro/cmUkWI4XPM+5CZ86T9bsR3iW4y4+nLDfV2RsdJk0RKuQZJgIbgvo6Y37LisUI YWo6jQ51fWlCZjI580G0ypqAoGbZNsce+9ikqINe2z6m7Q+tbXg3r9tA/kdHio/SdNQ/ Msce+2OKByLDfWhuPHmXNGH7gJLMsFPVCCFNYiBUNCt8p0MA8fEa+d1U4WjeYwA1OjYe /AEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4AU0CJsKbJa2zsu1QVUeO864f6jsK6dVyAUvQTYpN4M=; b=OZ+rwEQtRoDY1bW0XCc0TG/SI4MueprSoIx3Vt4fAnd9bbu5ra81FugpX63qLQdJKj mYHQ5eg9Q9TwRbMaLzfMBWWPNdLqYhn5/QUi+xI7JTqDJxCOcpcxGQV+KbcQNksaXPzA ixtErveA2KJJtj+we3mgNNIgnnpBR96QoxRSYfgvrFwCEe/6Vqi005KzJPmF/ezRKUHn m1LY2SxCfBOh68zcRsOP5Tth2DMCc5xbsGIwku/rgEAnBZnywOEf9Fxsya3SUAAR46mU 8MhJhrX7iMBM40mIC20uS2WwAp6M70ho2qoK7vrPNZHjzO1Xh3ZzbGEb1qecIPFEA/ra TiCw== X-Gm-Message-State: AElRT7GxFnrJpqd9v5I5ykz5gNTBmIO+MgDscaStEWPqTRCDPIo6KZzB ERyzYcPJW7xadGNEsLYJjfJi862ItArVfE0u9KT+kQ== X-Google-Smtp-Source: AG47ELuwLIQwVR2hPYQm7haF22WxSDARJrmP/uDabU3mT+BrE6yi3r2rOu5B7lTejOJyW18rWsPL3uuZHUjW9MrbiTI= X-Received: by 10.107.181.136 with SMTP id e130mr13961957iof.105.1521580579598; Tue, 20 Mar 2018 14:16:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.26.212 with HTTP; Tue, 20 Mar 2018 14:16:19 -0700 (PDT) In-Reply-To: References: From: Rahul Soshte Date: Wed, 21 Mar 2018 02:46:19 +0530 Message-ID: Subject: Re: AttributeError To: pgadmin-hackers@postgresql.org Content-Type: multipart/alternative; boundary="001a11445018f1b6490567de9535" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --001a11445018f1b6490567de9535 Content-Type: text/plain; charset="UTF-8" Okay, sorry I had installed the wrong dependencies. On Wed, Mar 21, 2018 at 1:51 AM, 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 > > > > --001a11445018f1b6490567de9535 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Okay, sorry I had installed the wrong dependencies.

On Wed, Mar 21= , 2018 at 1:51 AM, 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= 9; object has no attribute 'load_locale'

Traceback (most rec= ent 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_except= ion

    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_e= xception

    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_requ= est

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

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

    return self.unauthorized_callback()
  • File "/var/= www/flask/pgadmin4/pgadmin4/web/pgadmin/utils/session.py", line 318, in pga_unauthori= sed

    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_translati= ons

    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



--001a11445018f1b6490567de9535--