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

Fix the pip dependency issue #14012

Closed
xumia opened this issue Feb 28, 2023 · 0 comments
Closed

Fix the pip dependency issue #14012

xumia opened this issue Feb 28, 2023 · 0 comments
Assignees

Comments

@xumia
Copy link
Collaborator

xumia commented Feb 28, 2023

Description

The error logs as below, see build: https://dev.azure.com/mssonic/build/_build/results?buildId=225565&view=logs&jobId=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&j=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&t=b71397ab-4d88-53c1-4db7-b4fc5ec36f6f

2023-02-27T19:13:43.2831129Z INFO: pip is looking at multiple versions of swsssdk to determine which version is compatible with other requirements. This could take a while.
2023-02-27T19:13:43.2831469Z �[91mERROR: Cannot install sonic-config-engine==1.0 because these package versions have conflicting dependencies.
2023-02-27T19:13:43.2831828Z �[0m
2023-02-27T19:13:43.2831931Z The conflict is caused by:
2023-02-27T19:13:43.2832135Z     sonic-config-engine 1.0 depends on lxml==4.9.1
2023-02-27T19:13:43.2832281Z     The user requested (constraint) lxml==4.6.5
2023-02-27T19:13:43.2832350Z 
2023-02-27T19:13:43.2832461Z To fix this you could try to:
2023-02-27T19:13:43.2832665Z 1. loosen the range of package versions you've specified
2023-02-27T19:13:43.2832839Z 2. remove package versions to allow pip attempt to solve the dependency conflict
2023-02-27T19:13:43.2832923Z 
2023-02-27T19:13:43.2833220Z �[91mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
2023-02-27T19:13:43.2833885Z �[0mThe command '/bin/sh -c cd /python-wheels/ && pip3 install swsssdk-2.0.1-py3-none-any.whl sonic_py_common-1.0-py3-none-any.whl sonic_yang_mgmt-1.0-py3-none-any.whl sonic_yang_models-1.0-py3-none-any.whl sonic_config_engine-1.0-py3-none-any.whl' returned a non-zero code: 1
2023-02-27T19:13:43.2834258Z [  FAIL LOG END  ] [ target/docker-config-engine-buster.gz ]

Caused by the change:
image

Steps to reproduce the issue:

Describe the results you received:

Describe the results you expected:

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@xumia xumia self-assigned this Feb 28, 2023
xumia added a commit that referenced this issue Mar 3, 2023
…ackages (#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue #14012

How I did it
Try to use the installation command without constraint

How to verify it
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this issue Mar 3, 2023
…ackages (sonic-net#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue sonic-net#14012

How I did it
Try to use the installation command without constraint

How to verify it
@xumia xumia closed this as completed Mar 3, 2023
mssonicbld pushed a commit that referenced this issue Mar 3, 2023
…ackages (#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue #14012

How I did it
Try to use the installation command without constraint

How to verify it
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this issue Mar 6, 2023
…ackages (sonic-net#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue sonic-net#14012

How I did it
Try to use the installation command without constraint

How to verify it
mssonicbld pushed a commit that referenced this issue Mar 7, 2023
…ackages (#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue #14012

How I did it
Try to use the installation command without constraint

How to verify it
qiluo-msft pushed a commit that referenced this issue Mar 7, 2023
…ackages (#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue #14012

How I did it
Try to use the installation command without constraint

How to verify it
xumia added a commit to xumia/sonic-buildimage-1 that referenced this issue Mar 10, 2023
…ackages (sonic-net#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue sonic-net#14012

How I did it
Try to use the installation command without constraint

How to verify it
github-actions bot pushed a commit to liushilongbuaa/sonic-buildimage that referenced this issue Aug 29, 2023
…ackages (sonic-net#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue sonic-net#14012

How I did it
Try to use the installation command without constraint

How to verify it
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

1 participant