Comments (8)
Saw that this is fixed. But mentioning it anyways: you need the auquan toolbox (pip install -U auquan_toolbox) in the same path where you are running your notebook from.
from tutorials.
you need the auquan toolbox (pip install -U auquan_toolbox) in the same path where you are running your notebook from.
from tutorials.
Worked around it - FYI
from tutorials.
from backtester.dataSource.yahoo_data_source import YahooStockDataSource
from datetime import datetime
startDateStr = '2007/12/01'
endDateStr = '2017/12/01'
cachedFolderName = 'yahooData/'
dataSetId = 'testPairsTrading'
instrumentIds = ['SPY','AAPL','ADBE','SYMC','EBAY','MSFT','QCOM',
'HPQ','JNPR','AMD','IBM']
ds = YahooStockDataSource(cachedFolderName=cachedFolderName,
dataSetId=dataSetId,
instrumentIds=instrumentIds,
startDateStr=startDateStr,
endDateStr=endDateStr,
event='history')
data = ds.getBookDataByFeature()['Adj Close']
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from backtester.dataSource.yahoo_data_source import YahooStockDataSource
2 from datetime import datetime
3
4 startDateStr = '2007/12/01'
5 endDateStr = '2017/12/01'
ModuleNotFoundError: No module named 'backtester'
from tutorials.
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from backtester.dataSource.yahoo_data_source import YahooStockDataSource
2 from datetime import datetime
3
4 startDateStr = '2007/12/01'
5 endDateStr = '2017/12/01'
ModuleNotFoundError: No module named 'backtester'
from tutorials.
import error happened again, will appreciate that if you could helpWorked around it - FYI
from tutorials.
from tutorials.
@caseyyangsissi it seems that the toolbox might be installed in a different path compared to where you are running the notebook from. This sometimes happens if you have multiple versions of python installed. The path that the notebook is importing packages from is different from the path where the commandline is installing packages.
Please see a fix here: https://www.lucypark.kr/blog/2013/02/10/when-python-imports-and-ipython-does-not/
from tutorials.
Related Issues (13)
- Mismatched ARIMA model orders HOT 1
- DataSource
- Mean Reversion
- Chart is wrong HOT 1
- Minor Syntax Bugs
- pair trading backtester logic is wrong HOT 1
- 'DataFrame' object has no attribute 'set_value' HOT 3
- Tensorboard Plot View HOT 1
- Need parens to compute average correctly HOT 2
- Question about the momentum_backtest
- key error HOT 3
- Pairs trading backtester
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 tutorials.