calendar-cli icon indicating copy to clipboard operation
calendar-cli copied to clipboard

ImportError: No module named tzlocal

Open Pupo1 opened this issue 6 years ago • 5 comments

When I try to start calendar-cli on Linux Mint 17 Qiana, I get the error "ImportError: No module named tzlocal". I can fix this with "sudo pip install tzlocal", but I think the error should not happen at all. Having fixed the error, I run into the next error "ImportError: No module named icalendar". I can fix that with "sudo pip install icalendar", but most people would probably have given up there already. Having fixed that error, I run into the next error "ImportError: No module named caldav", which makes me think about trying khal instead. I was able to fix the error with "sudo pip install caldav", though.

Pupo1 avatar Sep 29 '18 16:09 Pupo1

How did you install it? Both icalendar and tzlocal is listed as requirements in the setup.py file

tobixen avatar Sep 29 '18 19:09 tobixen

I think I didn't install it at all but just started calendar-cli.py

Pupo1 avatar Sep 30 '18 18:09 Pupo1

I think that if following the instructions in INSTALL.md this shouldn't be an issue at all :-)

tobixen avatar May 05 '20 12:05 tobixen

Traceback (most recent call last): File "run.py", line 4, in from vnpy.trader.engine import MainEngine File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy-2.6.0-py3.7.egg/vnpy/trader/engine.py", line 45, in from .setting import SETTINGS File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy-2.6.0-py3.7.egg/vnpy/trader/setting.py", line 7, in from tzlocal import get_localzone ModuleNotFoundError: No module named 'tzlocal'

huoshanwei avatar Oct 11 '21 08:10 huoshanwei

Oh. In setup.py, tzlocal is not installed when using python3, because with python3 "batteries are included". So this is a bug, indeed.

tobixen avatar Oct 11 '21 09:10 tobixen