tchar / ulauncher-albert-calculate-anything

A ULauncher/Albert extension that supports currency, units and date time conversion, as well as a calculator that supports complex numbers and functions.
MIT License
101 stars 13 forks source link

Calculate Anything extension crashed [ULauncher] #58

Open toriacx opened 1 month ago

toriacx commented 1 month ago

Describe the bug

Calculate Anything extension crashed after I added it to ULauncher

To Reproduce

I just added the extension and that happened.

Logs

I couldn't find any logs at ~/.cache/com.github.tchar.calculate-anything/log.

Screenshots

image

Desktop

Additional context

I am not a expert when it comes to installing python packages... especially on linux. I don't know what is the best way to install pip packages as of PEP668. I tried to install the dependencies (requests pint simpleeval parsedatetime) by creating a venv in /usr/local/venv. If you have any better way of installing pip packages, feel free to tell me... Maybe the dependencies aren't recognised by the extension.

tchar commented 1 month ago

I am not sure if Ulauncher dev team has enabled a virtualenv per extension, but for now you should install the dependencies using python -m pip install/python3 -m pip install outside of virtual environments

lucagouty commented 1 month ago

In my case, this did the trick :

sudo apt install python3-pint python3-simpleeval python3-parsedatetime python3-tz
sebastian-65 commented 1 month ago

Updating these fixed it for me on Arch:


yay -Sy --needed python-pint  python-simpleeval python-parsedatetime python-pytz