Collections has no attribute Iterable
-
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 -
@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.
-
@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.