[issue4290] 2to3 fails with sympy

2008-11-10 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: You would like to replace from mptypes import ... by from .mptypes import Is it really a bug? Python is unable to guess if mptypes, functions or settings are global modules or relative modules. Why don't you patch your original code

[issue4290] 2to3 fails with sympy

2008-11-10 Thread Ondrej Certik
Ondrej Certik [EMAIL PROTECTED] added the comment: Hi Victor, thanks for the comments. I copied them to the issue 4292 where they belong and replied there. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290

[issue4290] 2to3 fails with sympy

2008-11-10 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Second metaclass problem fixed in r67178. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290

[issue4290] 2to3 fails with sympy

2008-11-10 Thread Ondrej Certik
Ondrej Certik [EMAIL PROTECTED] added the comment: I can confirm this is now fixed. Thanks very much! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290 ___ ___

[issue4290] 2to3 fails with sympy

2008-11-09 Thread Christian Heimes
Changes by Christian Heimes [EMAIL PROTECTED]: -- assignee: - benjamin.peterson components: +2to3 (2.x to 3.0 conversion tool) nosy: +benjamin.peterson priority: - normal stage: - test needed type: - behavior versions: +Python 2.6 ___ Python

[issue4290] 2to3 fails with sympy

2008-11-09 Thread Ondrej Certik
New submission from Ondrej Certik [EMAIL PROTECTED]: Download my branch of sympy from here: http://github.com/certik/sympy/tree/division3 and run the 2to3 tool with python2.5: $ python2.5 ../2to3/2to3 sympy/ [...] Traceback (most recent call last): File ../2to3/2to3, line 6, in module

[issue4290] 2to3 fails with sympy

2008-11-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I've fixed the first problem in r67177, but I found another one in thirdparty/pyglet. Try running with -x metaclass. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290

[issue4290] 2to3 fails with sympy

2008-11-09 Thread Ondrej Certik
Ondrej Certik [EMAIL PROTECTED] added the comment: Thanks, that was quick! You can delete the thirdparty/pyglet, it's not imported by default. Then the 2to3 passes. But I found another bug: issue 4292 ___ Python tracker [EMAIL PROTECTED]