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
103 stars 13 forks source link

Nothing but math is working #45

Closed mohammad17112003 closed 5 months ago

mohammad17112003 commented 1 year ago

No currency or unit conversion

Alonely0 commented 1 year ago

Same on python 3.11.0. I'll leave a traceback here:

com.github.tchar.ulauncher-albert-calculate-anything | 2023-01-22 01:56:35,604 | ERROR | calculate_anything.query.handlers.multi_handler: _handle() | Exception in handler: UnitsQueryHandler: 'currency' is not defined in the unit registry
Traceback (most recent call last):
  File "/home/guillem/.local/share/ulauncher/extensions/com.github.tchar.ulauncher-albert-calculate-anything/calculate_anything/query/handlers/multi_handler.py", line 55, in _handle
    result = handler.handle(query)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/home/guillem/.local/share/ulauncher/extensions/com.github.tchar.ulauncher-albert-calculate-anything/calculate_anything/query/handlers/base.py", line 23, in _wrapper
    return func(self, query, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guillem/.local/share/ulauncher/extensions/com.github.tchar.ulauncher-albert-calculate-anything/calculate_anything/query/handlers/base.py", line 57, in handle
    return self.handle_raw(query, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guillem/.local/share/ulauncher/extensions/com.github.tchar.ulauncher-albert-calculate-anything/calculate_anything/query/handlers/units.py", line 240, in handle_raw
    with ureg.context('currency'):
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/context/registry.py", line 301, in context
    self.enable_contexts(*names, **kwargs)
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/context/registry.py", line 242, in enable_contexts
    self._switch_context_cache_and_units()
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/context/registry.py", line 151, in _switch_context_cache_and_units
    self._redefine(definition)
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/context/registry.py", line 175, in _redefine
    dims_old = self._get_dimensionality(basedef.reference)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/plain/registry.py", line 660, in _get_dimensionality
    self._get_dimensionality_recurse(input_units, 1, accumulator)
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/plain/registry.py", line 681, in _get_dimensionality_recurse
    reg = self._units[self.get_name(key)]
                      ^^^^^^^^^^^^^^^^^^
  File "/home/guillem/.local/lib/python3.11/site-packages/pint/facets/plain/registry.py", line 588, in get_name
    raise UndefinedUnitError(name_or_alias)
pint.errors.UndefinedUnitError: 'currency' is not defined in the unit registry
securegh commented 1 year ago

No currency or unit conversion is working for me as well 😥

Nakamerica commented 1 year ago

I have the same issue.

stingray21 commented 1 year ago

same for me, there has been #42 open since last Dec, but unfortunately no fix yet

7549brijesh commented 1 year ago

now I am started thinking that this project has been abandoned anyone here to say me that my statement is wrong?

gvrs9 commented 1 year ago

I am also facing the same issue!!

PrathamBhatTech commented 1 year ago

I have the same issue.

stingray21 commented 1 year ago

Is there any hope for this to get fixed? It would be pretty sad for this great extension to die. but in the current state it is almost useless, at least for my use cases.

Danie10 commented 1 year ago

Maybe @tchar can respond? I just started using Ulauncher and this looked like a really useful extension.

stingray21 commented 1 year ago

It is (was) a very useful extension, unfortunately just not with this bug 😢

arunstop commented 1 year ago

2 weeks ago, this works perfectly, now it's just dead? I wonder if it's some dependency problem?

igorsantos07 commented 10 months ago

I can confirm this is a dupe of #42 for me - you can find the error dump if you execute ulauncher from CLI.

tchar commented 5 months ago

Can you try reinstalling the app and letting me know if it worked? I posed a fix #48 and also in #46 I explain what is happening here