Coder Social home page Coder Social logo

Comments (8)

TeamAuquan avatar TeamAuquan commented on July 30, 2024 1

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.

chandinijain avatar chandinijain commented on July 30, 2024 1

you need the auquan toolbox (pip install -U auquan_toolbox) in the same path where you are running your notebook from.

from tutorials.

mwiser avatar mwiser commented on July 30, 2024

Worked around it - FYI

from tutorials.

yan365 avatar yan365 commented on July 30, 2024

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.

yan365 avatar yan365 commented on July 30, 2024

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.

caseyyangsissi avatar caseyyangsissi commented on July 30, 2024

Worked around it - FYI

Screenshot 2019-06-17 at 14 36 04

import error happened again, will appreciate that if you could help

from tutorials.

caseyyangsissi avatar caseyyangsissi commented on July 30, 2024

from tutorials.

chandinijain avatar chandinijain commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.