On Sun, March 13, 2011 08:03, David Binger wrote:
> I think this must be caused by an import being interpreted as a relative
> import.
> I added "from __future__ import absolute_import" to the top of web.py,
> where there is an import from the system "http" package.   Maybe this
> will solve this problem.

Sorry, false alarm on that particular issue, mea culpa.

Looking at this deeper today it looks like the problem lies not in qp but
in "Distribute" / the setuptools fork which I've made use of from time to
time.

A recently re-written testing setup script and some local shell changes
brought the problem to the surface as my sudo environment was missing
USE_DISTUTILS.

Maybe a package name collision note in the setup notes in README.txt will
suffice for changes.

In the probably not a false alarm department:
--------------------------------------------

qpy's qpcheck.py needs updating for 3.2 to accommodate language changes it
seems. A "test" and traceback attached.
mw@frog$ python2.7 qpcheck.py compile.py
mw@frog$ python3.1 qpcheck.py compile.py
mw@frog$ python3.2 qpcheck.py compile.py
Traceback (most recent call last):
  File "qpcheck.py", line 507, in <module>
    main()
  File "qpcheck.py", line 502, in main
    check(arg)
  File "qpcheck.py", line 462, in check
    traverse(tree, global_namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 179, in traverse
    traverse(suite, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 443, in traverse
    traverse(child, namespace, unresolved, unused)
  File "qpcheck.py", line 232, in traverse
    assert 0, symtree(node)
AssertionError: [('expr_stmt', 271), [('testlist_star_expr', 272), [('test', 
302), [('or_test', 306), [('and_test', 307), [('not_test', 308), 
[('comparison', 309), [('expr', 312), [('xor_expr', 313), [('and_expr', 314), 
[('shift_expr', 315), [('arith_expr', 316), [('term', 317), [('factor', 318), 
[('power', 319), [('atom', 320), [('NAME', 1), 'argument', 24]]]]]]]]]]]]]]]], 
[('EQUAL', 22), '=', 24], [('testlist_star_expr', 272), [('test', 302), 
[('or_test', 306), [('and_test', 307), [('not_test', 308), [('comparison', 
309), [('expr', 312), [('xor_expr', 313), [('and_expr', 314), [('shift_expr', 
315), [('arith_expr', 316), [('term', 317), [('factor', 318), [('power', 319), 
[('atom', 320), [('NAME', 1), 'power', 24]], [('trailer', 322), [('LSQB', 9), 
'[', 24], [('subscriptlist', 323), [('subscript', 324), [('test', 302), 
[('or_test', 306), [('and_test', 307), [('not_test', 308), [('comparison', 
309), [('expr', 312), [('xor_expr', 313), [('and_expr', 314), [('shift_expr', 
315), [('arith_expr', 316), [('term', 317), [('factor', 318), [('power', 319), 
[('atom', 320), [('NUMBER', 2), '2', 24]]]]]]]]]]]]]]]]], [('RSQB', 10), ']', 
24]], [('trailer', 322), [('LSQB', 9), '[', 24], [('subscriptlist', 323), 
[('subscript', 324), [('test', 302), [('or_test', 306), [('and_test', 307), 
[('not_test', 308), [('comparison', 309), [('expr', 312), [('xor_expr', 313), 
[('and_expr', 314), [('shift_expr', 315), [('arith_expr', 316), [('term', 317), 
[('factor', 318), [('power', 319), [('atom', 320), [('NUMBER', 2), '2', 
24]]]]]]]]]]]]]]]]], [('RSQB', 10), ']', 24]], [('trailer', 322), [('LSQB', 9), 
'[', 24], [('subscriptlist', 323), [('subscript', 324), [('test', 302), 
[('or_test', 306), [('and_test', 307), [('not_test', 308), [('comparison', 
309), [('expr', 312), [('xor_expr', 313), [('and_expr', 314), [('shift_expr', 
315), [('arith_expr', 316), [('term', 317), [('factor', 318), [('power', 319), 
[('atom', 320), [('NUMBER', 2), '1', 24]]]]]]]]]]]]]]]]], [('RSQB', 10), ']', 
24]]]]]]]]]]]]]]]]]
_______________________________________________
QP mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/qp

Reply via email to