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 is failing with AttributeError for ppc64le #5229
Comments
Hi. You seem to be missing some of Pillow's dependencies: https://travis-ci.com/github/asellappen/Pillow/jobs/477131803#L2605
I'm not sure why missing libtiff is causing the test to fail; it should probably be skipped when libtiff is not available. (Looking at the Git history, I can see the test was added quite recently, on 2020-12-22, after the last platform without libtiff was removed from CIs. The test was added in #5120.) Note that this repository already runs tests on ppc64le using Github Actions, you can see that all tests except for one known failure (the other two also affect other architectures) are passing here: https://github.com/python-pillow/Pillow/runs/1774902866#step:6:2524 For reference, the source for that Docker image is here: https://github.com/python-pillow/docker-images/tree/qus/ubuntu-20.04-focal-ppc64le |
Given that travis is not working with open source any more, it appears that there is a chance for IBM to step up and offer open source developers some resources to port to their platforms. For example, having access to linux VMs on PPC or s390x would be helpful to debug big-endian issues. |
The same lib not installed in amd64 as well,but all the test have been passed successfully. since you are saying it works in github then it should work here too,the test script written in python /PIL/Image.py having issue. |
I think you sent the wrong link? That is the ppc64le job, just in a different run. Looking at an amd64 job in that same build, I see that it does have libtiff installed: https://travis-ci.com/github/asellappen/Pillow/jobs/477348242#L2500
It works in the Github Actions run because that job also has libtiff installed: https://github.com/python-pillow/Pillow/runs/1774902866#step:6:497
|
To clarify, I'm not saying that there is no issue. I'm just saying that the issue is not ppc64le-specific. The issue (in Pillow) is either that:
|
I agree with @nulano's analysis. Removing libtiff from our GHA Windows jobs causes a failure from the same test. That's a problem that's worth fixing by itself - I've created PR #5232 to do so. |
That PR has now been merged. |
What did you do?
I am working for IBM to port cpu arch ppc64le for open sources , As a part of continuous integration on this package, We have applied changes , This helps us simplify testing later when distributions are re-building and re-releasing, We typically build applications for customers and ISVs, and while we don't use this package directly,
on the part this work , we are currently working on the package Pillow to support ppc64le.
What did you expect to happen?
We included travis job for ppc64le and it fails in testing instead of 100% pass,The failure happens at test test_subifd with AttributeErrorat ,but expectaion is should be passed.
What actually happened?
Ps refer h=ob https://travis-ci.com/github/asellappen/Pillow/jobs/477131803
What are your OS, Python and Pillow versions?
version Pillow 8.2.0.dev0
platform linux 3.8.7 (default, Jan 9 2021, 06:30:31)
[GCC 5.4.0 20160609]
in travis.yml
added the below to support ppc64le
The text was updated successfully, but these errors were encountered: