Closed sdahdah closed 2 years ago
See #73 for a fix.
Thanks a bunch!
cerebro.optstrategy is throwing the error:
Traceback (most recent call last): File "c:\Users\anirb\Trading\.backtrader\trader.py", line 18, in <module> strats = cerebro.optstrategy( File "C:\Users\anirb\Trading\.backtrader\lib\site-packages\backtrader\cerebro.py", line 893, in optstrategy vals = self.iterize(kwargs.values()) File "C:\Users\anirb\Trading\.backtrader\lib\site-packages\backtrader\cerebro.py", line 333, in iterize elif not isinstance(elem, collections.Iterable): AttributeError: module 'collections' has no attribute 'Iterable'
How can I resolve this?
I am on Python 3.10 which is probably creating the issue. Is there any quick fix?
Thanks in advance
This was fixed long ago in #73, so closing this out.
@anix-anirban Please don't ask for help for unrelated packages. I don't know what cerebro
is, but the best thing to do is open an issue over there.
Issue
On Python 3.10.2, when calling
print()
on a joint or other object, I get the error:I assume this is from line 72 of
urdf_parser_py/src/urdf_parser_py/xml_reflection/basics.py
:I believe it should be
Iterable
should be imported fromcollections.abc
now instead of directly fromcollections
.A related issue in another library: https://github.com/nerdocs/pydifact/issues/46
Code to reproduce: