khal icon indicating copy to clipboard operation
khal copied to clipboard

RuntimeError: You need Click 5.0.

Open muralikodali opened this issue 3 years ago • 3 comments

I have recently installed python 3.10.4 and upgraded all packages.

khal list

is giving following error :

Traceback (most recent call last):
  File "/home/murali/.local/bin/khal", line 5, in <module>
    from khal.cli import main_khal
  File "/home/murali/.local/lib/python3.10/site-packages/khal/cli.py", line 31, in <module>
    import click_log
  File "/home/murali/.local/lib/python3.10/site-packages/click_log/__init__.py", line 10, in <module>
    raise RuntimeError('You need Click 5.0.')
RuntimeError: You need Click 5.0.

click version is : 8.1.3

muralikodali avatar May 19 '22 06:05 muralikodali

Not an issue for me with click 8.1.3.

Just to confirm you don't have multiple pythons/clicks, can you check the following:

  • pip --version points to /home/murali/.local/lib/python3.10/site-packages/pip
  • pip freeze | grep click shows 8.1.3

WhyNotHugo avatar May 19 '22 15:05 WhyNotHugo

$ pip --version
pip 22.1 from /home/murali/.local/lib/python3.10/site-packages/pip (python 3.10)
$ pip freeze | grep click
click==8.1.3
click-didyoumean==0.3.0
click-log==0.3.2
click-plugins==1.1.1
click-repl==0.2.0
click-spinner==0.1.10
click-threading==0.5.0

muralikodali avatar May 19 '22 16:05 muralikodali

Odd. The versions all seem correct, and it doesn't look like different environments are being mixed up.

If you run a python shell and then run import click; print(click.__version__), does that match? What does hasattr(click, 'get_current_context') show?

WhyNotHugo avatar May 20 '22 07:05 WhyNotHugo

Please re-open if this continues to be an issue.

geier avatar Jun 03 '23 21:06 geier