LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
LinkBack Search this Thread
Old 12-22-2010, 08:45 PM   #1
Axelman0
LQ Newbie
 
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Rep: Reputation: 0
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.
any ideas?
 
Old 12-23-2010, 04:13 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,299

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
byte-compiling /tmp/yaourt-tmp-zak/aur-plwm-svn/pkg/usr/lib/python3.1...
.
.
SyntaxError: invalid syntax
PLWM is an old application and cannot use Python 3.

( Unless specified, no application can use Python 3.
Python 3 is different from Python 2.x ).
..
 
Old 12-23-2010, 09:15 PM   #3
Axelman0
LQ Newbie
 
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 12-24-2010, 04:30 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,299

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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).

..
 
  


Reply

Tags
arch, build, compile, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling from SVN error gsv666 Linux - Newbie 7 04-19-2009 05:55 AM
compiling kaffeine-sc-plugin from svn bluray Linux - Software 0 01-15-2009 06:45 PM
problem in compiling svn from source rockyrakesh1331 Linux - Enterprise 1 05-30-2008 03:26 PM
error compiling php and svn an2ny_18 Linux - Newbie 2 03-11-2006 06:18 AM
Is compiling gcc for stage 1 supposed to take this long... frankietomatoes Linux From Scratch 11 05-09-2003 09:59 AM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration