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

Introduce Pillow380NewArraySieve prescription #49

Conversation

pacospace
Copy link
Contributor

Signed-off-by: Francesco Murdaca fmurdaca@redhat.com

What type of PR is this?

/kind feature

Related issues or additional information of the supplied change

Fixes: #48
Related-To: python-pillow/Pillow#5572

Description

Introduce a Sieve Prescription for pipelines so that the resolver skips that package.

cc @t-vi

Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
@sesheta sesheta added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 8, 2021
@sesheta
Copy link
Member

sesheta commented Jul 8, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from pacospace after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sesheta sesheta added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 8, 2021
@pacospace
Copy link
Contributor Author

/assign @fridex

@pacospace
Copy link
Contributor Author

/cc @fridex

@sesheta sesheta requested a review from fridex July 8, 2021 11:09
type: WARNING
stack_info:
- type: WARNING
message: "Pillow in version 3.8.0 filtered out"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to filter out pillow==3.8.0 for all stacks or only for those that are running with specific numpy versions?

Copy link
Contributor Author

@pacospace pacospace Jul 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we run DM with a new script, to discover which versions are affected by the error TypeError: __array__() takes 1 positional argument but 2 were given? It seems the issue was introduced by Pillow, the logic in Numpy was there, but don't know since when.

Maybe we can ask the community from Pillow. cc @t-vi @hugovk :)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any and all numpy versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you very much @t-vi!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the issue is dependent on numpy presence, this should be turned into a step pipeline unit and corresponding pillow version should be filtered only based on numpy presence.

https://thoth-station.ninja/docs/developers/adviser/prescription.html#steps

Otherwise, resolver will filter out all the pillow==3.8.0 versions, even for stacks that do not have the issue stated.

@pacospace pacospace requested a review from fridex July 12, 2021 08:05
@hugovk
Copy link

hugovk commented Jul 12, 2021

The Pillow version number is wrong, python-pillow/Pillow#5572 fixed a regression in 8.3.0 (Jul 1, 2021) not 3.8.0 (no such release exists).

@pacospace
Copy link
Contributor Author

The Pillow version number is wrong, python-pillow/Pillow#5572 fixed a regression in 8.3.0 (Jul 1, 2021) not 3.8.0 (no such release exists).

@hugovk thanks, sorry friday evening PRs :)

@fridex
Copy link
Contributor

fridex commented Jul 13, 2021

Adjusted in #53 PTAL

@pacospace pacospace closed this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce prescription for numpy and Pillow issue at runtime
5 participants