Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Collections has no attribute Iterable

    Support
    2
    3
    411
    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.
    • nosaai
      nosaai last edited by

      I have just finished setting up for local development and tried some of the python files to test if it is working. The one I tested was the one that would print out the stock, cryptodaily, futures, and crypto futures. On running it I got the following error: import qnt.data as qndata
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/init.py", line 1, in <module>
      from .stocks import load_list as stocks_load_list
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/stocks.py", line 5, in <module>
      from qnt.data.common import *
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/qnt/data/common.py", line 20, in <module>
      import progressbar
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/init.py", line 4, in <module>
      from .shortcuts import progressbar
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/shortcuts.py", line 1, in <module>
      from . import bar
      File "/opt/anaconda3/envs/qntdev/lib/python3.10/site-packages/progressbar/bar.py", line 50, in <module>
      class ProgressBarBase(collections.Iterable, ProgressBarMixinBase):
      AttributeError: module 'collections' has no attribute 'Iterable'

      I found out that Iterable is no longer in collections but in collections.abc. I tried importing collections.abc but that did not work. Are there any suggestions? Any help would most appreciated.
      Thanks

      S 1 Reply Last reply Reply Quote 0
      • S
        stefanm @nosaai last edited by

        @nosaai Hi,
        can you try using another progressbar2 version in your environment, it should work with 3.55.0:

        pip install progressbar2==3.55.0

        Please let us know if it worked.

        nosaai 1 Reply Last reply Reply Quote 0
        • nosaai
          nosaai @stefanm last edited by

          @stefanm said in Collections has no attribute Iterable:

          pip install progressbar2==3.55.0

          Thank you so much @stefanm for support. Yes, it did work. Although on installation I did get these complaints:
          qnt 0.0.306 requires tabulate>=0.9.0, but you have tabulate 0.8.10 which is incompatible.
          qnt 0.0.306 requires xarray==0.20.2, but you have xarray 0.20.1 which is incompatible.

          Also, my apologies for the late response. I had to put things aside for a day or so. Once again, thank you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors
          • Documentation
          • About
          • Career
          • My account
          • Privacy policy
          • Terms and Conditions
          • Cookies policy
          Home
          Copyright © 2014 - 2021 Quantiacs LLC.
          Powered by NodeBB | Contributors