|
Boost Testing : |
Subject: Re: [Boost-testing] [EXTERNAL] Re: error encountered running run.py
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2014-10-31 16:24:54
On 10/31/14 11:31, Belcourt, Kenneth wrote:
> On Oct 31, 2014, at 12:18 PM, Aparna Kumta<aparna.kumta_at_[hidden]> wrote:
>
>> On 10/31/14 10:55, Belcourt, Kenneth wrote:
>>> On Oct 31, 2014, at 11:52 AM, Aparna Kumta<aparna.kumta_at_[hidden]> wrote:
>>>
>>>> On 10/31/14 10:49, Belcourt, Kenneth wrote:
>>>>> On Oct 31, 2014, at 11:31 AM, Aparna Kumta<aparna.kumta_at_[hidden]> wrote:
>>>>>
>>>>>> On 10/31/14 10:04, Belcourt, Kenneth wrote:
>>>>>>> On Oct 31, 2014, at 10:22 AM, Aparna Kumta<aparna.kumta_at_[hidden]> wrote:
>>>>>>>
>>>>>>>> On 10/30/14 19:49, Belcourt, Kenneth wrote:
>>>>>>>>> On Oct 30, 2014, at 5:49 PM, Niklas Angare<li51ckf02_at_[hidden]> wrote:
>>>>>>>>>
>>>>>>>>>> "Tom Kent"<lists_at_[hidden]> wrote:
>>>>>>>>>>> On Wed, Oct 29, 2014 at 7:04 PM, Aparna Kumta<aparna.kumta_at_[hidden]>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> I have just downloaded run.py and it is my first time trying to setup and
>>>>>>>>>>>> run the regression tests.
>>>>>>>>>> ...
>>>>>>>>>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
>>>>>>>>>>>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>>>>>>>> I've seen this when right clicking on the link from the page and
>>>>>>>>>>> downloading, instead of copying and pasting only the code from the github
>>>>>>>>>>> source page.
>>>>>>>>>>>
>>>>>>>>>>> Download from this link instead:
>>>>>>>>>>> https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src/run.py
>>>>>>>>>> The error message actually says that the syntax error is in regression.py, which is normally downloaded by run.py.
>>>>>>>>>>
>>>>>>>>>> Can someone update the URL that run.py uses? Noel? René? As I mentioned in the "Link to run.py" thread, I believe URL:s similar to the one above are now preferred.
>>>>>>>>> Its in develop commit d3f46b9d87547. Hopefully that will fix the issue.
>>>>>>>> I assume I would need to download run.py again?
>>>>>>> Yes, you need a current checkout of run.py from develop. The tag option to run.py specifies which branch to test, for example:
>>>>>>>
>>>>>> I just downloaded run.py from
>>>>>>
>>>>>> https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src/run.py
>>>>>>
>>>>>> and as before ran
>>>>>> python run.py --runner=firsttest --toolset=sun --tag=develop
>>>>>>
>>>>>> I am still seeing the same error.
>>>>>>
>>>>>> As mentioned previously, the error seems to come from the first line in regression.py
>>>>> This is on Sun? What version of python is this?
>>>> Yes, on Sun Python version is 2.6.8
>>> Okay, old Python. So basically the Python interpreter is unable to correctly handle the DTD validation. If you remove that line, does the testing startup okay?
>> When I run
>>
>> python run.py --runner=firsttest --toolset=sun --tag=develop
>>
>> it recreates the tools_regression_src directory, and copies over the regression.py file which contains the DTD line, and fails right away.
> Yes, your other either email said as much. I think you may have hit resend.
>
> When my files are downloaded, the first line is the python shell, heres the first 8 lines of regression.py.
>
> #!/usr/bin/python
>
> # Copyright MetaCommunications, Inc. 2003-2007
> # Copyright Rene Rivera 2007-2013
> #
> # Distributed under the Boost Software License, Version 1.0.
> # (See accompanying file LICENSE_1_0.txt or copy at
> # http://www.boost.org/LICENSE_1_0.txt)
>
> So Im not sure why yours has raw XML content, it shouldnt. I suspect either your Python version is broken (its quite old) or your LANG is set to something bad. Whats LANG on you system? If its different than this, trying changing it and see if it downloads the file correctly.
>
> -bash-4.1$ env | grep LANG
> LANG=en_US.UTF-8
I have LANG=C
I changed LANG and it still didn't work. I will look into updating Python.
-Aparna
>
> Noel
>
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing