S
S
Sergey Beloventsev2017-07-19 06:59:15
linux
Sergey Beloventsev, 2017-07-19 06:59:15

Why is there an error when starting pgAdmin4?

ubuntu system 17.04 installed pgadmin according to this instruction
try to run this command

python ~/.pgadmin4/lib/python3.5/site-packagepgadmin4/pgAdmin4.py

I get this response
tarting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.
2017-07-19 11:34:17,519: ERROR  werkzeug:   Error on request:
Traceback (most recent call last):
  File "/home/sergalas/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 209, in run_wsgi
    execute(self.server.app)
  File "/home/sergalas/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 197, in execute
    application_iter = app(environ, start_response)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/sergalas/.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/sergalas/.local/lib/python2.7/site-packages/flask_login/utils.py", line 227, in decorated_view
    return current_app.login_manager.unauthorized()
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask_login/login_manager.py", line 160, in unauthorized
    flash(self.localize_callback(self.login_message),
  File "/home/sergalas/.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/sergalas/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", line 533, in gettext
    t = self.get_translations()
  File "/home/sergalas/.local/lib/python2.7/site-packages/flask_babelex/__init__.py", line 510, in get_translations
    locale = get_locale()
  File "/home/sergalas/.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'

what to do now?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2017-07-19
@Sanasol

make the console wider to begin with to see the full error. (or look at the logs in the usual text /var/log)
And then go to the toaster if the error is terribly unsolvable)
Well, or the config, see what they messed up if they touched

M
Mazer, 2018-02-18
@Mazer

I registered just to note that on Russian-language forums, instead of help, some clever people ALWAYS write complete crap like
- "And then go to the toaster if the error is terribly unsolvable)" or
- "Well, or look at the config, what they messed up if they touched it"
It is precisely because of such clever assistants like Alexander Aksentiev that all Russian-language resources are a dump of meaningless comments. You find a question through Google - you think - oh! just like my problem, right now I'll read the solution. And dick there - instead of the solution "see the config" and "the console is wider."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question