From c4a98862bf3f8d94464eede4fa89bbf05997e930 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 16 Jan 2021 08:58:13 +0100 Subject: [PATCH] [fix] setup.py requires pyyaml installed pip install -e . ... Obtaining file:///usr/local/searx/searx-src ERROR: Command errored out with exit status 1: command: /usr/local/searx/searx-pyenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/usr/local/searx/searx-src/setup.py'"'"'; __file__='"'"'/usr/local/searx/searx-src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vzer91m2 cwd: /usr/local/searx/searx-src/ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "/usr/local/searx/searx-src/setup.py", line 10, in from searx.version import VERSION_STRING File "/usr/local/searx/searx-src/searx/__init__.py", line 19, in import searx.settings_loader File "/usr/local/searx/searx-src/searx/settings_loader.py", line 8, in import yaml ModuleNotFoundError: No module named 'yaml' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Signed-off-by: Markus Heiser --- docs/build-templates/searx.rst | 1 + utils/searx.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/build-templates/searx.rst b/docs/build-templates/searx.rst index fe82ec3d0..e06bc2c6a 100644 --- a/docs/build-templates/searx.rst +++ b/docs/build-templates/searx.rst @@ -116,6 +116,7 @@ ${fedora_build} pip install -U pip pip install -U setuptools pip install -U wheel + pip install -U pyyaml # jump to searx's working tree and install searx into virtualenv (${SERVICE_USER})$ cd \"$SEARX_SRC\" diff --git a/utils/searx.sh b/utils/searx.sh index 134f0dbb1..f85935fa2 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -333,6 +333,7 @@ git pull pip install -U pip pip install -U setuptools pip install -U wheel +pip install -U pyyaml pip install -U -e . EOF install_settings @@ -503,6 +504,7 @@ EOF pip install -U pip pip install -U setuptools pip install -U wheel +pip install -U pyyaml pip install -U -e . cd ${SEARX_SRC} pip install -e .