Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial

    General Code/Help
    quickstart tutorial help
    4
    4
    3214
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      niklay last edited by

      Hi,
      I started using Backtrader with doing the Quickstart tutorial. At the beginning two variables modpath and datapath are declared with datapath searching for the file "orcl-1995-2014.txt". Unfortunately, my mac cannot find this file (I also searched for it using the terminal, but the file seems to be nonexistent). Is there anything wrong with the tutorial or did I miss something here?

      I'm using Python 3.6.1 with PyCharm and installed Backtrader via pip install backtrader

      Thanks for helping!

      B 1 Reply Last reply Reply Quote 1
      • J
        justinxjx last edited by

        It is in the datas folder.

        1 Reply Last reply Reply Quote 0
        • T
          ThatBlokeDave last edited by

          If you installed via pip, my guess is that you probably don't have direct access to it from your working directory. I.e the directory where you are trying to copy run the example script from.

          If you cannot find it on your mac, try going to the github page to take a copy and place it somewhere your script can find it:

          Data Folder

          1 Reply Last reply Reply Quote 1
          • B
            backtrader administrators @niklay last edited by

            @niklay said in Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial:

            pip install backtrader
            

            This installs a Python package and not the complete content of the source code repository. Follow the advice from @ThatBlokeDave or else clone the repository. As laid out in the repository, the scripts know where to find the data files.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors