You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for 201811 build image, swsssdk wheel package is not getting build due to redis==2.10.6 requirement issue. Notied that after upgrading pip to 20.3.3, we are experiencling this issue.
the issue
21:10:41 /sonic/src/sonic-py-swsssdk /sonic
21:10:41 running test
21:10:41 Searching for redis==2.10.6
21:10:41 Reading https://pypi.python.org/simple/redis/
21:10:41 Couldn't find index page for 'redis' (maybe misspelled?)
21:10:41 Scanning index of all packages (this may take a while)
21:10:41 Reading https://pypi.python.org/simple/
21:10:41 No local packages or download links found for redis==2.10.6
21:10:41 error: Could not find suitable distribution for Requirement.parse('redis==2.10.6')
21:10:41 [ FAIL LOG END ] [ target/python-wheels/swsssdk-2.0.1-py3-none-any.whl ]
21:10:41 slave.mk:422: recipe for target 'target/python-wheels/swsssdk-2.0.1-py3-none-any.whl' failed
21:10:41 make: *** [target/python-wheels/swsssdk-2.0.1-py3-none-any.whl] Error 1
21:10:43 Makefile.work:132: recipe for target 'target/sonic-aboot-broadcom.swi' failed
21:10:43 make[1]: *** [target/sonic-aboot-broadcom.swi] Error 2
21:10:43 make[1]: Leaving directory '/data/johnar/workspace/broadcom/buildimage-brcm-201811'
21:10:43 Makefile:6: recipe for target 'target/sonic-aboot-broadcom.swi' failed
So, what I have understood till now, if pip v20.3.3 is able to produce a wheel that is not installable because it raises pip._vendor.packaging.version.InvalidVersion or some error like that (resource- > pypa/pip#9206), it just raises an exception when building the wheel.
SO, this issue occurs when we pinned down pip to 20.3.3 in short.
As of now, there are two solutions mentioned below.
pin down pip to 20.3.3(which it is) and explicitly install packages.
pin down pip to 20.3.4(pip wheel now verifies the built wheel contains valid metadata, and can be installed by a subsequent pip install.)(resource-> https://pip.pypa.io/en/stable/news/) -- didn't try yet
As of now, there are two solutions as mentioned above.
pin down pip to 20.3.3(which it is) and explicitly install packages. -- built successfully.
pin down pip to 20.3.4(pip wheel now verifies the built wheel contains valid metadata, and can be installed by a subsequent pip install.)(resource-> https://pip.pypa.io/en/stable/news/) -- building locally; still waiting for completion.
@samaity my internal 201811 build doesn't seem to need this change. @yxieca, I see build image for 201811 branch is getting failed in upstream too. Kindly let me know if I am missing something.
14:02:05 [ FAIL LOG START ] [ target/python-wheels/swsssdk-2.0.1-py3-none-any.whl ]
14:02:05 /sonic/src/sonic-py-swsssdk /sonic
14:02:05 running test
14:02:05 Searching for redis==2.10.6
14:02:05 Reading https://pypi.python.org/simple/redis/
14:02:05 Couldn't find index page for 'redis' (maybe misspelled?)
14:02:05 Scanning index of all packages (this may take a while)
14:02:05 Reading https://pypi.python.org/simple/
14:02:05 No local packages or download links found for redis==2.10.6
14:02:05 error: Could not find suitable distribution for Requirement.parse('redis==2.10.6')
14:02:05 [ FAIL LOG END ] [ target/python-wheels/swsssdk-2.0.1-py3-none-any.whl ]
14:02:05 slave.mk:422: recipe for target 'target/python-wheels/swsssdk-2.0.1-py3-none-any.whl' failed
14:02:05 make: *** [target/python-wheels/swsssdk-2.0.1-py3-none-any.whl] Error 1
14:03:27 make[1]: *** [Makefile.work:135: target/sonic-broadcom.bin] Error 2
14:03:27 make[1]: Leaving directory '/data/johnar/workspace/broadcom/buildimage-brcm-201811'
14:03:27 make: *** [Makefile:8: target/sonic-broadcom.bin] Error 2
14:03:27 +++ --- Making target/sonic-aboot-broadcom.swi --- +++
14:03:27 BLDENV=stretch make -f Makefile.work stretch
14:03:27 make[1]: Entering directory '/data/johnar/workspace/broadcom/buildimage-brcm-201811'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Sangita Maity [email protected]
Why I did it
for 201811 build image, swsssdk wheel package is not getting build due to
redis==2.10.6requirement issue. Notied that after upgrading pip to 20.3.3, we are experiencling this issue.the issue
So, what I have understood till now, if pip v20.3.3 is able to produce a wheel that is not installable because it raises pip._vendor.packaging.version.InvalidVersion or some error like that (resource- > pypa/pip#9206), it just raises an exception when building the wheel.
SO, this issue occurs when we pinned down pip to 20.3.3 in short.
As of now, there are two solutions mentioned below.
How I did it
How to verify it
Build got successful.