Package Details: searx 1.1.0-2

Git Clone URL: https://aur.archlinux.org/searx.git (read-only, click to copy)
Package Base: searx
Description: A privacy-respecting, hackable metasearch engine (python(3) based)
Upstream URL: https://searx.github.io/searx/
Licenses: AGPL
Conflicts: searx-git
Replaces: searx-py3
Submitter: Jake
Maintainer: Jake
Last Packager: Jake
Votes: 38
Popularity: 0.000018
First Submitted: 2016-09-07 11:42 (UTC)
Last Updated: 2023-06-03 10:47 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

malah commented on 2020-12-03 19:42 (UTC)

Hello, with python 3.9 this package is broken.

You need to add this patch https://github.com/searx/searx/pull/2108/commits/3b8bd0770bff2486c30012606562e4d90e23d655

I've tested and searx rework ... the bad way in the wait of the patch: sudo nano /usr/lib/python3.9/site-packages/searx/search.py and replace "isAlive" by "is_alive" ;)

Jake commented on 2020-10-26 12:41 (UTC)

@Daniel071: I have considered this, but as I already wrote: Arch has no generic (C) UTF-8 locale. So it must be a specific locale, which has to be enabled first in the system and run through locale-gen. If I add that with en_AU/en_US or something else it will break for everyone that has this specific locale not enabled, just because they use another one. Searx works fine without specifying that in the ini, if the system locale is set to UTF-8 (like recommended in the wiki page, that you linked as well), so I think it is better to leave it as is.

Daniel071 commented on 2020-10-20 09:46 (UTC) (edited on 2020-10-20 09:49 (UTC) by Daniel071)

I fixed the issue! I edited the file /etc/uwsgi/searx.ini and added this to the end of it:

env = LANG=en_AU.UTF-8
env = LANGUAGE=en_AU.UTF-8
env = LC_ALL=en_AU.UTF-8

You can replace en_AU with whatever locale you want (such as en_US), you can check this wiki page for it: https://wiki.archlinux.org/index.php/locale

@MagicTheRipper: You can try this solution and see if it works

@Jake: Consider adding this to the config file in the PKGBUILD, so other people wont have the same issue

Jake commented on 2020-10-20 09:15 (UTC) (edited on 2020-10-20 09:15 (UTC) by Jake)

@Daniel071: Not sure if it is the same issue, you have a UnicodeDecodeError, probably this: https://github.com/searx/searx/issues/2041

But we can't use the proposed patch from there, because Arch has no C.UTF-8: https://bugs.archlinux.org/task/32296

So please just configure your system to use UTF-8 per default with your preferred language. It should work with any locale, as long as it is the UTF-8 variant.

Daniel071 commented on 2020-10-20 08:13 (UTC)

I'm having the same issue as @MagicTheRipper , I've started the uSWGI service and when I try to visit it on the web, I get "Internal Server Error", here is the systemd logs:

Aug 28 10:21:06 alarmpi systemd[1]: Started uWSGI service unit.
Aug 28 10:21:06 alarmpi uwsgi[31279]: spawned uWSGI worker 1 (pid: 31280, cores: 1)
Aug 28 10:21:06 alarmpi uwsgi[31279]: spawned uWSGI worker 2 (pid: 31281, cores: 1)
Aug 28 10:21:06 alarmpi uwsgi[31279]: spawned uWSGI worker 3 (pid: 31282, cores: 1)
Aug 28 10:21:06 alarmpi uwsgi[31279]: spawned uWSGI worker 4 (pid: 31283, cores: 1)
Aug 28 10:21:08 alarmpi uwsgi[31283]: Traceback (most recent call last):
Aug 28 10:21:08 alarmpi uwsgi[31283]:   File "/usr/lib/python3.8/site-packages/searx/webapp.py", line 74, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31283]:     from searx.search import SearchWithPlugins, get_search_query_from_webapp
Aug 28 10:21:08 alarmpi uwsgi[31283]:   File "/usr/lib/python3.8/site-packages/searx/search.py", line 32, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31283]:     from searx.external_bang import get_bang_url
Aug 28 10:21:08 alarmpi uwsgi[31283]:   File "/usr/lib/python3.8/site-packages/searx/external_bang.py", line 13, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31283]:     for bang in json.load(json_file)['bang']:
Aug 28 10:21:08 alarmpi uwsgi[31283]:   File "/usr/lib/python3.8/json/__init__.py", line 293, in load
Aug 28 10:21:08 alarmpi uwsgi[31283]:     return loads(fp.read(),
Aug 28 10:21:08 alarmpi uwsgi[31283]:   File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
Aug 28 10:21:08 alarmpi uwsgi[31283]:     return codecs.ascii_decode(input, self.errors)[0]
Aug 28 10:21:08 alarmpi uwsgi[31283]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31341: ordinal not in range(128)
Aug 28 10:21:08 alarmpi uwsgi[31283]: unable to load app 0 (mountpoint='') (callable not found or import error)
Aug 28 10:21:08 alarmpi uwsgi[31283]: *** no app loaded. going in full dynamic mode ***
Aug 28 10:21:08 alarmpi uwsgi[31280]: Traceback (most recent call last):
Aug 28 10:21:08 alarmpi uwsgi[31280]:   File "/usr/lib/python3.8/site-packages/searx/webapp.py", line 74, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31280]:     from searx.search import SearchWithPlugins, get_search_query_from_webapp
Aug 28 10:21:08 alarmpi uwsgi[31280]:   File "/usr/lib/python3.8/site-packages/searx/search.py", line 32, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31280]:     from searx.external_bang import get_bang_url
Aug 28 10:21:08 alarmpi uwsgi[31280]:   File "/usr/lib/python3.8/site-packages/searx/external_bang.py", line 13, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31280]:     for bang in json.load(json_file)['bang']:
Aug 28 10:21:08 alarmpi uwsgi[31280]:   File "/usr/lib/python3.8/json/__init__.py", line 293, in load
Aug 28 10:21:08 alarmpi uwsgi[31280]:     return loads(fp.read(),
Aug 28 10:21:08 alarmpi uwsgi[31280]:   File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
Aug 28 10:21:08 alarmpi uwsgi[31280]:     return codecs.ascii_decode(input, self.errors)[0]
Aug 28 10:21:08 alarmpi uwsgi[31280]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31341: ordinal not in range(128)
Aug 28 10:21:08 alarmpi uwsgi[31280]: unable to load app 0 (mountpoint='') (callable not found or import error)
Aug 28 10:21:08 alarmpi uwsgi[31280]: *** no app loaded. going in full dynamic mode ***
Aug 28 10:21:08 alarmpi uwsgi[31282]: Traceback (most recent call last):
Aug 28 10:21:08 alarmpi uwsgi[31282]:   File "/usr/lib/python3.8/site-packages/searx/webapp.py", line 74, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31282]:     from searx.search import SearchWithPlugins, get_search_query_from_webapp
Aug 28 10:21:08 alarmpi uwsgi[31282]:   File "/usr/lib/python3.8/site-packages/searx/search.py", line 32, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31282]:     from searx.external_bang import get_bang_url
Aug 28 10:21:08 alarmpi uwsgi[31282]:   File "/usr/lib/python3.8/site-packages/searx/external_bang.py", line 13, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31282]:     for bang in json.load(json_file)['bang']:
Aug 28 10:21:08 alarmpi uwsgi[31282]:   File "/usr/lib/python3.8/json/__init__.py", line 293, in load
Aug 28 10:21:08 alarmpi uwsgi[31282]:     return loads(fp.read(),
Aug 28 10:21:08 alarmpi uwsgi[31282]:   File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
Aug 28 10:21:08 alarmpi uwsgi[31282]:     return codecs.ascii_decode(input, self.errors)[0]
Aug 28 10:21:08 alarmpi uwsgi[31282]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31341: ordinal not in range(128)
Aug 28 10:21:08 alarmpi uwsgi[31282]: unable to load app 0 (mountpoint='') (callable not found or import error)
Aug 28 10:21:08 alarmpi uwsgi[31282]: *** no app loaded. going in full dynamic mode ***
Aug 28 10:21:08 alarmpi uwsgi[31281]: Traceback (most recent call last):
Aug 28 10:21:08 alarmpi uwsgi[31281]:   File "/usr/lib/python3.8/site-packages/searx/webapp.py", line 74, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31281]:     from searx.search import SearchWithPlugins, get_search_query_from_webapp
Aug 28 10:21:08 alarmpi uwsgi[31281]:   File "/usr/lib/python3.8/site-packages/searx/search.py", line 32, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31281]:     from searx.external_bang import get_bang_url
Aug 28 10:21:08 alarmpi uwsgi[31281]:   File "/usr/lib/python3.8/site-packages/searx/external_bang.py", line 13, in <module>
Aug 28 10:21:08 alarmpi uwsgi[31281]:     for bang in json.load(json_file)['bang']:
Aug 28 10:21:08 alarmpi uwsgi[31281]:   File "/usr/lib/python3.8/json/__init__.py", line 293, in load
Aug 28 10:21:08 alarmpi uwsgi[31281]:     return loads(fp.read(),
Aug 28 10:21:08 alarmpi uwsgi[31281]:   File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
Aug 28 10:21:08 alarmpi uwsgi[31281]:     return codecs.ascii_decode(input, self.errors)[0]
Aug 28 10:21:08 alarmpi uwsgi[31281]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31341: ordinal not in range(128)
Aug 28 10:21:08 alarmpi uwsgi[31281]: unable to load app 0 (mountpoint='') (callable not found or import error)
Aug 28 10:21:08 alarmpi uwsgi[31281]: *** no app loaded. going in full dynamic mode ***
Aug 28 10:21:15 alarmpi uwsgi[31282]: --- no python application found, check your startup logs for errors ---
Aug 28 10:21:15 alarmpi uwsgi[31282]: [pid: 31282|app: -1|req: -1/1] 192.168.20.7 () {36 vars in 1222 bytes} [Fri Aug 28 10:21:15 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500)>
Aug 28 10:21:16 alarmpi uwsgi[31280]: --- no python application found, check your startup logs for errors ---
Aug 28 10:21:16 alarmpi uwsgi[31280]: [pid: 31280|app: -1|req: -1/2] 192.168.20.7 () {34 vars in 1149 bytes} [Fri Aug 28 10:21:16 2020] GET /favicon.ico => generated 21 bytes in 0 msecs (HT>
Aug 28 10:21:17 alarmpi uwsgi[31282]: --- no python application found, check your startup logs for errors ---
Aug 28 10:21:17 alarmpi uwsgi[31282]: [pid: 31282|app: -1|req: -1/3] 192.168.20.7 () {38 vars in 1253 bytes} [Fri Aug 28 10:21:17 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500)>
Aug 28 10:21:18 alarmpi uwsgi[31282]: --- no python application found, check your startup logs for errors ---
Aug 28 10:21:18 alarmpi uwsgi[31282]: [pid: 31282|app: -1|req: -1/4] 192.168.20.7 () {38 vars in 1253 bytes} [Fri Aug 28 10:21:18 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500)>
Aug 28 10:28:26 alarmpi uwsgi[31282]: --- no python application found, check your startup logs for errors ---
Aug 28 10:28:26 alarmpi uwsgi[31282]: [pid: 31282|app: -1|req: -1/5] 192.168.20.16 () {38 vars in 1242 bytes} [Fri Aug 28 10:28:26 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500>
Aug 28 10:28:26 alarmpi uwsgi[31281]: --- no python application found, check your startup logs for errors ---
Aug 28 10:28:26 alarmpi uwsgi[31281]: [pid: 31281|app: -1|req: -1/6] 192.168.20.16 () {36 vars in 1169 bytes} [Fri Aug 28 10:28:26 2020] GET /favicon.ico => generated 21 bytes in 0 msecs (H>
Aug 28 10:28:31 alarmpi uwsgi[31281]: --- no python application found, check your startup logs for errors ---
Aug 28 10:28:31 alarmpi uwsgi[31281]: [pid: 31281|app: -1|req: -1/7] 192.168.20.7 () {36 vars in 1222 bytes} [Fri Aug 28 10:28:31 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500)>
Aug 28 10:28:37 alarmpi systemd[1]: Stopping uWSGI service unit...

Jake commented on 2020-02-21 20:07 (UTC) (edited on 2020-02-21 20:10 (UTC) by Jake)

@yochananmarqos, thank you, that is a good idea. I replaced the whole site packages path now, like suggested in the wiki (python guidelines).

yochananmarqos commented on 2020-02-16 15:33 (UTC)

Please don't hardcode the Python version into the PKGBUILD. You can do something like this:

  _pyver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"

  "python$_pyver" setup.py install --root="$pkgdir" --optimize=1

  mv "$pkgdir/usr/lib/python$_pyver/site-packages"/{README.rst,requirements*,searx}

  mkdir -p "$pkgdir/etc/$pkgname"
  mv "$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/settings.yml" "$pkgdir/etc/$pkgname/"
  ln -s "/etc/$pkgname/settings.yml" "$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/settings.yml"

Jake commented on 2020-02-14 12:55 (UTC)

@MagicTheRipper: Looks fine, no errors there. But i doubt that this is the current log, yesterday was February 13 and your log ends on Feb 10. Probably you did not scroll down (or just press end).

MagicTheRipper commented on 2020-02-13 19:52 (UTC)

@Jake Here u Go

https://privatebin.net/?8e132cd0178674cf#4sRuCyrW8L5NtzRZfbq9WkwMoMFADWySUDmWpgVdSGYw