Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when trying to use an example #130

Open
alex4200 opened this issue Aug 2, 2019 · 1 comment
Open

Errors when trying to use an example #130

alex4200 opened this issue Aug 2, 2019 · 1 comment

Comments

@alex4200
Copy link

alex4200 commented Aug 2, 2019

I am trying to use the block_analysis.py for a Minecraft world 1.14.3. I have tried two commands

python block_analysis.py <path_to_world>

and get error

Parsing region r.-9.-13.mca...
Traceback (most recent call last):
  File "block_analysis.py", line 149, in <module>
    sys.exit(main(world_folder, start, stop))
  File "block_analysis.py", line 120, in main
    process_region_file(region, start, stop)
  File "block_analysis.py", line 78, in process_region_file
    for c in region.iter_chunks_class():
  File "/Users/mc/Code/NBT/nbt/region.py", line 494, in iter_chunks_class
    yield self.chunkclass(self.get_chunk(m.x, m.z))
  File "/Users/mc/Code/NBT/nbt/chunk.py", line 255, in __init__
    raise NotImplemented
TypeError: exceptions must derive from BaseException

and also

python block_analysis.py <path_to_world>/region

with error

Traceback (most recent call last):
File "block_analysis.py", line 149, in
sys.exit(main(world_folder, start, stop))
File "block_analysis.py", line 116, in main
world = WorldFolder(world_folder)
File "/Users/mc/Code/NBT/nbt/world.py", line 259, in call
raise UnknownWorldFormat("Empty world or unknown format")
nbt.world.UnknownWorldFormat: Empty world or unknown format



I am doing something wrong? How can I fix this error?
@AdamBlance
Copy link

This is because you're trying to use it with a 1.14.3 world. Looks like AnvilChunk only supports 1.13.2 worlds at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants