public inbox for [email protected]  
help / color / mirror / Atom feed
AttributeError
3+ messages / 2 participants
[nested] [flat]

* AttributeError
@ 2018-03-20 20:21  Rahul Soshte <[email protected]>
  0 siblings, 2 replies; 3+ messages in thread

From: Rahul Soshte @ 2018-03-20 20:21 UTC (permalink / raw)
  To: pgadmin-hackers

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 <lambda>

   __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


Attachments:

  [image/png] Screenshot from 2018-03-21 01-49-07.png (190.0K, 3-Screenshot%20from%202018-03-21%2001-49-07.png)
  download | view image

  [image/png] Screenshot from 2018-03-21 01-49-44.png (203.4K, 4-Screenshot%20from%202018-03-21%2001-49-44.png)
  download | view image

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: AttributeError
@ 2018-03-20 21:16  Rahul Soshte <[email protected]>
  parent: Rahul Soshte <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Rahul Soshte @ 2018-03-20 21:16 UTC (permalink / raw)
  To: pgadmin-hackers

Okay, sorry I had installed the wrong dependencies.

On Wed, Mar 21, 2018 at 1:51 AM, Rahul Soshte <[email protected]>
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 <lambda>
>
>    __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
>
>
>
>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: AttributeError
@ 2018-03-20 21:17  Joao De Almeida Pereira <[email protected]>
  parent: Rahul Soshte <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Joao De Almeida Pereira @ 2018-03-20 21:17 UTC (permalink / raw)
  To: Rahul Soshte <[email protected]>; +Cc: pgadmin-hackers

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 <[email protected]>
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 <lambda>
>
>    __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
>
>
>
>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-03-20 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 20:21 AttributeError Rahul Soshte <[email protected]>
2018-03-20 21:16 ` Rahul Soshte <[email protected]>
2018-03-20 21:17 ` Joao De Almeida Pereira <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox