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

tzinfo error with version 0.10.0 #107

Closed
bradstallion opened this issue Sep 1, 2020 · 3 comments · Fixed by #108
Closed

tzinfo error with version 0.10.0 #107

bradstallion opened this issue Sep 1, 2020 · 3 comments · Fixed by #108

Comments

@bradstallion
Copy link

with paper trading live (tested with strategy_sma_crossover.py):

File ".../alpaca_backtrader_api/alpacastore.py", line 405, in _t_candles
cdl = self.get_aggs_from_alpaca(dataname,
File ".../alpaca_backtrader_api/alpacastore.py", line 659, in get_aggs_from_alpaca
response = _iterate_api_calls()
File ".../alpaca_backtrader_api/alpacastore.py", line 590, in _iterate_api_calls
if earliest_sample <= pytz.timezone(NY).localize(start):
File ".../pytz/tzinfo.py", line 318, in localize
raise ValueError('Not naive datetime (tzinfo is already set)')
ValueError: Not naive datetime (tzinfo is already set)

Version 0.8.0 worked.
Thanks

@Mou97
Copy link

Mou97 commented Sep 2, 2020

I'm having the same issue, but it works just fine outside the virtual env.

@belarusrulez
Copy link

belarusrulez commented Sep 3, 2020

I have the same issue. Brand new python env.
I've tried 0.9.5, 0.9.0 and 0.8.0 nothing works. errors are different.

@shlomiku
Copy link
Contributor

shlomiku commented Sep 4, 2020

Hi, the issue is fixed.
you could install the fix directly from github (until we release a new version)
pip install git+https://github.com/alpacahq/alpaca-backtrader-api

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

Successfully merging a pull request may close this issue.

4 participants