Navigation

    Backtrader Community

    • Register
    • 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/

    [Errno 2] No such file or directory

    General Code/Help
    8
    27
    1656
    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.
    • vladisld
      vladisld last edited by

      @yshen said in [Errno 2] No such file or directory:

      "TypeError: super(type, obj): obj must be an instance or subtype of type."

      Have you modified the yahoo.py in source ? Or copied the yahoo.py to your own project ? If you do - please remove any local copy of yahoo.py from your source and just use the native backtrader package.

      Y 2 Replies Last reply Reply Quote 0
      • Y
        yshen @vladisld last edited by

        @vladisld
        the yahoo.py has been updated with the new line "if not ctype.startswith('text/'):", but the error remains

        1 Reply Last reply Reply Quote 0
        • Y
          yshen @vladisld last edited by

          @vladisld that's what it is like.
          2762a0ce-55a5-47b5-bf39-cae9a56fbdd8-image.png

          1 Reply Last reply Reply Quote 0
          • vladisld
            vladisld last edited by

            Not sure it is related to the original problem. Probably it could be related to the interaction between backtrader and Anaconda environment.

            I found the similar error was reported when using Anaconda environment see here. Could it be relevant ?

            1 Reply Last reply Reply Quote 0
            • Y
              yshen last edited by

              @vladisld thanks for your help. After simply restarting everything, it seems to be alright if I have the .csv file in the folder. I assume I have to manually download the files beforehand, is that right?

              1 Reply Last reply Reply Quote 0
              • vladisld
                vladisld last edited by

                @yshen said in [Errno 2] No such file or directory:

                I assume I have to manually download the files beforehand, is that right?

                If you are using YahooFinanceData it should download the data from Yahoo site automatically. No need to pre-download it manually.

                You may also use the YahooFinanceCSVData to just load the pre-downloaded .csv files.

                Y 1 Reply Last reply Reply Quote 1
                • Y
                  yshen @vladisld last edited by

                  @vladisld right, everything is now fixed. I really apprexiate your help.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  • First post
                    Last post
                  Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
                  $(document).ready(function () { app.coldLoad(); }); }