Skip to content

Instantly share code, notes, and snippets.

@allendema
Created April 30, 2021 20:08
Show Gist options
  • Save allendema/4b86f31cf0f3143f3236214a234f2214 to your computer and use it in GitHub Desktop.
Save allendema/4b86f31cf0f3143f3236214a234f2214 to your computer and use it in GitHub Desktop.
Searx - Petal Autocompleter log
After defining a new engine and adding it to the backends list then selecting it in the settings.yml file,
I got this:
(searx-pyenv) searx@xxxx:~$ python searx/webapp.py
* Serving Flask app "webapp" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
INFO:werkzeug: * Running on http://192.168.178.99:8888/ (Press CTRL+C to quit)
ERROR:webapp:Exception on / [POST]
Traceback (most recent call last):
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1948, in full_dispatch_request
rv = self.preprocess_request()
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 2242, in preprocess_request
rv = func()
File "searx/webapp.py", line 456, in pre_request
preferences = Preferences(themes, list(categories.keys()), engines, plugins)
File "/usr/local/searx/searx-src/searx/preferences.py", line 347, in __init__
choices=list(autocomplete.backends.keys()) + ['']
File "/usr/local/searx/searx-src/searx/preferences.py", line 45, in __init__
self._post_init()
File "/usr/local/searx/searx-src/searx/preferences.py", line 81, in _post_init
self._validate_selection(self.value)
File "/usr/local/searx/searx-src/searx/preferences.py", line 85, in _validate_selection
raise ValidationException('Invalid value: "{0}"'.format(selection))
searx.preferences.ValidationException: Invalid value: "petalsearch"
INFO:werkzeug:192.168.178.78 - - [30/Apr/2021 21:55:44] "POST / HTTP/1.1" 500 -
ERROR:webapp:Exception on /favicon.ico [GET]
Traceback (most recent call last):
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 1948, in full_dispatch_request
rv = self.preprocess_request()
File "/usr/local/searx/searx-pyenv/lib/python3.7/site-packages/flask/app.py", line 2242, in preprocess_request
rv = func()
File "searx/webapp.py", line 456, in pre_request
preferences = Preferences(themes, list(categories.keys()), engines, plugins)
File "/usr/local/searx/searx-src/searx/preferences.py", line 347, in __init__
choices=list(autocomplete.backends.keys()) + ['']
File "/usr/local/searx/searx-src/searx/preferences.py", line 45, in __init__
self._post_init()
File "/usr/local/searx/searx-src/searx/preferences.py", line 81, in _post_init
self._validate_selection(self.value)
File "/usr/local/searx/searx-src/searx/preferences.py", line 85, in _validate_selection
raise ValidationException('Invalid value: "{0}"'.format(selection))
searx.preferences.ValidationException: Invalid value: "petalsearch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment