Comments (3)
I use PyPNG:
https://pythonhosted.org/pypng/index.html
from 3dstools.
Can we reopen this issue, please? I am experiencing the exact same error. I've attempted this with png.py version 0.0.17 and version 0.0.18. Same results each time.
What version of png.py are you using? Are 0.0.17 and 0.0.18 incompatible?
For clarity's sake, here is my exact error message:
python2 bflim.py -c in.png out.bflim
Traceback (most recent call last):
File “bflim.py”, line 836, in
bflim.load(args.create)
File “bflim.py”, line 273, in load
for row in list(pixels):
File “build\bdist.win32\egg\png.py”, line 1678, in iterstraight
File “build\bdist.win32\egg\png.py”, line 1911, in iterdecomp
File “build\bdist.win32\egg\png.py”, line 1888, in iteridat
png.ChunkError: ChunkError: I/O operation on closed file
from 3dstools.
I don't know what changed in Python and/or PyPng, but I found that simply deleting/commenting out line 271, "png_file.close()" fixes this issue. I haven't noticed any noticable memory leaking issues as a result, and converted images are valid and load in the game I am modifying.
from 3dstools.
Related Issues (20)
- bffnt.py unknown version errors HOT 20
- Get a struct.error when pack png to bflim HOT 6
- when extract nes remix .arc files ,show errors. HOT 12
- PNG to BFLIM list index out of range HOT 5
- bffnt incorrectly decodes ETC1 image HOT 8
- License HOT 1
- Any way to use bcfnt.py ?
- bffnt.py ImportError: No module named png HOT 3
- Many problems when using `msbt.py` with python3 HOT 1
- Instructions for bcfnt.py HOT 3
- png.ProtocolError
- png.ProtocolError: ProtocolError: HOT 3
- [bflim.py] error when doing png -> bflim
- msbt.py Using a MSBT containing the german ü umlaut leads to UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc'
- msbt.py Using a MSBT containing the reference mark symbol ※ leads to UnicodeEncodeError: 'ascii' codec can't encode character '\u203b'
- msbt.py Using a MSBT containing the Nintendo private-used 3DS Home Menu symbol leads to UnicodeEncodeError: 'ascii' codec can't encode character u'\ue073' HOT 1
- msbt.py Using a MSBT containing CJK unicode characters leads to UnicodeEncodeError: 'ascii' codec can't encode character in position
- BFFNT usage gives me the strange picture HOT 2
- Support Fatal Frame: Maiden of Black Water HOT 3
- Create BFFNT Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dstools.