Archived

This forum has been archived. Please start a new discussion on GitHub.

python installation problem

I'm probably doing something wrong, but ...

Just downloaded 1.3, made it successfully without errors, and then tried
"python allTests.py" and got this:

Traceback(most recent call last):
File "allTests.py", line 113, in ?
loop = False
NameError: name 'False' is not defined

I did a "python -V" to get the version and it is 2.2 as required.

Did this with 1.2 and it worked.

Any insight would be appreciated.

Thanks,

Brian

Comments

  • benoit
    benoit Rennes, France
    Thanks for bringing this to our attention! It looks like the allTests.py script isn't working anymore with Python 2.2 (support for True and False was added in Python 2.2.1). You should be able to get the script working by replacing False with 0 and True with 1, or by upgrading python to an earlier version. We'll fix this in the next release.

    Benoit.
  • Thanks for the workaround Benoit.

    Brian
  • By the way, I noticed that there is at least one other .py file in the installation that needs this fix -> config/TestUtil.py. There may be others as well.
  • FYI, looks like the problem is still not fixed in 1.4. No biggie, all we had to do was change "True" to "1" in TestUtil.py again and it worked, but thought you guys would like to know.

    Brian
  • benoit
    benoit Rennes, France
    Sorry, I thought I had fixed it but obviously I didn't :). It will be fixed in the next release!

    Benoit.