SearXNG LXC Community Script failing #1584

Closed
opened 2026-02-05 01:40:55 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @TegridyPharm on GitHub (Sep 5, 2025).

Have you read and understood the above guidelines?

yes

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

SearXNG LXC

📂 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

📈 Which Proxmox version are you on?

pve-manager/9.0.6/49c767b70aeb6648 (running kernel: 6.14.11-1-pve)

📝 Provide a clear and concise description of the issue.

When running the community script in either Default or Advanced Setting mode, it fails when it tries to do stuff with "lxml".

searxng_commscript_error_output.log

🔄 Steps to reproduce the issue.

Run the script in either Default or Advanced setting mode. It will fail when it gets to the part where it tries doing something with "lxml".

Please see attached shell error output log for trace information.

Paste the full error output (if available).

Full error trace log is attached to issue in file.

🖼️ Additional context (optional).

No response

Originally created by @TegridyPharm on GitHub (Sep 5, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? SearXNG LXC ### 📂 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 ### 📈 Which Proxmox version are you on? pve-manager/9.0.6/49c767b70aeb6648 (running kernel: 6.14.11-1-pve) ### 📝 Provide a clear and concise description of the issue. When running the community script in either Default or Advanced Setting mode, it fails when it tries to do stuff with "lxml". [searxng_commscript_error_output.log](https://github.com/user-attachments/files/22181201/searxng_commscript_error_output.log) ### 🔄 Steps to reproduce the issue. Run the script in either Default or Advanced setting mode. It will fail when it gets to the part where it tries doing something with "lxml". Please see attached shell error output log for trace information. ### ❌ Paste the full error output (if available). Full error trace log is attached to issue in file. ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 01:40:55 +03:00
Author
Owner

@mrponzo commented on GitHub (Sep 6, 2025):

have the same issue

@mrponzo commented on GitHub (Sep 6, 2025): have the same issue
Author
Owner

@tremor021 commented on GitHub (Sep 6, 2025):

We need you to run the script in verbose mode so it shows the error output

@tremor021 commented on GitHub (Sep 6, 2025): We need you to run the script in verbose mode so it shows the error output
Author
Owner

@mrponzo commented on GitHub (Sep 6, 2025):

`Obtaining file:///usr/local/searxng/searxng-src
Checking if build backend supports build_editable ... done
Preparing editable metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing editable metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [28 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
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 209, in prepare_metadata_for_build_editable
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 478, in prepare_metadata_for_build_editable
return self.prepare_metadata_for_build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
self.run_setup()
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 6, in
File "/usr/local/searxng/searxng-src/searx/init.py", line 137, in
init_settings()
File "/usr/local/searxng/searxng-src/searx/init.py", line 38, in init_settings
from searx import settings_loader
File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 28, in
from searx.exceptions import SearxSettingsException
File "/usr/local/searxng/searxng-src/searx/exceptions.py", line 6, in
from lxml.etree import XPath
ModuleNotFoundError: No module named 'lxml'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

[ERROR] in line 36: exit code 0: while executing command sudo -H -u searxng bash -c '
python3 -m venv /usr/local/searxng/searx-pyenv &&
. /usr/local/searxng/searx-pyenv/bin/activate &&
pip install -U pip setuptools wheel pyyaml &&
pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
'

[ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

@mrponzo commented on GitHub (Sep 6, 2025): `Obtaining file:///usr/local/searxng/searxng-src Checking if build backend supports build_editable ... done Preparing editable metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing editable metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [28 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 209, in prepare_metadata_for_build_editable return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 478, in prepare_metadata_for_build_editable return self.prepare_metadata_for_build_wheel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel self.run_setup() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/usr/local/searxng/searx-pyenv/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 137, in <module> init_settings() File "/usr/local/searxng/searxng-src/searx/__init__.py", line 38, in init_settings from searx import settings_loader File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 28, in <module> from searx.exceptions import SearxSettingsException File "/usr/local/searxng/searxng-src/searx/exceptions.py", line 6, in <module> from lxml.etree import XPath ModuleNotFoundError: No module named 'lxml' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [ERROR] in line 36: exit code 0: while executing command sudo -H -u searxng bash -c ' python3 -m venv /usr/local/searxng/searx-pyenv && . /usr/local/searxng/searx-pyenv/bin/activate && pip install -U pip setuptools wheel pyyaml && pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src ' [ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"
Author
Owner

@Baumart commented on GitHub (Sep 7, 2025):

Creating Python virtual environment Preparing editable metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing editable metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [28 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
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 209, in prepare_metadata_for_build_editable
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 478, in prepare_metadata_for_build_editable
return self.prepare_metadata_for_build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
self.run_setup()
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 6, in
File "/usr/local/searxng/searxng-src/searx/init.py", line 137, in
init_settings()
File "/usr/local/searxng/searxng-src/searx/init.py", line 38, in init_settings
from searx import settings_loader
File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 28, in
from searx.exceptions import SearxSettingsException
File "/usr/local/searxng/searxng-src/searx/exceptions.py", line 6, in
from lxml.etree import XPath
ModuleNotFoundError: No module named 'lxml'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
⠼ Creating Python virtual environmenterror: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
⠴ Creating Python virtual environment
[ERROR] in line 36: exit code 0: while executing command sudo -H -u searxng bash -c '
python3 -m venv /usr/local/searxng/searx-pyenv &&
. /usr/local/searxng/searx-pyenv/bin/activate &&
pip install -U pip setuptools wheel pyyaml &&
pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
'
⠦ Creating Python virtual environment
[ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

Same error for me.

@Baumart commented on GitHub (Sep 7, 2025): Creating Python virtual environment Preparing editable metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing editable metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [28 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 209, in prepare_metadata_for_build_editable return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 478, in prepare_metadata_for_build_editable return self.prepare_metadata_for_build_wheel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel self.run_setup() File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/usr/local/searxng/searx-pyenv/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 137, in <module> init_settings() File "/usr/local/searxng/searxng-src/searx/__init__.py", line 38, in init_settings from searx import settings_loader File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 28, in <module> from searx.exceptions import SearxSettingsException File "/usr/local/searxng/searxng-src/searx/exceptions.py", line 6, in <module> from lxml.etree import XPath ModuleNotFoundError: No module named 'lxml' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ⠼ Creating Python virtual environmenterror: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ⠴ Creating Python virtual environment [ERROR] in line 36: exit code 0: while executing command sudo -H -u searxng bash -c ' python3 -m venv /usr/local/searxng/searx-pyenv && . /usr/local/searxng/searx-pyenv/bin/activate && pip install -U pip setuptools wheel pyyaml && pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src ' ⠦ Creating Python virtual environment [ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)" Same error for me.
Author
Owner

@sebguy commented on GitHub (Sep 8, 2025):

I've just submitted a fix for this (pull request #7469) - pip does not install the 'lxml' dependency causing the installation to fail.

Until the pull request is merged you can get around this issue by editing line 39 of the script:
pip install -U pip setuptools wheel pyyaml && to include the 'lxml' dependency.

The command should be:
pip install -U pip setuptools wheel pyyaml lxml &&

@sebguy commented on GitHub (Sep 8, 2025): I've just submitted a fix for this (pull request #7469) - pip does not install the 'lxml' dependency causing the installation to fail. Until the pull request is merged you can get around this issue by editing line 39 of the script: `pip install -U pip setuptools wheel pyyaml &&` to include the 'lxml' dependency. The command should be: `pip install -U pip setuptools wheel pyyaml lxml &&`
Author
Owner

@michelroegl-brunner commented on GitHub (Sep 8, 2025):

The fix is merged.

@michelroegl-brunner commented on GitHub (Sep 8, 2025): The fix is merged.
Author
Owner

@TegridyPharm commented on GitHub (Sep 8, 2025):

Works perfectly now - thanks so much for fixing it sebguy.

@TegridyPharm commented on GitHub (Sep 8, 2025): Works perfectly now - thanks so much for fixing it sebguy.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1584