Created on 2008-11-06 17:31 by wplappert, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (5) |
|
|
msg75571 - (view) |
Author: Winfried Plappert (wplappert) |
Date: 2008-11-06 17:31 |
I tried to check the tracker for an existing issue with the conversion tool, but I could not find one. I am using the "python2.6 Python2.6/Tools/scripts/2to3 -w -v ." command to convert existing Python scripts to Python3.0. I made two observations: 1. Tkinter from Tkinter import (N, E, ...) does NOT get translated to from tkinter import (N, E, ...) 2. 2to3 produces relative imports for stuff which lives in the same directory, but trying to compile the stuff, I get the error: org: from global_stuff import * 2t3: from .global_stuff import * ValueError: Attempted relative import in non-package |
|
|
msg75572 - (view) |
Author: Benjamin Peterson (benjamin.peterson) *  |
Date: 2008-11-06 17:59 |
The relative import problem has been fixed that will be released in 2.6.1. |
|
|
msg75573 - (view) |
Author: Winfried Plappert (wplappert) |
Date: 2008-11-06 18:04 |
and it is also fixed in 3.0rc1: I reran the conversion, but issue 2 still persists, |
|
|
msg75574 - (view) |
Author: Winfried Plappert (wplappert) |
Date: 2008-11-06 18:05 |
Sorry, issue 1 still persists: From Tkinter import (bla,blah, blahh) |
|
|
msg75642 - (view) |
Author: Benjamin Peterson (benjamin.peterson) *  |
Date: 2008-11-08 18:29 |
The other problem is fixed in r67170. |
|
|
History |
|
|
|
Date |
User |
Action |
Args |
2022-04-11 14:56:41 |
admin |
set |
github: 48521 |
2008-11-08 18:29:05 |
benjamin.peterson |
set |
status: open -> closedresolution: fixedmessages: + |
2008-11-06 18:06:41 |
benjamin.peterson |
set |
priority: high |
2008-11-06 18:05:54 |
wplappert |
set |
messages: + |
2008-11-06 18:04:44 |
wplappert |
set |
messages: + |
2008-11-06 17:59:32 |
benjamin.peterson |
set |
type: compile error -> behaviormessages: + nosy: + benjamin.peterson |
2008-11-06 17:31:52 |
wplappert |
create |
|