ianweller/mw — Issue #10: Installation Fails
Author: justdan96
Created: 2012-01-10 16:14:02+00:00
State: open

Installing on CentOS 5.6, installation fails:

[root@cam-rpmbuild ianweller-mw-40ecd66]# python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/mw
copying src/mw/metadir.py -> build/lib/mw
copying src/mw/__init__.py -> build/lib/mw
copying src/mw/cli.py -> build/lib/mw
copying src/mw/clicommands.py -> build/lib/mw
running build_scripts
creating build/scripts-2.4
copying and adjusting bin/mw -> build/scripts-2.4
changing mode of build/scripts-2.4/mw from 644 to 755
running install_lib
creating /usr/lib/python2.4/site-packages/mw
copying build/lib/mw/metadir.py -> /usr/lib/python2.4/site-packages/mw
copying build/lib/mw/__init__.py -> /usr/lib/python2.4/site-packages/mw
copying build/lib/mw/cli.py -> /usr/lib/python2.4/site-packages/mw
copying build/lib/mw/clicommands.py -> /usr/lib/python2.4/site-packages/mw
byte-compiling /usr/lib/python2.4/site-packages/mw/metadir.py to metadir.pyc
File "/usr/lib/python2.4/site-packages/mw/metadir.py", line 52
with open(self.config_loc, 'wb') as config_file:
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python2.4/site-packages/mw/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/mw/cli.py to cli.pyc
byte-compiling /usr/lib/python2.4/site-packages/mw/clicommands.py to clicommands.pyc
File "/usr/lib/python2.4/site-packages/mw/clicommands.py", line 229
with file(full_filename, 'w') as fd:
^
SyntaxError: invalid syntax
running install_scripts
copying build/scripts-2.4/mw -> /usr/bin
changing mode of /usr/bin/mw to 755
[root@cam-rpmbuild ianweller-mw-40ecd66]# /usr/bin/mw
mw mwm
[root@cam-rpmbuild ianweller-mw-40ecd66]# /usr/bin/mw
Traceback (most recent call last):
File "/usr/bin/mw", line 21, in ?
from mw import cli
File "/usr/lib/python2.4/site-packages/mw/cli.py", line 19, in ?
import mw.clicommands
File "/usr/lib/python2.4/site-packages/mw/clicommands.py", line 229
with file(full_filename, 'w') as fd:
^
SyntaxError: invalid syntax
[root@cam-rpmbuild ianweller-mw-40ecd66]#