3dstools icon indicating copy to clipboard operation
3dstools copied to clipboard

bffnt.py ImportError: No module named png

Open ghost opened this issue 6 years ago • 3 comments

Hey! i'm trying to extract a Super Mario 3D World font file and I'm getting an error that says: No module named png. Any ideas why this happens?

C:\Users\Lare\Desktop\3dstools-master>bffnt.py -x MarioFont64.bffnt
Traceback (most recent call last):
  File "C:\Users\Lare\Desktop\3dstools-master\bffnt.py", line 9, in <module>
    import png
ImportError: No module named png`

ghost avatar Mar 25 '19 08:03 ghost

Looks like you need to install (I think it was) pypng. It's available on pip so it should be easy to install.

ObsidianX avatar Mar 25 '19 16:03 ObsidianX

Latest version of pypng (0.0.20) causes an issue because the greyscale parameter is now True by default. Package version 0.0.19 works fine.

pip install pypng==0.0.19

DavidRayner avatar Dec 25 '19 16:12 DavidRayner

Do not use ./bffnt.py -xf test.bffnt, please use python ./bffnt.py -xf test.bffnt.

Geocld avatar Jan 15 '20 00:01 Geocld