Hi Anonymousellama21,

Quoting Anonymousellama21 (2022-03-13 04:36:19)
> Dear Maintainer,
> 
> I've just installed searx and ran "searx-run" and got the following error:
> anon@anon:/$ searx-run
> Traceback (most recent call last):
>   File "/usr/bin/searx-run", line 33, in <module>
>     sys.exit(load_entry_point('searx==1.0.0', 'console_scripts', 
> 'searx-run')())
>   File "/usr/bin/searx-run", line 25, in importlib_load_entry_point
>     return next(matches).load()
>   File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
>     module = import_module(match.group('module'))
>   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File "/usr/lib/python3/dist-packages/searx/__init__.py", line 27, in 
> <module>
>     settings, settings_load_message = searx.settings_loader.load_settings()
>   File "/usr/lib/python3/dist-packages/searx/settings_loader.py", line 117, 
> in load_settings
>     return (load_yaml(default_settings_path),
>   File "/usr/lib/python3/dist-packages/searx/settings_loader.py", line 24, in 
> load_yaml
>     with open(file_name, 'r', encoding='utf-8') as settings_yaml:
> TypeError: expected str, bytes or os.PathLike object, not NoneType

this looks like you don't have a /etc/searx/settings.yml. The problem should be
fixed after you copy /usr/share/doc/searx/examples/settings.yml to
/etc/searx/settings.yml and adapt the configuration to your needs.

I also brought up the issue with upstream:
https://github.com/searx/searx/issues/3184

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to