brpaz / ulauncher-docsearch

Ulauncher extension for doing full text search on Documentation sites, powered by Algolia.
MIT License
24 stars 6 forks source link

[Bug]: The extension crashed #11

Open manuglopez opened 2 years ago

manuglopez commented 2 years ago

Description?

I have installe reuired extension

Name: algoliasearch Version: 2.6.2 Summary: Algolia Search API Client for Python. Home-page: https://github.com/algolia/algoliasearch-client-python Author: Algolia Team Author-email: support@algolia.com License: MIT Location: /home/mglopez/.local/lib/python3.9/site-packages Requires: requests Required-by:

And the result is

The extension crashed because it could not import module algoliasearch. Try installing this module manually: pip3 install algoliasearch --user and then restart Ulauncher. If that doesn't help, report the issue.

I do not know python for making any modification on extension and for debug it.

Thanks for your work.

Extension Logs

2022-07-20 08:52:44,479 | INFO | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" started. PID 335910
2022-07-20 08:52:44,662 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" exited instantly with code 1
2022-07-20 08:52:44,662 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docsearch" failed with an error: ModuleNotFoundError: No module named 'algoliasearch'
manuglopez commented 2 years ago

I think you Have a problem with this line in searcher.py

from docsearch.models import DocSet

There is no models module in docsearch module. Docset is unresolved.