anaStruct icon indicating copy to clipboard operation
anaStruct copied to clipboard

Error when declaring supports: AttributeError: module 'collections' has no attribute 'Iterable'

Open ajossorioarana opened this issue 2 years ago • 2 comments

Whenever I declare supports, for example with the following code,

ss.add_support_hinged(node_id=1)

The following error is raised: "AttributeError: module 'collections' has no attribute 'Iterable'"

As stated in this StackOverflow post:

"collections.Iterable is deprecated. Replace it with collections.abc.Iterable."

So I did that in the files that appeared on the log. Now I can't remember what files appeared, but if anyone stumbles upon this error, this should do the trick.

ajossorioarana avatar Feb 01 '22 18:02 ajossorioarana

Hi. I have found the same bug and follows your suggestion. The files where I made the modification had these relative paths:

(I'm working on Fedora 35, in the case this is necessary. These directories are located in the home folder)

/.local/lib/python3.10/site-packages/anastruct/fem/system.py /.local/lib/python3.10/site-packages/anastruct/basic.py

Sorry if my english is not very well understood. Have a nice day

paters06 avatar Feb 16 '22 01:02 paters06

I have created https://github.com/ritchie46/anaStruct/pull/93 as a fix.

tirkarthi avatar Apr 24 '22 14:04 tirkarthi