SearXNG script fails to complete #882

Closed
opened 2026-02-04 22:03:16 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @krestaino on GitHub (Apr 30, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

SearXNG

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

The script fails using both Default Settings and Advanced Settings.

🔄 Steps to reproduce the issue.

Step 1: Run the script (bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)")
Step 2: Script fails at step "Setup SearXNG"

Paste the full error output (if available).

Default Settings:

   _____                _  __ _   ________
  / ___/___  ____ _____| |/ // | / / ____/
  \__ \/ _ \/ __ `/ ___/   //  |/ / / __  
 ___/ /  __/ /_/ / /  /   |/ /|  / /_/ /  
/____/\___/\__,_/_/  /_/|_/_/ |_/\____/   
                                          
  ⚙️  Using Default Settings on node pve-01
  🖥️  Operating System: debian
  🌟  Version: 12
  📦  Container Type: Unprivileged
  💾  Disk Size: 7 GB
  🧠  CPU Cores: 2
  🛠️  RAM Size: 2048 MiB
  🆔  Container ID: 100
  🚀  Creating a SearXNG LXC using the above default settings
  
  ✔️  Using tank-zfs for Template Storage.
  ✔️  Using local-zfs for Container Storage.
  ✔️  Updated LXC Template List
  ✔️  LXC Template is ready to use.
  ✔️  LXC Container 100 was successfully created.
  ✔️   Started LXC Container
  ✔️  Set up Container OS
  ✔️  Network Connected: 2600:480a:3a13:1c00:be24:11ff:fe4f:7391 
  ✔️  IPv4 Internet Connected
  ✔️  IPv6 Internet Connected
  ✔️  DNS Resolved github.com to 140.82.113.3
  ✔️  Updated Container OS
  ✔️  Core dependencies installed
  ✔️  Installed Dependencies
  ✔️  Setup Python3
 ⠧ Setup SearXNG 
[ERROR] in line 50: exit code 0: while executing command "$@" > /dev/null 2>&1
The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output.

/dev/fd/63: line 72: SPINNER_PID: unbound variable

Advanced Settings:

Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf)
  Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
 ⠧Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf)
  Downloading anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)
Downloading babel-2.17.0-py3-none-any.whl (10.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 31.8 MB/s eta 0:00:00
Downloading Brotli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 30.9 MB/s eta 0:00:00
Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
Downloading fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298 kB)
 ⠸Downloading flask-3.1.0-py3-none-any.whl (102 kB)
Downloading flask_babel-4.0.0-py3-none-any.whl (9.6 kB)
Downloading httpx-0.24.1-py3-none-any.whl (75 kB)
Downloading httpx_socks-0.7.7-py3-none-any.whl (12 kB)
 ⠼Downloading isodate-0.7.2-py3-none-any.whl (22 kB)
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
Downloading lxml-5.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 31.3 MB/s eta 0:00:00
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Downloading msgspec-0.19.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (210 kB)
Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 27.3 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading redis-5.0.8-py3-none-any.whl (255 kB)
 ⠇Downloading setproctitle-1.3.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31 kB)
Downloading typer_slim-0.15.2-py3-none-any.whl (45 kB)
Downloading uvloop-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 30.8 MB/s eta 0:00:00
 ⠋Downloading h2-4.2.0-py3-none-any.whl (60 kB)
Downloading hpack-4.1.0-py3-none-any.whl (34 kB)
Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)
Downloading anyio-4.9.0-py3-none-any.whl (100 kB)
 ⠙Downloading h11-0.14.0-py3-none-any.whl (58 kB)
Downloading hyperframe-6.1.0-py3-none-any.whl (13 kB)
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
 ⠹Downloading async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Downloading blinker-1.9.0-py3-none-any.whl (8.5 kB)
Downloading click-8.1.8-py3-none-any.whl (98 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
 ⠸Downloading MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
Downloading python_socks-2.7.1-py3-none-any.whl (54 kB)
Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB)
 ⠼Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB)
Downloading werkzeug-3.1.3-py3-none-any.whl (224 kB)
 ⠴Installing collected packages: pytz, fasttext-predict, Brotli, uvloop, typing-extensions, sniffio, six, setproctitle, python-socks, pygments, msgspec, mdurl, MarkupSafe, lxml, itsdangerous, isodate, idna, hyperframe, hpack, h11, click, certifi, blinker, babel, async-timeout, Werkzeug, typer-slim, redis, python-dateutil, markdown-it-py, jinja2, h2, anyio, httpcore, flask, httpx, flask-babel, httpx-socks, searxng
 ⠧  DEPRECATION: Legacy editable install of searxng==2025.4.30+fd33559cf from file:///usr/local/searxng/searxng-src (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
  Running setup.py develop for searxng
 ⠏    error: subprocess-exited-with-error╸━ 38/39 [searxng]
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [102 lines of output]
        /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
        !!
        
                ********************************************************************************
                Please consider removing the following classifiers in favor of a SPDX license expression:
        
                License :: OSI Approved :: GNU Affero General Public License v3
        
                See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                ********************************************************************************
        
        !!
          self._finalize_license_expression()
        2025-04-30 15:14:06,871 INFO:root: running develop
        /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` and ``develop``.
                Instead, use standards-based tools like pip or uv.
        
                By 2025-Oct-31, you need to update your project and remove deprecated calls
                or your builds will no longer be supported.
        
                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************
        
        !!
          self.initialize_options()
        Obtaining file:///usr/local/searxng/searxng-src
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Checking if build backend supports build_editable: started
          Checking if build backend supports build_editable: finished with status 'done'
          Getting requirements to build editable: started
          Getting requirements to build editable: finished with status 'error'
          error: subprocess-exited-with-error
        
          × Getting requirements to build editable did not run successfully.
          │ exit code: 1
          ╰─> [27 lines of output]
              Traceback (most recent call last):
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
                  main()
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
                  json_out["return_val"] = hook(**hook_input["kwargs"])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
                  return hook(config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
                  return self.get_requires_for_build_wheel(config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
                  return self._get_build_requires(config_settings, requirements=[])
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
                  self.run_setup()
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
                  super().run_setup(setup_script=setup_script)
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
                  exec(code, locals())
                File "<string>", line 6, in <module>
                File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module>
                  import searx.settings_loader
                File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module>
                  import yaml
              ModuleNotFoundError: No module named 'yaml'
              [end of output]
        
          note: This error originates from a subprocess, and is likely not a problem with pip.
        error: subprocess-exited-with-error
        
        × Getting requirements to build editable did not run successfully.
        │ exit code: 1
        ╰─> See above for output.
        
        note: This error originates from a subprocess, and is likely not a problem with pip.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 35, in <module>
          File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module>
            setup(
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
            return run_commands(dist)
                   ^^^^^^^^^^^^^^^^^^
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
            dist.run_commands()
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
            self.run_command(cmd)
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command
            super().run_command(command)
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
            cmd_obj.run()
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run
            subprocess.check_call(cmd)
          File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [102 lines of output]
    /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!
    
            ********************************************************************************
            Please consider removing the following classifiers in favor of a SPDX license expression:
    
            License :: OSI Approved :: GNU Affero General Public License v3
    
            See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
            ********************************************************************************
    
    !!
      self._finalize_license_expression()
    2025-04-30 15:14:06,871 INFO:root: running develop
    /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``develop``.
            Instead, use standards-based tools like pip or uv.
    
            By 2025-Oct-31, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      self.initialize_options()
    Obtaining file:///usr/local/searxng/searxng-src
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Checking if build backend supports build_editable: started
      Checking if build backend supports build_editable: finished with status 'done'
      Getting requirements to build editable: started
      Getting requirements to build editable: finished with status 'error'
      error: subprocess-exited-with-error
    
      × Getting requirements to build editable did not run successfully.
      │ exit code: 1
      ╰─> [27 lines of output]
          Traceback (most recent call last):
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
              main()
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
              json_out["return_val"] = hook(**hook_input["kwargs"])
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
              return hook(config_settings)
                     ^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
              return self.get_requires_for_build_wheel(config_settings)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
              return self._get_build_requires(config_settings, requirements=[])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
              self.run_setup()
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
              super().run_setup(setup_script=setup_script)
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
              exec(code, locals())
            File "<string>", line 6, in <module>
            File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module>
              import searx.settings_loader
            File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module>
              import yaml
          ModuleNotFoundError: No module named 'yaml'
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    
    × Getting requirements to build editable did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 35, in <module>
      File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module>
        setup(
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
        return distutils.core.setup(**attrs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
        return run_commands(dist)
               ^^^^^^^^^^^^^^^^^^
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
        dist.run_commands()
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
        self.run_command(cmd)
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command
        super().run_command(command)
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
        cmd_obj.run()
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run
        subprocess.check_call(cmd)
      File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
 ⠋
[ERROR] in line 43: exit code 0: while executing command $STD pip install -e /usr/local/searxng/searxng-src
/dev/fd/63: line 72: SPINNER_PID: unbound variable

🖼️ Additional context (optional).

No response

Originally created by @krestaino on GitHub (Apr 30, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? SearXNG ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. The script fails using both **Default Settings** and **Advanced Settings**. ### 🔄 Steps to reproduce the issue. Step 1: Run the script (bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)") Step 2: Script fails at step "Setup SearXNG" ### ❌ Paste the full error output (if available). ### Default Settings: ``` _____ _ __ _ ________ / ___/___ ____ _____| |/ // | / / ____/ \__ \/ _ \/ __ `/ ___/ // |/ / / __ ___/ / __/ /_/ / / / |/ /| / /_/ / /____/\___/\__,_/_/ /_/|_/_/ |_/\____/ ⚙️ Using Default Settings on node pve-01 🖥️ Operating System: debian 🌟 Version: 12 📦 Container Type: Unprivileged 💾 Disk Size: 7 GB 🧠 CPU Cores: 2 🛠️ RAM Size: 2048 MiB 🆔 Container ID: 100 🚀 Creating a SearXNG LXC using the above default settings ✔️ Using tank-zfs for Template Storage. ✔️ Using local-zfs for Container Storage. ✔️ Updated LXC Template List ✔️ LXC Template is ready to use. ✔️ LXC Container 100 was successfully created. ✔️ Started LXC Container ✔️ Set up Container OS ✔️ Network Connected: 2600:480a:3a13:1c00:be24:11ff:fe4f:7391 ✔️ IPv4 Internet Connected ✔️ IPv6 Internet Connected ✔️ DNS Resolved github.com to 140.82.113.3 ✔️ Updated Container OS ✔️ Core dependencies installed ✔️ Installed Dependencies ✔️ Setup Python3 ⠧ Setup SearXNG [ERROR] in line 50: exit code 0: while executing command "$@" > /dev/null 2>&1 The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output. /dev/fd/63: line 72: SPINNER_PID: unbound variable ``` ### Advanced Settings: ``` Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf) Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB) ⠧Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf) Downloading anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB) Downloading babel-2.17.0-py3-none-any.whl (10.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 31.8 MB/s eta 0:00:00 Downloading Brotli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 30.9 MB/s eta 0:00:00 Downloading certifi-2025.1.31-py3-none-any.whl (166 kB) Downloading fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298 kB) ⠸Downloading flask-3.1.0-py3-none-any.whl (102 kB) Downloading flask_babel-4.0.0-py3-none-any.whl (9.6 kB) Downloading httpx-0.24.1-py3-none-any.whl (75 kB) Downloading httpx_socks-0.7.7-py3-none-any.whl (12 kB) ⠼Downloading isodate-0.7.2-py3-none-any.whl (22 kB) Downloading jinja2-3.1.6-py3-none-any.whl (134 kB) Downloading lxml-5.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 31.3 MB/s eta 0:00:00 Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB) Downloading msgspec-0.19.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (210 kB) Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 27.3 MB/s eta 0:00:00 Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) Downloading redis-5.0.8-py3-none-any.whl (255 kB) ⠇Downloading setproctitle-1.3.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31 kB) Downloading typer_slim-0.15.2-py3-none-any.whl (45 kB) Downloading uvloop-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 30.8 MB/s eta 0:00:00 ⠋Downloading h2-4.2.0-py3-none-any.whl (60 kB) Downloading hpack-4.1.0-py3-none-any.whl (34 kB) Downloading httpcore-0.17.3-py3-none-any.whl (74 kB) Downloading anyio-4.9.0-py3-none-any.whl (100 kB) ⠙Downloading h11-0.14.0-py3-none-any.whl (58 kB) Downloading hyperframe-6.1.0-py3-none-any.whl (13 kB) Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB) Downloading sniffio-1.3.1-py3-none-any.whl (10 kB) ⠹Downloading async_timeout-5.0.1-py3-none-any.whl (6.2 kB) Downloading blinker-1.9.0-py3-none-any.whl (8.5 kB) Downloading click-8.1.8-py3-none-any.whl (98 kB) Downloading idna-3.10-py3-none-any.whl (70 kB) Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB) ⠸Downloading MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB) Downloading python_socks-2.7.1-py3-none-any.whl (54 kB) Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB) ⠼Downloading six-1.17.0-py2.py3-none-any.whl (11 kB) Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB) Downloading werkzeug-3.1.3-py3-none-any.whl (224 kB) ⠴Installing collected packages: pytz, fasttext-predict, Brotli, uvloop, typing-extensions, sniffio, six, setproctitle, python-socks, pygments, msgspec, mdurl, MarkupSafe, lxml, itsdangerous, isodate, idna, hyperframe, hpack, h11, click, certifi, blinker, babel, async-timeout, Werkzeug, typer-slim, redis, python-dateutil, markdown-it-py, jinja2, h2, anyio, httpcore, flask, httpx, flask-babel, httpx-socks, searxng ⠧ DEPRECATION: Legacy editable install of searxng==2025.4.30+fd33559cf from file:///usr/local/searxng/searxng-src (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457 Running setup.py develop for searxng ⠏ error: subprocess-exited-with-error╸━ 38/39 [searxng] × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [102 lines of output] /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Affero General Public License v3 See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-04-30 15:14:06,871 INFO:root: running develop /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Obtaining file:///usr/local/searxng/searxng-src Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [27 lines of output] Traceback (most recent call last): File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 6, in <module> File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module> import searx.settings_loader File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module> import yaml ModuleNotFoundError: No module named 'yaml' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module> setup( File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command super().run_command(command) File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run subprocess.check_call(cmd) File "/usr/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [102 lines of output] /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Affero General Public License v3 See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-04-30 15:14:06,871 INFO:root: running develop /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Obtaining file:///usr/local/searxng/searxng-src Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [27 lines of output] Traceback (most recent call last): File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 6, in <module> File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module> import searx.settings_loader File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module> import yaml ModuleNotFoundError: No module named 'yaml' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module> setup( File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command super().run_command(command) File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run subprocess.check_call(cmd) File "/usr/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ⠋ [ERROR] in line 43: exit code 0: while executing command $STD pip install -e /usr/local/searxng/searxng-src /dev/fd/63: line 72: SPINNER_PID: unbound variable ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 22:03:16 +03:00
Author
Owner

@MickLesk commented on GitHub (Apr 30, 2025):

Looks Like an issue of searxng himself

@MickLesk commented on GitHub (Apr 30, 2025): Looks Like an issue of searxng himself
Author
Owner

@Diobyte commented on GitHub (May 1, 2025):

I am also getting this error and have been trying to troubleshoot. Updating and upgrading the Debian packages resolves this error using the manual sear installation. Somewhere a apt update/upgrade needs to be built in whether on sear or the scripts side.

I was also getting a similar error with open webui and I believe any script with Python is going to cause issues until fixed.

--- a/searxng.sh
+++ b/searxng.sh
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
+# Initialize spinner PID to avoid "unbound variable" error
+SPINNER_PID=
+
 set -euo pipefail
 trap cleanup EXIT

@@ -40,7 +43,11 @@
   activate_venv

-  pip install -e /usr/local/searxng/searxng-src
+  # ensure PyYAML is available for setup.py
+  pip install pyyaml
+
+  # now install SearxNG in editable mode
+  pip install -e /usr/local/searxng/searxng-src --use-pep517 --no-deps

   deactivate_venv
 }
@@ -68,7 +75,11 @@
 cleanup() {
-  kill "$SPINNER_PID"
+  # only kill spinner if it ever got started
+  if [ -n "$SPINNER_PID" ]; then
+    kill "$SPINNER_PID" 2>/dev/null || true
+  fi

   # … other cleanup steps …
 }

@Diobyte commented on GitHub (May 1, 2025): I am also getting this error and have been trying to troubleshoot. Updating and upgrading the Debian packages resolves this error using the manual sear installation. Somewhere a apt update/upgrade needs to be built in whether on sear or the scripts side. I was also getting a similar error with open webui and I believe any script with Python is going to cause issues until fixed. ``` --- a/searxng.sh +++ b/searxng.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +# Initialize spinner PID to avoid "unbound variable" error +SPINNER_PID= + set -euo pipefail trap cleanup EXIT @@ -40,7 +43,11 @@ activate_venv - pip install -e /usr/local/searxng/searxng-src + # ensure PyYAML is available for setup.py + pip install pyyaml + + # now install SearxNG in editable mode + pip install -e /usr/local/searxng/searxng-src --use-pep517 --no-deps deactivate_venv } @@ -68,7 +75,11 @@ cleanup() { - kill "$SPINNER_PID" + # only kill spinner if it ever got started + if [ -n "$SPINNER_PID" ]; then + kill "$SPINNER_PID" 2>/dev/null || true + fi # … other cleanup steps … } ```
Author
Owner

@tremor021 commented on GitHub (May 1, 2025):

yea, but you shouldnt have to do that. Its app dependency. Devs should take care of that

@tremor021 commented on GitHub (May 1, 2025): yea, but you shouldnt have to do that. Its app dependency. Devs should take care of that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#882