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

Incompatibility with Pillow v6.x #10

Open
hugorodgerbrown opened this issue Apr 2, 2019 · 4 comments
Open

Incompatibility with Pillow v6.x #10

hugorodgerbrown opened this issue Apr 2, 2019 · 4 comments

Comments

@hugorodgerbrown
Copy link

The Image.VERSION attribute was removed in Pillow from version 6 on (python-pillow/Pillow@ef9bf76). This causes errors wherever it is calle:

if mode=='RGBA':
if Image.VERSION.startswith('1.1.7'): im.load()
self._dataA = ImageReader(im.split()[3])
im = im.convert('RGB')
self.mode = 'RGB'

Intermediate fix is to use PILLOW_VERSION instead, although this will also be removed in future versions.

@datadidit
Copy link

datadidit commented Apr 2, 2019

We just ran into this as well had to hardcode the pillow version in the requirements.txt to get it to work as a work around

Pillow==5.4.1

This needs have a top level req https://github.com/Distrotech/reportlab/blob/master/setup.py#L541 or code needs to be updated to not be dependent on getting VERSION.

@hugorodgerbrown
Copy link
Author

It looks like issues are only being responded to on Bitbucket?

@datadidit
Copy link

@hugorodgerbrown yeah several people have brought it up on their bitbucket too. Given they just did a release recently I'm hoping they push out a fix soon.

Installing Pillow after reportlab is a temporary patch.

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

3 participants