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

Timezone issue - with requirements #6196

Closed
goedzo opened this issue Aug 5, 2017 · 8 comments
Closed

Timezone issue - with requirements #6196

goedzo opened this issue Aug 5, 2017 · 8 comments

Comments

@goedzo
Copy link
Contributor

goedzo commented Aug 5, 2017

Got this error when trying to user timezones. After disabling try catch, the following error was shown:

ImportError: pytz must be installed in order to locate timezones. Install with pip install geopy -e ".[timezone]".

So we need to have this installed in requirements??

@goedzo
Copy link
Contributor Author

goedzo commented Aug 5, 2017

Also I have no idea how to install this on windows:

G:\Setups\Pokemon Go\Bot\Pikabot_git\PokemonGo-Bot\goedzo_windows>pip install geopy -e ".[timezone]"
Directory '.' is not installable. File 'setup.py' not found.

G:\Setups\Pokemon Go\Bot\Pikabot_git\PokemonGo-Bot\goedzo_windows>pip install geopy
Requirement already satisfied: geopy in c:\python27\lib\site-packages

G:\Setups\Pokemon Go\Bot\Pikabot_git\PokemonGo-Bot\goedzo_windows>pip install geopy -e "[timezone]"
[timezone] should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

???

@goedzo
Copy link
Contributor Author

goedzo commented Aug 5, 2017

Bingo!

pip install pytz

So we need to add pytz to requirements.txt

@goedzo
Copy link
Contributor Author

goedzo commented Aug 5, 2017

I only have no clue what to add in requirements.txt :)

@MerlionRock
Copy link
Contributor

Oh so sorry! I forgot to add that in!

Can help me?

In requirements.txt add pytz==2017.2

@Jcolomar
Copy link
Contributor

Jcolomar commented Aug 5, 2017

#6197

@MerlionRock
Copy link
Contributor

@Jcolomar @goedzo thanks~

@MerlionRock
Copy link
Contributor

Closing.

@Jcolomar
Copy link
Contributor

Jcolomar commented Aug 5, 2017

u are welcome

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