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

[201911] [sonic-slave-jessie]: use pip to install nose package directly #7501

Merged
merged 5 commits into from
Apr 30, 2021

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Apr 30, 2021

What/Why I did:
Same as #7257

Fixes for jessie docker slave:

2021-04-30T03:12:46.6947343Z Step 18/40 : RUN pip install mockredispy==2.9.3
2021-04-30T03:12:46.8378726Z  ---> Running in 4fcfb5f8fd10
2021-04-30T03:12:48.2022504Z Collecting mockredispy==2.9.3
2021-04-30T03:12:48.3352051Z   Downloading https://files.pythonhosted.org/packages/0a/f1/d7db33898151aa9a1d647654cac55d01a5a1302fa4244af5fb5d3021f848/mockredispy-2.9.3.tar.gz
2021-04-30T03:12:48.6407510Z     Complete output from command python setup.py egg_info:
2021-04-30T03:12:48.6409394Z     Couldn't find index page for 'nose' (maybe misspelled?)
2021-04-30T03:12:48.6410146Z     No local packages or download links found for nose
2021-04-30T03:12:48.6410782Z     Traceback (most recent call last):
2021-04-30T03:12:48.6411357Z       File "<string>", line 1, in <module>
2021-04-30T03:12:48.6412377Z       File "/tmp/pip-build-w2Gwnh/mockredispy/setup.py", line 29, in <module>
2021-04-30T03:12:48.6413377Z         'with_redis = mockredis.noseplugin:WithRedis'
2021-04-30T03:12:48.6414193Z       File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
2021-04-30T03:12:48.6414769Z         _setup_distribution = dist = klass(attrs)
2021-04-30T03:12:48.6415607Z       File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in __init__
2021-04-30T03:12:48.6416367Z         self.fetch_build_eggs(attrs['setup_requires'])
2021-04-30T03:12:48.6417183Z       File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_build_eggs
2021-04-30T03:12:48.6417703Z         replace_conflicting=True,
2021-04-30T03:12:48.6418442Z       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve
2021-04-30T03:12:48.6419022Z         dist = best[req.key] = env.best_match(req, ws, installer)
2021-04-30T03:12:48.6420121Z       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_match
2021-04-30T03:12:48.6420789Z         return self.obtain(req, installer)
2021-04-30T03:12:48.6422199Z       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtain
2021-04-30T03:12:48.6423364Z         return installer(requirement)
2021-04-30T03:12:48.6424330Z       File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fetch_build_egg
2021-04-30T03:12:48.6424943Z         return cmd.easy_install(req)
2021-04-30T03:12:48.6425885Z       File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 630, in easy_install
2021-04-30T03:12:48.6426528Z         raise DistutilsError(msg)
2021-04-30T03:12:48.6427476Z     distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('nose')
2021-04-30T03:12:48.6428058Z     
2021-04-30T03:12:48.6428935Z     ----------------------------------------
2021-04-30T03:12:48.6488700Z �[91mCommand "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-w2Gwnh/mockredispy/

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi abdosi changed the title [sonic-slave-jessie]: use pip to install nose package directly [201911] [sonic-slave-jessie]: use pip to install nose package directly Apr 30, 2021
@lguohan lguohan merged commit 55cd164 into sonic-net:201911 Apr 30, 2021
@MikeHcChen
Copy link

I found 202006, 202012 branches also need this patch, otherwise the building process will be failed.

pphuchar pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 5, 2022
…ly (sonic-net#7501)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
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

Successfully merging this pull request may close these issues.

4 participants