Package Details: searx 0.17.0-1

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://asciimoo.github.io/searx/
Licenses: AGPL
Conflicts: searx-git
Replaces: searx-py3
Submitter: Jake
Maintainer: Jake
Last Packager: Jake
Votes: 20
Popularity: 0.57
First Submitted: 2016-09-07 11:42
Last Updated: 2020-07-10 10:53

Latest Comments

1 2 3 4 5 6 Next › Last »

Jake commented on 2020-02-21 20:07

@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

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

@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

@Jake Here u Go

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

Jake commented on 2020-02-13 19:36

@MagicTheRipper: Post the log output from journalctl -u uwsgi@searx.service, please. Otherwise it is impossible to debug.

MagicTheRipper commented on 2020-02-13 19:03

Im having an error when I connect to localhost:8888,it shows this "Internal Server Error" as a result on my browser

Any fix

Jake commented on 2020-02-13 11:58

@noctux: Thanks a lot for the patch, i have applied it now (pkgrel=2).

noctux commented on 2020-02-13 08:55

Breaks with recent releases of werkzeug 1.0.0. Upstream has a patch: https://github.com/asciimoo/searx/commit/b8b13372c8fd3bfe978a1c724ab98b05348df054

Update for the pkgbuild:

diff --git a/0003-Fix-deprecated-werkzeug-import.patch b/0003-Fix-deprecated-werkzeug-import.patch
new file mode 100644
index 0000000..ca6e27c
--- /dev/null
+++ b/0003-Fix-deprecated-werkzeug-import.patch
@@ -0,0 +1,43 @@
+From b8b13372c8fd3bfe978a1c724ab98b05348df054 Mon Sep 17 00:00:00 2001
+Message-Id: <b8b13372c8fd3bfe978a1c724ab98b05348df054.1581582658.git.git@rationality.eu>
+In-Reply-To: <a818d3241df2cf010086f837a504b11983c3d55f.1581582658.git.git@rationality.eu>
+References: <a818d3241df2cf010086f837a504b11983c3d55f.1581582658.git.git@rationality.eu>
+From: Nicolas Gelot <nicolas.gelot@e.email>
+Date: Thu, 6 Feb 2020 22:40:58 +0100
+Subject: [PATCH 3/6] Fix deprecated werkzeug import
+
+Close: #1830
+Signed-off-by: Nicolas Gelot <nicolas.gelot@e.email>
+---
+ requirements.txt | 2 +-
+ searx/webapp.py  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/requirements.txt b/requirements.txt
+index 6e4df37a..ea4a5a7a 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -1,6 +1,6 @@
+ certifi==2019.3.9
+ babel==2.7.0
+-flask-babel==0.12.2
++flask-babel==1.0.0
+ flask==1.0.2
+ idna==2.8
+ jinja2==2.10.1
+diff --git a/searx/webapp.py b/searx/webapp.py
+index aadefe6b..5ed9f127 100644
+--- a/searx/webapp.py
++++ b/searx/webapp.py
+@@ -47,7 +47,7 @@ except:
+     from html import escape
+ from datetime import datetime, timedelta
+ from time import time
+-from werkzeug.contrib.fixers import ProxyFix
++from werkzeug.middleware.proxy_fix import ProxyFix
+ from flask import (
+     Flask, request, render_template, url_for, Response, make_response,
+     redirect, send_from_directory
+-- 
+2.25.0
+
diff --git a/PKGBUILD b/PKGBUILD
index 369ce74..8b0a835 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,24 +27,31 @@ replaces=('searx-py3')
 backup=('etc/searx/settings.yml' 'etc/uwsgi/searx.ini')
 source=("https://github.com/asciimoo/searx/archive/v$pkgver.zip"
         'searx.ini'
-        'searx.sysusers')
+        'searx.sysusers'
+        '0003-Fix-deprecated-werkzeug-import.patch')
 sha512sums=('3ae4e4c295830e65eefbd39ed9885b60a42a4d4db4d87c179ace76cf43f8c75d49f1363f019bedd135c0597191612e16592cacd159ae97a42a25dcc2fee9d00b'
             '6e1e7771e747e2bcb9cbc3e5ec9735461b6d791c0c0412e06e7dd802c18625edd0916de32164bf780c18ef7b6a87f55ed1e917377b3adb2bf53c0344f34b49e8'
-            '6856e26451fe053d37c2ce4b9d5f3b35891dd8ec702c5256c02d04415124c57705abc497f12943948a85621bb0238d26c2c1f3a7bf42404a6ff1487c7655909e')
+            '6856e26451fe053d37c2ce4b9d5f3b35891dd8ec702c5256c02d04415124c57705abc497f12943948a85621bb0238d26c2c1f3a7bf42404a6ff1487c7655909e'
+            '064738f57b8bfbd937d56c592f7321140aab5f894e8ea457ae0d2d9407523f58471f4ba7424968f1d6db7fe51e4f8d360d1e997284eeb7b8528dbcf10f5f12dd')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch --forward --strip=1 --input="${srcdir}/0003-Fix-deprecated-werkzeug-import.patch"
+}

 package() {
   cd $srcdir/$pkgname-$pkgver

   # Allow newer versions of the dependencies
   sed -i "s|==|>=|g" requirements.txt
-  
+
   # Generate a random secret key
   sed -i -e "s/ultrasecretkey\" # change this!/`openssl rand -hex 32`\"/g" $pkgname/settings.yml

   python3.8 setup.py install --root=$pkgdir --optimize=1
-  
+
   mv $pkgdir/usr/lib/python3.8/site-packages/{README.rst,requirements*,searx}
-  
+
   mkdir -p $pkgdir/etc/$pkgname
   mv $pkgdir/usr/lib/python3.8/site-packages/$pkgname/settings.yml $pkgdir/etc/$pkgname/
   ln -s /etc/$pkgname/settings.yml $pkgdir/usr/lib/python3.8/site-packages/$pkgname/settings.yml

bjo commented on 2019-12-03 07:00

@GI_Jack run systemctl start uwsgi@searx

GI_Jack commented on 2019-12-03 02:18

add systemd package for running this as a daemon.