raspberry jam modでエラーが出る

前提

raspberry jam modをminecraft forgeに導入後、サンプルコードを実行したところ以下のエラーが出て、実行されませんでした。どうすれば実行できるでしょうか。よろしくお願いします。

エラーメッセージ

[ERR] Traceback (most recent call last): [ERR] File "C:\Users\…(省略)…\mcpipy\helloworld.py", line 6, in <module> [ERR] mc.postToChat("Hello world!") [ERR] File "C:\Users\…\mcpipy\mcpi\minecraft.py", line 404, in postToChat [ERR] self.conn.send("chat.post", str(msg).replace("\n"," ").replace("\n"," ")) [ERR] File "C:\Users\…\mcpipy\mcpi\connection.py", line 102, in send_python3 [ERR] s = "%s(%s)\n'%(f, flatten_parameters_to_string(data)) [ERR] File "C:\Users\…\mcpipy\mcpi\util.py", line 27, in flatten_parameters_to_string [ERR] return ""join(map(str, flatten(1))) [ERR] File "C:\Users\…\mcpipy\mcpi\util.py", line 12, in flatten [ERR] if isinstance(e, collections.Iterable) and not isinstance(e, basestring): [ERR] AttributeError: module 'collections' has no attribute 'Iterable'

実行したサンプルコード(mcpipy\helloworld.py)

python

1import mcpi.minecraft as minecraft 2import mcpi.block as block 3import server 4import sys 5mc = minecraft.Minecraft()6mc.postToChat("Hello world!")7playerPos = mc.player.getPos()8mc.setBlock(playerPos.x,playerPos.y-1,playerPos.z,block.DIAMOND_ORE)9

試したこと

forge、modの再インストールをしましたが、同様のエラーが出ました。

補足情報

minecraft 1.12.2
forge 14.23.5 (1.12.2)
raspberry jam mod 0.94 (1.12.2)
python 3.10

コメントを投稿

0 コメント