hello world

111 views
Skip to first unread message

lardemer arnaud

unread,
Jan 7, 2022, 2:56:59 AM1/7/22
to Adventures in Minecraft Forum
Hello,
When starting the first program I have this message showing in red in the IDLE and I have no message in minecraft:

Traceback (most recent call last):
  File "C:/Users/cai/Desktop/AdventuresInMinecraft-PC/MyAdventures/BonjourMondeDeMinecraft.py", line 3, in <module>
    mc.postToChat ("Bonjour le monde de Minecraft")
  File "C:\Users/cai/Desktop/AdventuresInMinecraft-PC/MyAdventures\mcpi\minecraft.py", line 197, in postToChat
    self.conn.send(b"chat.post", msg)
  File "C:\Users/cai/Desktop/AdventuresInMinecraft-PC/MyAdventures\mcpi\connection.py", line 39, in send
    s = b"".join([f, b"(", flatten_parameters_to_bytestring(data), b")", b"\n"])
  File "C:\Users/cai/Desktop/AdventuresInMinecraft-PC/MyAdventures\mcpi\util.py", line 10, in flatten_parameters_to_bytestring
    return b",".join(map(_misc_to_bytes, flatten(l)))
  File "C:\Users/cai/Desktop/AdventuresInMinecraft-PC/MyAdventures\mcpi\util.py", line 5, in flatten
    if isinstance(e, collections.Iterable) and not isinstance(e, str):
AttributeError: module 'collections' has no attribute 'Iterable'


I am on Windows 10 PC and under minecraft 1.12
Thanks in advance for your help as I don't understand the error message.
Have a good day

Martin O'Hanlon

unread,
Jan 11, 2022, 11:31:27 AM1/11/22
to Adventures in Minecraft Forum
It looks like you are using the starter kits from the 2nd edition of the book? e.g. downloaded from https://adventuresinminecraft.github.io/

Are you using Python 3.10? I noticed recently that there was an incompatibility issue when Python 3.10 was released and released new versions of the Starter Kits.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages