Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError for 'orig_meta_prefix' in futurize --stage2 #138

Open
ceridwen opened this issue Mar 29, 2015 · 0 comments
Open

NameError for 'orig_meta_prefix' in futurize --stage2 #138

ceridwen opened this issue Mar 29, 2015 · 0 comments

Comments

@ceridwen
Copy link

I'm trying to get a package (PEAK-Rules) that depends on http://svn.eby-sarna.com/DecoratorTools/ working on Python 3. On test_decorators.py, the stage 2 script crashes with the following traceback:

RefactoringTool: Refactoring ./DecoratorTools/test_decorators.py
Traceback (most recent call last):
File "/usr/local/bin/futurize", line 9, in
load_entry_point('future==0.14.3', 'console_scripts', 'futurize')()
File "/usr/local/lib/python2.7/dist-packages/libfuturize/main.py", line 293, in main
options.processes)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 706, in refactor
items, write, doctests_only)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 301, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 747, in refactor_file
_args, *_kwargs)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 354, in refactor_file
tree = self.refactor_string(input, filename)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 386, in refactor_string
self.refactor_tree(tree, name)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 460, in refactor_tree
new = fixer.transform(node, results)
File "/usr/local/lib/python2.7/dist-packages/libfuturize/fixes/fix_metaclass.py", line 247, in transform
pass_leaf.prefix = orig_meta_prefix
NameError: global name 'orig_meta_prefix' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants