summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-10-23 09:27:14 +0200
committerGitHub <noreply@github.com>2025-10-23 09:27:14 +0200
commite363db970c77e9cab8f3611bb6b6f8a59646a035 (patch)
tree9ddcae7a34341a86ccf49b96509a6458ef702ae1
parent16293132e35621f9e32491b2b129fa0758e1932f (diff)
[fix] Installation Script install fails (msgspec) (#5358)
Since #5280 has been merged, msgspec, like yaml, is a fixed part of the SearXNG *settings framework* and therefore, like yaml, must be installed in the virtual environment before installing SearXNG (``searx``). The actual reason is that in SearXNG we store settings in the configuration that are required for the installation of the ``searx`` package. This means that these settings (from settings.yml) are read in during the installation, and all the necessary tools for this (pyyaml, msgspec, setuptools, etc.) must be installed beforehand (chicken or the egg dilemma). Related: - https://github.com/searxng/searxng/pull/5353 - https://github.com/searxng/searxng/pull/5346 - https://github.com/searxng/searxng/pull/5280 - https://github.com/searxng/searxng/pull/5254 Closes: https://github.com/searxng/searxng/issues/5357 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rwxr-xr-xutils/searxng.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/searxng.sh b/utils/searxng.sh
index 82ba0d548..598d3bb48 100755
--- a/utils/searxng.sh
+++ b/utils/searxng.sh
@@ -553,6 +553,7 @@ pip install -U pip
pip install -U setuptools
pip install -U wheel
pip install -U pyyaml
+pip install -U msgspec
pip install -U --use-pep517 --no-build-isolation -e .
EOF
rst_para "update instance's settings.yml from ${SEARXNG_SETTINGS_PATH}"