ulauncher-docsearch icon indicating copy to clipboard operation
ulauncher-docsearch copied to clipboard

[Bug]: Failure with an error: ModuleNotFoundError: No module named 'docsearch.models'

Open pablomalo opened this issue 2 years ago • 2 comments

Failure with an error: ModuleNotFoundError: No module named 'docsearch.models

Hello, and thank you for this exciting extension.

I cannot get it to work, however.

I am running ULauncher v.5.14.4 on Ubuntu 22.04. Algoliasearch is installed.

➜  ~ pip show algoliasearch
Name: algoliasearch
Version: 2.4.0
Summary: Algolia Search API Client for Python.
Home-page: https://github.com/algolia/algoliasearch-client-python
Author: Algolia Team
Author-email: [email protected]
License: MIT
Location: /home/paul/.local/lib/python3.10/site-packages
Requires: requests
Required-by: 

Nevertheless the docs keyword elicits no reaction and the logs (attached) complain that a module is not found. Any clues as to what I might be missing?

Extension Logs

➜  ~ ulauncher -v --dev |& grep docsearch
2022-07-09 18:55:26,988 | INFO | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" started. PID 43079
2022-07-09 18:55:28,019 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" exited with code 1. Restarting...
2022-07-09 18:55:28,019 | INFO | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" started. PID 43128
2022-07-09 18:55:28,246 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" exited instantly with code 1
2022-07-09 18:55:28,246 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" failed with an error: ModuleNotFoundError: No module named 'docsearch.models'

pablomalo avatar Jul 09 '22 17:07 pablomalo

@pablomalo FYI Version 1.1.0 Works quite perfectly you can download fron here

https://github.com/brpaz/ulauncher-docsearch/releases

manuglopez avatar Jul 21 '22 09:07 manuglopez

Thanks for the heads up, @manuglopez .

I can confirm that by cloning the repo to ~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-docsearch (on Ubuntu 22.04) and checking out v1.1.0, then restarting ULauncher, the plugin works.

Leaving this open as there is obviously a regression in the latest release.

pablomalo avatar Jul 22 '22 01:07 pablomalo