Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem] babel on 3.6 don't load QPanel #202

Open
DoM1niC opened this Issue Apr 5, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@DoM1niC
Copy link
Contributor

DoM1niC commented Apr 5, 2019

^C[root@voip qpanel]# clear
[root@voip qpanel]# python3.6 app.py
 * Running on http://10.10.0.6:85/ (Press CTRL+C to quit)
[2019-04-05 07:45:35,884] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.6/site-packages/flask_login/utils.py", line 261, in decorated_view
    return func(*args, **kwargs)
  File "/home/asterisk/qpanel/qpanel/app.py", line 250, in home
    data = get_data_queues()
  File "/home/asterisk/qpanel/qpanel/app.py", line 41, in get_data_queues
    data = backend.get_data_queues()
  File "/home/asterisk/qpanel/qpanel/backend.py", line 70, in get_data_queues
    return self.parse_data(data)
  File "/home/asterisk/qpanel/qpanel/backend.py", line 77, in parse_data
    return self.parse_asterisk(data)
  File "/home/asterisk/qpanel/qpanel/backend.py", line 114, in parse_asterisk
    granularity='second')
  File "/usr/lib/python3.6/site-packages/flask_babel/__init__.py", line 458, in format_timedelta
    locale=get_locale()
  File "/usr/lib/python3.6/site-packages/flask_babel/__init__.py", line 261, in get_locale
    locale = Locale.parse(rv)
  File "/usr/lib/python3.6/site-packages/babel/core.py", line 266, in parse
    raise TypeError('Unexpected value for identifier: %r' % (identifier,))
TypeError: Unexpected value for identifier: b'de'
Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.6/site-packages/flask_login/utils.py", line 261, in decorated_view
    return func(*args, **kwargs)
  File "/home/asterisk/qpanel/qpanel/app.py", line 250, in home
    data = get_data_queues()
  File "/home/asterisk/qpanel/qpanel/app.py", line 41, in get_data_queues
    data = backend.get_data_queues()
  File "/home/asterisk/qpanel/qpanel/backend.py", line 70, in get_data_queues
    return self.parse_data(data)
  File "/home/asterisk/qpanel/qpanel/backend.py", line 77, in parse_data
    return self.parse_asterisk(data)
  File "/home/asterisk/qpanel/qpanel/backend.py", line 114, in parse_asterisk
    granularity='second')
  File "/usr/lib/python3.6/site-packages/flask_babel/__init__.py", line 458, in format_timedelta
    locale=get_locale()
  File "/usr/lib/python3.6/site-packages/flask_babel/__init__.py", line 261, in get_locale
    locale = Locale.parse(rv)
  File "/usr/lib/python3.6/site-packages/babel/core.py", line 266, in parse
    raise TypeError('Unexpected value for identifier: %r' % (identifier,))
TypeError: Unexpected value for identifier: b'de'
192.168.0.5 - - [05/Apr/2019 07:45:35] "GET / HTTP/1.0" 500 -
@roramirez

This comment has been minimized.

Copy link
Owner

roramirez commented Apr 10, 2019

Please share your config.ini

@DoM1niC

This comment has been minimized.

Copy link
Contributor Author

DoM1niC commented Apr 12, 2019

Please share your config.ini

[manager]
user = qpanel
password = *****
port = 5038
host = 10.10.0.6

[general]
debug = false
port = 85
host = 10.10.0.6
interval = 5
language = de
check_upgrade = false
show_service_level = true
hide=default

[rename]
1000 = 3DNS Hotline
1300 = DoM1niC Privat
1100 = Atom-Area Technik
1400 = DoM1niC Livestream
1410 = Callback
1700 = Eltern

@roramirez roramirez added this to the 0.16.0 milestone Apr 14, 2019

@roramirez

This comment has been minimized.

Copy link
Owner

roramirez commented Apr 16, 2019

It's stranger. The error appear randomize. Do you have the exact method to reproduce it?

@DoM1niC

This comment has been minimized.

Copy link
Contributor Author

DoM1niC commented Apr 22, 2019

It's stranger. The error appear randomize. Do you have the exact method to reproduce it?

Just execute with CentOS 7 & python3.6 and this config.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.