Discussion:
[mongodb-dev] urgent: troubleshoot build errors
Monika Shah
2018-03-16 14:55:31 UTC
Permalink
Following command mentioned in build steps give error
sudo pip2 install -r buildscripts/requirements.txt
Exception:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in
main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
262, in run
for req in parse_requirements(filename, finder=finder, options=options,
session=session):
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in
parse_requirements
req = InstallRequirement.from_line(line, comes_from,
prereleases=getattr(options, "pre", None))
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
req = pkg_resources.Requirement.parse(req)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667, in
parse
reqs = list(parse_requirements(s))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605, in
parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2583, in
scan_list
"Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", 'mypy == 0.501 ;
python_version > "3"', 'at', ' ; python_version > "3"')

Storing debug log for failure in /home/ms/.pip/pip.log
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/078e65ad-239d-49f8-816f-25c017d9248b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Stephen Steneker' via mongodb-dev
2018-03-19 01:22:02 UTC
Permalink
Post by Monika Shah
Following command mentioned in build steps give error
sudo pip2 install -r buildscripts/requirements.txt
Hi Monika,

What version of pip2 are you using (pip2 --version) and what branch/version
of MongoDB server are you trying to build?

It looks like you may be using an older version of pip which doesn't
support the conditional python_version syntax.

Upgrading to the current version of pip may resolve this: sudo -H pip2
install --upgrade pip.

Regards,
Stennie
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/9b673d65-d114-4181-848c-b3cd07fc2a15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...