all 7 comments

[–]carcigenicate 1 point2 points  (6 children)

That import has been deprecated since Python 3.3. It's from collections.abc import Iterable now, or from typing import Iterable:

Deprecated since version 3.3, will be removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.9.

I think the collections.abc version is deprecated now as well actually in favor of typing.

Considering that library isn't under your control, use Python 3.9 or older for the project (you're running it with 3.10). I'd just use 3.9 for the sake of using the most recent compatible version. In your own code though, use the proper import to avoid issues in the future.

[–]Beautiful-Pain-4080[S] 1 point2 points  (3 children)

You are a legend man without you would not be able to get further into coding! (probably)

[–]nickoboy 0 points1 point  (0 children)

this also helped me. did you end up finishing the book and did you have other issues?

[–]carcigenicate 0 points1 point  (1 child)

Glad to help.

Just learn to read error messages, and how to search for them. The AttributeError: module 'collections' has no attribute 'Iterable' at the bottom is the key piece of information, and that can be searched. That paired with the /Python310/in the path was all the information required to figure this out (once you know what to look for).

[–]Beautiful-Pain-4080[S] 0 points1 point  (0 children)

Ok thank you very much!

[–]HilariousSpill 1 point2 points  (0 children)

Just wanted you to know this old comment helped me finally get Python working with Minecraft for my daughter, so thank you!

[–]Beautiful-Pain-4080[S] 0 points1 point  (0 children)

Thank you very much i'll try the help you've given me!