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
2to3 throws AttributeError during distutils installation with -O #55464
Labels
Comments
When running a distutils installation of Cython (which uses lib2to3) as "python3.2 -O setup.py bdist", I get this: Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Traceback (most recent call last):
File "setup.py", line 319, in <module>
**setup_args
File "/opt/python3.2-opt/lib/python3.2/distutils/core.py", line 149, in setup
dist.run_commands()
File "/opt/python3.2-opt/lib/python3.2/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/opt/python3.2-opt/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/opt/python3.2-opt/lib/python3.2/distutils/command/bdist.py", line 132, in run
self.run_command(cmd_name)
File "/opt/python3.2-opt/lib/python3.2/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/opt/python3.2-opt/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/opt/python3.2-opt/lib/python3.2/distutils/command/bdist_dumb.py", line 74, in run
self.run_command('build')
File "/opt/python3.2-opt/lib/python3.2/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/opt/python3.2-opt/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/opt/python3.2-opt/lib/python3.2/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/opt/python3.2-opt/lib/python3.2/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/opt/python3.2-opt/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/opt/python3.2-opt/lib/python3.2/distutils/command/build_py.py", line 404, in run
self.run_2to3(self.updated_files)
File "/opt/python3.2-opt/lib/python3.2/distutils/util.py", line 649, in run_2to3
return run_2to3(files, self.fixer_names, self.options, self.explicit)
File "/opt/python3.2-opt/lib/python3.2/distutils/util.py", line 597, in run_2to3
r.refactor(files, write=True)
File "/opt/python3.2-opt/lib/python3.2/lib2to3/refactor.py", line 296, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File "/opt/python3.2-opt/lib/python3.2/lib2to3/refactor.py", line 349, in refactor_file
tree = self.refactor_string(input, filename)
File "/opt/python3.2-opt/lib/python3.2/lib2to3/refactor.py", line 381, in refactor_string
self.refactor_tree(tree, name)
File "/opt/python3.2-opt/lib/python3.2/lib2to3/refactor.py", line 442, in refactor_tree
find_root(node)
File "/opt/python3.2-opt/lib/python3.2/lib2to3/fixer_util.py", line 276, in find_root
while node.type != syms.file_input:
AttributeError: 'NoneType' object has no attribute 'type' |
scoder
added
type-crash
A hard crash of the interpreter, possibly with a core dump
topic-2to3
labels
Feb 20, 2011
This does not look specific to distutils. Can you reproduce with bare 2to3? If so, can you attach the test script of unit test diff? :) (P.S. “crash” is used for segfaults, not unhandled exceptions.) |
merwok
added
type-bug
An unexpected behavior, bug, or error
and removed
type-crash
A hard crash of the interpreter, possibly with a core dump
labels
Feb 25, 2011
Python 3.2 is out of date, and distutils and 2to3 are both deprecated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: