Home Help Center

python installation problem

brianbrian Member brian whitneyOrganization: boulder research and developmentProject: MarketBank ✭✭✭
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

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • brianbrian Member brian whitneyOrganization: boulder research and developmentProject: MarketBank ✭✭✭
    Thanks for the workaround Benoit.

    Brian
  • brianbrian Member brian whitneyOrganization: boulder research and developmentProject: MarketBank ✭✭✭
    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.
  • brianbrian Member brian whitneyOrganization: boulder research and developmentProject: MarketBank ✭✭✭
    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
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Sorry, I thought I had fixed it but obviously I didn't :). It will be fixed in the next release!

    Benoit.
Sign In or Register to comment.