<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Ken, can you clarify what you did?  I have the same issue in my local dev environment for barbican.</div>
<div><br>
</div>
<div>I had keystonemidleware 1.6.1, pbr 1.1.1</div>
<div><br>
</div>
<div>After the update to requirements.txt I get the same failure: ValueError: ("Expected ',' or end-of-list in", "python-ldap>=2.4;python_version=='2.7'", 'at', ";python_version=='2.7’")</div>
<div><br>
</div>
<div>I deleted my .tox, .testrepository, still had the problem.  Then I found your email.</div>
<div><br>
</div>
<div>I updated keystonemiddleware to 2.0.0 (which brought along pbr 1.2.0) but the problem still exists.</div>
<div><br>
</div>
<div>Simply running tox gives me the problem for all of our targets.</div>
<div><br>
</div>
<div>Thanks!</div>
<div>
<div><br>
</div>
<img src="cid:4D5C76B6-CDED-4B43-AB60-9ED60F98BC16" type="image/png"></div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"Chen, Ken" <<a href="mailto:ken.chen@intel.com">ken.chen@intel.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, June 25, 2015 at 9:02 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] [devstack][keystone][nova][glance][heat] error met when dealing with requirements files<br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I found the issue. It is because my keystonemiddleware version is 1.6.1, while this version require pbr<1.0, >=0.6 (for keystonemiddleware>=1.5.0). So in the devstack installation, it will downgrade my pbr from
 1.2.0 to 0.11.0. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">After I upgrade my keystonemiddleware to 2.0.0 and pbr back to 1.2.0, this issue does not exist now. Therefore it is a bug, for pbr-0.11.0 is not compatible with those projects with lines like
</span>“*;python_version=='2.7'”<span style="color:#1F497D">, while in their requirements.txt files there are still “pbr<2.0,>=0.11”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Ken<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="color:#1F497D"><o:p> </o:p></span></a></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Chen, Ken <br>
<b>Sent:</b> Friday, June 26, 2015 9:16 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [devstack][keystone][nova][glance][heat] error met when dealing with requirements files<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Today when I tried to build devstack on Ubuntu trusty, I found errors that I have not met before:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">error in setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in python-ldap>=2.4;python_version=='2.7' at ;python_version=='2.7'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It is because in keystone/test_requirements.txt, there is a line which cannot be recognized (the part after the semicolon):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">python-ldap>=2.4;python_version=='2.7'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">There are similar issue in glance/test_requirements.txt, nova/test_requirements.txt, and heat/requirements.txt where we have line like “*;python_version=='2.7'”<o:p></o:p></p>
<p class="MsoNormal">I do not know why, for I have already upgraded my pip and setuptools to the latest version.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ken<o:p></o:p></p>
</div>
</div>
</div>
</span>
</body>
</html>