Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
DeprecationWarning in Python 3.6 and 3.7 #3547
What did you do?
What did you expect to happen?
What actually happened?
Tests with Python 3.6 failed - https://travis-ci.org/speedy-net/speedy-net/jobs/475706499
What are your OS, Python and Pillow versions?
Please include code that reproduces the issue and whenever possible, an image that demonstrates the issue. Please upload images to GitHub, not to third-party file hosting sites. If necessary, add the image to a zip or tar archive.
The best reproductions are self-contained scripts with minimal dependencies. If you are using a framework such as plone, Django, or buildout, try to replicate the issue just using Pillow.
Same code except Pillow version -
Tests with Python 3.6 don't fail - https://travis-ci.org/speedy-net/speedy-net/jobs/475719810
Same problem with Python 3.7.1:
Pillow has supported Python 3.6 since 4.x and Python 3.7 since 5.2.0.
I can't see anywhere where Pillow uses
Here's your error from the logs:
That show's Pillow's
It looks similar to django-ldapdb/django-ldapdb#138, which says "the problem is the module
But it works with
I didn't see this problem before upgrading to
It seems to me that
To me, this looks like a issue with distutils and not Pillow. I think the efforts to fix this deprecation warning should be spent there. While distutils is not recommended for use by packages, AFICT, it is not deprecated and continues to serve as the foundation for setuptools.
Tests also fail with