Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named tzlocal #46

Open
Pupo1 opened this issue Sep 29, 2018 · 5 comments
Open

ImportError: No module named tzlocal #46

Pupo1 opened this issue Sep 29, 2018 · 5 comments

Comments

@Pupo1
Copy link

Pupo1 commented Sep 29, 2018

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.

@tobixen
Copy link
Owner

tobixen commented Sep 29, 2018

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

@Pupo1
Copy link
Author

Pupo1 commented Sep 30, 2018

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

@tobixen
Copy link
Owner

tobixen commented May 5, 2020

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

@tobixen tobixen closed this as completed May 5, 2020
@huoshanwei
Copy link

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'

@tobixen
Copy link
Owner

tobixen commented Oct 11, 2021

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

@tobixen tobixen reopened this Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants