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/

    Running into errors everywhere I look...

    General Code/Help
    1
    2
    21
    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.
    • G
      garyfritz last edited by

      I'm getting very frustrated. I'm new to BT and I haven't been able to get a single example working properly, from this site or others. I'm running on a fresh RHEL8.3 system, Python 3.7.9, freshly-downloaded BT. Some examples:

      • Simple MAcross and others: "No module named '_tkinter'" in module cerebro.plot(). Docs online suggest that tk should be included in any current Python. I pip-installed it anyway. No improvement.

      • Portfolio rebalancing with AlphaVantage: "'Plot_OldSync' object has no attribute 'mpyplot'". That's the self.mpyplot.show() on line 817 of plot.py, in show(). mypyplot is defined on line 130 of plot.py, in plot():
        import matplotlib.pyplot as mpyplot
        I have no idea what order these get called, but somehow plot() is busted.

      I've hit other problems too, but this is enough to get me started.

      Any suggestions for fixing these problems?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • G
        garyfritz last edited by

        I searched through the community and I found someone else with a similar problem. The recommended solution was to install python-tk. My yum repositories don't have that package. There is python3-tkinter, but it's already installed.

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