Voxelers / mcthings

A Python framework for creating 3D scenes in Minecraft and Minetest
Apache License 2.0
57 stars 10 forks source link

vox2schematic - TypeError: to_nbt() takes 3 positional arguments but 4 were given #140

Open hellocatfood opened 3 years ago

hellocatfood commented 3 years ago

I'm trying to run vox2schematic on this model https://github.com/mikelovesrobots/mmmm/blob/master/vox/alien_crawl1.vox (also on my own models). Running it gives me this error:

ox2schematic alien_crawl1.vox 
2021-03-13 17:35:33,411 Vox input file: alien_crawl1.vox
2021-03-13 17:35:33,411 Schematic output file: alien_crawl1.schematic
2021-03-13 17:35:33,412 Material data not found
Traceback (most recent call last):
  File "/home/hellocatfood/.local/bin/vox2schematic", line 71, in <module>
    main()
  File "/home/hellocatfood/.local/bin/vox2schematic", line 62, in main
    voxels._blocks_memory.to_schematic(schematic_file)
  File "/home/hellocatfood/.local/lib/python3.8/site-packages/mcthings/blocks_memory.py", line 254, in to_schematic
    self.build_schematic().write_file(file_path)
  File "/home/hellocatfood/.local/lib/python3.8/site-packages/mcthings/blocks_memory.py", line 244, in build_schematic
    return self.to_nbt(init_pos, end_pos, self)
TypeError: to_nbt() takes 3 positional arguments but 4 were given

I'm using python3.8 on Ubuntu 20.04

ErsteNacht commented 1 year ago

I got the same problem. I decided to try older versions and one of them worked.

pip install mcthings==0.51.4