Description
Hi! Can me help pls error:
2023-08-19 15:21:33 E An error has occurred. This may be a bug. Please let us know!
See http://docs.overviewer.org/en/latest/index.html#help
This is the error that occurred:
Traceback (most recent call last):
File "./overviewer.py", line 653, in
ret = main()
File "./overviewer.py", line 505, in main
tex.generate()
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 134, in generate
self.biome_grass_texture = self.build_block(self.load_image_texture("assets/minecraft/textures/block/grass_block_top.png"), self.load_image_texture("assets/minecraft/textures/block/grass_block_side_overlay.png"))
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 578, in build_block
top = self.transform_image_top(top)
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 474, in transform_image_top
img = img.resize((17, 17), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
Activity
CounterPillow commentedon Aug 19, 2023
no, I've already told you on IRC that the project is unmaintained.
SashaPro22 commentedon Aug 19, 2023
I really need this card and I count on the support of knowledgeable people
dafvid commentedon Aug 20, 2023
Hi
Had the same issue. Pillow 10 has removed ANTIALIAS. Downgrade to Pillow 9.5.0 fixes this.
SashaPro22 commentedon Aug 20, 2023
Where will it need to be changed? in overviewer.py ?
dafvid commentedon Aug 20, 2023
Try pip install Pillow==9.5.0
dafvid commentedon Aug 20, 2023
You also need to build overviewer with the Pillow 9.5.0 header files if you're building from source
Gregory-AM commentedon Aug 20, 2023
@SashaPro22, you can use the successor version of The Minecraft Overviewer. It fixes Antialiasing issues, and renders 1.20 worlds.
SashaPro22 commentedon Aug 21, 2023
How to run this version in linux?
SashaPro22 commentedon Aug 21, 2023
I did it on your advice and one mistake went away, but the second one didn't:
This is the error that occurred:
Traceback (most recent call last):
File "./overviewer.py", line 653, in
ret = main()
File "./overviewer.py", line 505, in main
tex.generate()
File "/home/mup/overviewer_core/textures.py", line 142, in generate
tex = texgen(self, blockid, data)
File "/home/mup/overviewer_core/textures.py", line 860, in func_wrapper
return func(texobj, blockid, data)
File "/home/mup/overviewer_core/textures.py", line 4072, in repeater
ImageDraw.Draw(torch).rectangle((0,24,10,15),outline=(0,0,0,0),fill=(0,0,0,0))
File "/usr/local/lib/python3.8/dist-packages/PIL/ImageDraw.py", line 294, in rectangle
self.draw.draw_rectangle(xy, fill, 1)
ValueError: y1 must be greater than or equal to y0
Gregory-AM commentedon Aug 21, 2023
@SashaPro22
Haha 😆
I remember when I first started working on Overviewer and this was the first issue.
Replace that line with this one.
ImageDraw.Draw(torch).rectangle((0,15,10,24),outline=(0,0,0,0),fill=(0,0,0,0))
Gregory-AM commentedon Aug 21, 2023
You have to build it from source.
Gregory-AM commentedon Aug 21, 2023
The entire point is to update Overviewer not go backwards.
So don't use older versions of Pillow.
All the issues you're experiencing are fixed in the repo I created for Overviewer.
You'll just need to build it for your OS.
SashaPro22 commentedon Aug 21, 2023
Will it be possible to install your map overviewer and run it as normal without an exe file?
Gregory-AM commentedon Aug 21, 2023
There's a Commit on my GitHub that's not implemented yet with information on building for Linux.