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

ansible-builder is slow/sometime fail due to pip depsolver #425

Open
grimlokason opened this issue Oct 20, 2022 · 7 comments
Open

ansible-builder is slow/sometime fail due to pip depsolver #425

grimlokason opened this issue Oct 20, 2022 · 7 comments

Comments

@grimlokason
Copy link

Hello,

Is it possible to add the possibility to use a constraint file to avoid the check of outdated python package ?

In my case :

Best regards !

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Oct 20, 2022
@wiad
Copy link

wiad commented Oct 21, 2022

I am also hitting the error caused by ansible-builder downloading openshift==0.13.0

@Akasurde
Copy link
Member

Akasurde commented Nov 1, 2022

@grimlokason @wiad You can use requirements.txt to specify the constraints.

@eqrx eqrx removed the needs_triage New item that needs to be triaged label Nov 1, 2022
@wiad
Copy link

wiad commented Nov 1, 2022

@Akasurde when i try this (openshift!=0.13.0) I get rid of the error but the ansible-builder command takes forever to complete because of pip backtracking dependencies (not just of the openshift package but for almost every package). After almost 5 hours I gave up and aborted the build.

@grimlokason
Copy link
Author

You can use requirements.txt to specify the constraints.

Hello, @Akasurde

Every package within the requirements.txt is going to be installed, thats not what the constraints option of pip is doing.

@MallocArray
Copy link

I was able to speed up my builds by adding a minimum version to each item in the file

ucsmsdk>=0.9.14
pywinrm>=0.4.3

@grimlokason
Copy link
Author

I was able to speed up my builds by adding a minimum version to each item in the file

ucsmsdk>=0.9.14
pywinrm>=0.4.3

Hello,
And how do you do when the package that is leading to the issue is not in your requirement file but is a dependencies ?
It's quite annoying in my point of view to have to add a dependencies in the requierement :/

@MallocArray
Copy link

And how do you do when the package that is leading to the issue is not in your requirement file but is a dependencies ?

I ended up just doing pip3 list after a successful build to show all installed packages and then added whatever they are currently running as the minimum to requirements.txt

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

5 participants