This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年07月20日 08:07 by barry-scott, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg70065 - (view) | Author: Barry Alan Scott (barry-scott) * | Date: 2008年07月20日 08:07 | |
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.4.11
BuildVersion: 8S165
$ python3.0
Python 3.0b2 (r30b2:65080, Jul 20 2008, 08:46:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ /Library/Frameworks/Python.framework//Versions/3.0/bin/2to3 a.py
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework//Versions/3.0/bin/2to3",
line 5, in <module>
sys.exit(refactor.main("lib2to3/fixes"))
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 81, in main
rt = RefactoringTool(fixer_dir, options)
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 160, in __init__
self.pre_order, self.post_order = self.get_fixers()
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 182, in get_fixers
fix_names = get_all_fix_names(self.fixer_dir)
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 95, in get_all_fix_names
names = os.listdir(fixer_dir)
OSError: [Errno 2] No such file or directory: 'lib2to3/fixes'
|
|||
| msg70066 - (view) | Author: Barry Alan Scott (barry-scott) * | Date: 2008年07月20日 08:20 | |
Fixing 2to3 with the full path to the fixes folder gets this traceback:
$ ./2to3 /dev/null
Traceback (most recent call last):
File "./2to3", line 5, in <module>
sys.exit(refactor.main("/Library/Frameworks/Python.framework//Versions/3.0/lib/python3.0/lib2to3/fixes"))
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 81, in main
rt = RefactoringTool(fixer_dir, options)
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 160, in __init__
self.pre_order, self.post_order = self.get_fixers()
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib2to3/refactor.py",
line 185, in get_fixers
mod = __import__(fixer_pkg + ".fix_" + fix_name, {}, {}, ["*"])
ValueError: Empty module name
|
|||
| msg70552 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年08月01日 13:57 | |
This is a duplicate of #3131. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:36 | admin | set | github: 47670 |
| 2008年08月01日 13:57:38 | benjamin.peterson | set | status: open -> closed nosy: + benjamin.peterson resolution: duplicate messages: + msg70552 |
| 2008年07月20日 08:20:32 | barry-scott | set | messages: + msg70066 |
| 2008年07月20日 08:07:06 | barry-scott | create | |