Closed mohammad17112003 closed 5 months 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
No currency or unit conversion is working for me as well 😥
I have the same issue.
same for me, there has been #42 open since last Dec, but unfortunately no fix yet
now I am started thinking that this project has been abandoned anyone here to say me that my statement is wrong?
I am also facing the same issue!!
I have the same issue.
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.
Maybe @tchar can respond? I just started using Ulauncher and this looked like a really useful extension.
It is (was) a very useful extension, unfortunately just not with this bug 😢
2 weeks ago, this works perfectly, now it's just dead? I wonder if it's some dependency problem?
I can confirm this is a dupe of #42 for me - you can find the error dump if you execute ulauncher
from CLI.
No currency or unit conversion