Comments (8)
add string ',annotations' at the end of line 27 in stockstats.py
from stockstats.
I think it's a built in package.
https://docs.python.org/3/library/__future__.html
Could you try from __future__ import annotations
?
from stockstats.
Please try adding from future import annotations
at the beginning of the code.
from stockstats.
It shows the following error
ImportError: cannot import name 'annotations' from 'future'
is future this pacakge? https://pypi.org/project/future/
from stockstats.
add string ',annotations' at the end of line 27 in stockstats.py在 stockstats.py 中第 27 行末尾添加字符串 ',annotations'
from stockstats.
This doesnt work for me
from future import unicode_literals, annotations
from stockstats import wrap
Traceback (most recent call last):
File "/Users/dshetyo/PycharmProjects/timeseries-predictor/model_trainer.py", line 10, in
from data_util import get_data
File "/Users/dshetyo/PycharmProjects/timeseries-predictor/data_util.py", line 2, in
from stockstats import wrap
File "/Users/dshetyo/anaconda3/envs/timeseries/lib/python3.8/site-packages/stockstats.py", line 94, in
def set_dft_window(name: str, windows: Union[int, tuple[int, ...]]):
TypeError: 'type' object is not subscriptable
from stockstats.
My original problem has been solved by changing the python version.
This library has specified the recommened python version.
I hope this helps.
from stockstats.
What's the python version that has this error?
from stockstats.
Related Issues (20)
- Extract Kaufman's Adaptive Moving Average
- Add Elder-Ray Index
- Refactor: extract the logic for meta data
- Add Gaussian Fisher Transform Price Reversals indicator
- Add Relative Vigor Index
- Invalid number of return arguments after parsing column name: 'mdi' : stockstats 0.6.0 HOT 6
- Add Inertia Indicator
- Add Know Sure Thing (kst) support
- Add Pretty Good Oscillator Support
- Add Psychological Line (PSL) Support
- Add Support for PVO
- Support Quantitative Qualitative Estimation (QQE)
- Add z-score based statistics HOT 1
- import StockDataFrame出错 HOT 3
- WMA and Hull MA HOT 2
- UserWarning: Invalid number of return arguments after parsing column name: 'Date' HOT 2
- Different results in DMI indicators (ex: adx_X_ema) between 0.5.X and 0.6.X.
- Number comparison HOT 3
- kdj bug: ZeroDivisionError: float division by zero , if high == low HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stockstats.