[SOLVED] compiling plwm-svn stops at 'byte-compiling' stage
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
compiling plwm-svn stops at 'byte-compiling' stage
I'm running Arch and certain python files aren't compiling for me when building plwm-svn from AUR. Here is the output from yaourt starting where things go bad:
Code:
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/wmanager.py to wmanager.pyc
File "/usr/lib/python3.1/site-packages/plwm/wmanager.py", line 306
except error.BadWindow, e:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/keys.py to keys.pyc
File "/usr/lib/python3.1/site-packages/plwm/keys.py", line 99
raise error, s
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mw_clock.py to mw_clock.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/setup.py to setup.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/inspect.py to inspect.pyc
File "/usr/lib/python3.1/site-packages/plwm/inspect.py", line 194
except socket.error, err:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mw_xmms2.py to mw_xmms2.pyc
File "/usr/lib/python3.1/site-packages/plwm/mw_xmms2.py", line 74
except IOError, detail:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/filters.py to filters.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/modestatus.py to modestatus.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/message.py to message.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/outline.py to outline.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/modewindow.py to modewindow.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/views.py to views.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mouse.py to mouse.pyc
File "/usr/lib/python3.1/site-packages/plwm/mouse.py", line 173
raise error, s
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/event.py to event.pyc
File "/usr/lib/python3.1/site-packages/plwm/event.py", line 622
except select.error, val:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/focus.py to focus.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/__init__.py to __init__.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mw_watchfiles.py to mw_watchfiles.pyc
File "/usr/lib/python3.1/site-packages/plwm/mw_watchfiles.py", line 62
except IOError, e:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/composite.py to composite.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mw_acpi.py to mw_acpi.pyc
File "/usr/lib/python3.1/site-packages/plwm/mw_acpi.py", line 120
except KeyError, e:
^
SyntaxError: invalid syntax
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/input.py to input.pyc
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1/site-packages/plwm/mw_apm.py to mw_apm.pyc
Traceback (most recent call last):
File "./setup.py", line 40, in <module>
'Topic :: Software Development :: User Interfaces'
File "/usr/lib/python3.1/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python3.1/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/usr/lib/python3.1/distutils/command/install.py", line 592, in run
self.run_command(cmd_name)
File "/usr/lib/python3.1/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/usr/lib/python3.1/distutils/command/install_lib.py", line 98, in run
self.byte_compile(outfiles)
File "/usr/lib/python3.1/distutils/command/install_lib.py", line 135, in byte_compile
dry_run=self.dry_run)
File "/usr/lib/python3.1/distutils/util.py", line 560, in byte_compile
compile(file, cfile, dfile)
File "/usr/lib/python3.1/py_compile.py", line 137, in compile
codestring = f.read()
File "/usr/lib/python3.1/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 909: invalid start byte
Aborting...
==> ERROR: Makepkg was unable to build plwm-svn.
Yeah I tried going in and changing the .py files where I knew what was different, but to no avail. A python-based window manager would have been very cool but oh well, you can't stop progress.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,299
Rep:
The solution is actually to remove Python-3.1.
The only purpose of having it, is for developing / writing Python3 applications.
And Python3 shouldn't be the main python, if you still want it.
I.e. /usr/bin/python is supposed to be python 2.6 ( or 2.7 ).
"All known" applications and python extensions uses Python 2.6 ( 2.7).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.