-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
test_file_jpeg2k fails with IOError: broken data stream when reading image file on Windows #584
Comments
@al45tair? Ideas? |
FYI: release is Tuesday |
I'll take a look first thing tomorrow (Monday); I suspect it's something silly and easily fixed. |
OK, so I've taken a look at this, and after fixing a problem introduced by e7e103b (I'm using the OpenJPEG binaries installed using the installer from the OpenJPEG website, not building my own, so forcing it to statically link does not work), and after removing a line from the test script that tried to save a file in The most likely reason for this to happen is that Pillow was built against a different version of the Microsoft C runtime than the one that Python was linked with. As a result, when Python passes an Of course, I can't be certain that's the problem because I don't have the @cgohlke's build environment to look at, but it seems likely. To be clear: I’ve built Pillow with Visual Studio 2008 (VC9) using Python 2.7 to test this. I haven't tried Python 3 on Windows (IIRC 3.4 needs a newer version of Visual Studio, but not the latest version). |
Closing. Turns out that using openjpeg sources from I assume this is the line containing the hard coded |
@cgohlke Yes, that's the line in question. |
Using Pillow af4424e linked to openjpeg 2.0svn on Windows, the following tests fail on all Python versions.
The text was updated successfully, but these errors were encountered: