LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (http://www.linuxquestions.org/questions/gentoo-87/)
-   -   rox-lib fails to compile with emerge (http://www.linuxquestions.org/questions/gentoo-87/rox-lib-fails-to-compile-with-emerge-4175416042/)

fakie_flip 07-11-2012 12:38 AM

rox-lib fails to compile with emerge
 
When emerging rox for the rox file manager, I get these really ugly errors that tells me either rox-lib didn't compile, or something is not going to work right later on.


Code:

bullshark@beastlinux ~ $ sudo emerge -av rox-lib
Password:

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


 * IMPORTANT: config file '/etc/portage/package.use' needs updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  R    ] rox-base/rox-lib-2.0.6  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] Y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) rox-base/rox-lib-2.0.6
 * rox-lib2-2.0.6.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                      [ ok ]
>>> Unpacking source...
>>> Unpacking rox-lib2-2.0.6.tar.bz2 to /var/tmp/portage/rox-base/rox-lib-2.0.6/work
 * Applying rox-lib-nosvg.patch ...                                                            [ ok ]
>>> Source unpacked in /var/tmp/portage/rox-base/rox-lib-2.0.6/work
>>> Compiling source in /var/tmp/portage/rox-base/rox-lib-2.0.6/work/rox-lib2-2.0.6 ...
>>> Source compiled.
>>> Test phase [not enabled]: rox-base/rox-lib-2.0.6

>>> Install rox-lib-2.0.6 into /var/tmp/portage/rox-base/rox-lib-2.0.6/image/ category rox-base
>>> Completed installing rox-lib-2.0.6 into /var/tmp/portage/rox-base/rox-lib-2.0.6/image/


>>> Installing (1 of 1) rox-base/rox-lib-2.0.6
 * checking 113 files for package collisions
>>> Merging rox-base/rox-lib-2.0.6 to /
--- /var/
--- /var/cache/
--- /var/cache/0install.net/
--- /var/cache/0install.net/interface_icons/
>>> /var/cache/0install.net/interface_icons/http%3a%2f%2frox.sourceforge.net%2f2005%2finterfaces%2fROX-Lib -> /usr/lib/ROX-Lib2/.DirIcon
--- /usr/
--- /usr/lib/
--- /usr/lib/ROX-Lib2/
--- /usr/lib/ROX-Lib2/python/
>>> /usr/lib/ROX-Lib2/python/make_docs.py
>>> /usr/lib/ROX-Lib2/python/check.sh
--- /usr/lib/ROX-Lib2/python/rox/
>>> /usr/lib/ROX-Lib2/python/rox/InfoWin.py
>>> /usr/lib/ROX-Lib2/python/rox/mime.py
>>> /usr/lib/ROX-Lib2/python/rox/su.py
>>> /usr/lib/ROX-Lib2/python/rox/settings.py
>>> /usr/lib/ROX-Lib2/python/rox/fileutils.py
>>> /usr/lib/ROX-Lib2/python/rox/suchild.py
>>> /usr/lib/ROX-Lib2/python/rox/launch.py
>>> /usr/lib/ROX-Lib2/python/rox/applet.py
>>> /usr/lib/ROX-Lib2/python/rox/uri_handler.py
>>> /usr/lib/ROX-Lib2/python/rox/options.py
>>> /usr/lib/ROX-Lib2/python/rox/saving.py
>>> /usr/lib/ROX-Lib2/python/rox/debug.py
>>> /usr/lib/ROX-Lib2/python/rox/thumbnail.py
>>> /usr/lib/ROX-Lib2/python/rox/AppInfo.py
>>> /usr/lib/ROX-Lib2/python/rox/suchild.sh
>>> /usr/lib/ROX-Lib2/python/rox/loading.py
>>> /usr/lib/ROX-Lib2/python/rox/Menu.py
>>> /usr/lib/ROX-Lib2/python/rox/basedir.py
>>> /usr/lib/ROX-Lib2/python/rox/choices.py
>>> /usr/lib/ROX-Lib2/python/rox/master_proxy.py
>>> /usr/lib/ROX-Lib2/python/rox/filer.py
>>> /usr/lib/ROX-Lib2/python/rox/icon_theme.py
>>> /usr/lib/ROX-Lib2/python/rox/processes.py
>>> /usr/lib/ROX-Lib2/python/rox/i18n.py
>>> /usr/lib/ROX-Lib2/python/rox/singleton.py
>>> /usr/lib/ROX-Lib2/python/rox/templates.py
>>> /usr/lib/ROX-Lib2/python/rox/xattr.py
>>> /usr/lib/ROX-Lib2/python/rox/session.py
>>> /usr/lib/ROX-Lib2/python/rox/__init__.py
>>> /usr/lib/ROX-Lib2/python/rox/OptionsBox.py
>>> /usr/lib/ROX-Lib2/python/rox/mime_handler.py
>>> /usr/lib/ROX-Lib2/python/rox/xxmlrpc.py
>>> /usr/lib/ROX-Lib2/python/rox/tasks.py
>>> /usr/lib/ROX-Lib2/python/rox/proxy.py
>>> /usr/lib/ROX-Lib2/AppRun
>>> /usr/lib/ROX-Lib2/.DirIcon
>>> /usr/lib/ROX-Lib2/AppInfo.xml
>>> /usr/lib/ROX-Lib2/ROX-Lib2.xml
--- /usr/lib/ROX-Lib2/tests/
--- /usr/lib/ROX-Lib2/tests/python/
>>> /usr/lib/ROX-Lib2/tests/python/testicon_theme.py
>>> /usr/lib/ROX-Lib2/tests/python/testoptions.py
>>> /usr/lib/ROX-Lib2/tests/python/testchoices.py
>>> /usr/lib/ROX-Lib2/tests/python/testbasedir.py
>>> /usr/lib/ROX-Lib2/tests/python/testproxy.py
>>> /usr/lib/ROX-Lib2/tests/python/testprocesses.py
>>> /usr/lib/ROX-Lib2/tests/python/testxxmlrpc.py
>>> /usr/lib/ROX-Lib2/tests/python/testsu.py
>>> /usr/lib/ROX-Lib2/tests/python/testall.py
>>> /usr/lib/ROX-Lib2/tests/python/testtasks.py
>>> /usr/lib/ROX-Lib2/tests/python/testrox.py
>>> /usr/lib/ROX-Lib2/tests/python/testmenu.py
--- /usr/lib/ROX-Lib2/Messages/
>>> /usr/lib/ROX-Lib2/Messages/pt_BR.po
>>> /usr/lib/ROX-Lib2/Messages/fr.gmo
>>> /usr/lib/ROX-Lib2/Messages/zh_CN.po
>>> /usr/lib/ROX-Lib2/Messages/dist
>>> /usr/lib/ROX-Lib2/Messages/pt_BR.gmo
>>> /usr/lib/ROX-Lib2/Messages/zh_CN.gmo
>>> /usr/lib/ROX-Lib2/Messages/zh_TW.gmo
>>> /usr/lib/ROX-Lib2/Messages/it.gmo
>>> /usr/lib/ROX-Lib2/Messages/es.gmo
>>> /usr/lib/ROX-Lib2/Messages/zh_TW.po
>>> /usr/lib/ROX-Lib2/Messages/de.po
>>> /usr/lib/ROX-Lib2/Messages/fr.po
>>> /usr/lib/ROX-Lib2/Messages/update-po
>>> /usr/lib/ROX-Lib2/Messages/de.gmo
>>> /usr/lib/ROX-Lib2/Messages/hu.po
>>> /usr/lib/ROX-Lib2/Messages/it.po
>>> /usr/lib/ROX-Lib2/Messages/pl.gmo
>>> /usr/lib/ROX-Lib2/Messages/es.po
>>> /usr/lib/ROX-Lib2/Messages/hu.gmo
>>> /usr/lib/ROX-Lib2/Messages/pl.po
--- /usr/lib/ROX-Lib2/Help/
--- /usr/lib/ROX-Lib2/Help/python/
>>> /usr/lib/ROX-Lib2/Help/python/rox.su.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.templates.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.OptionsBox.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.tasks.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.basedir.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.mime.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.choices.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.mime_handler.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.loading.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.uri_handler.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.fileutils.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.settings.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.singleton.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.thumbnail.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.launch.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.xattr.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.icon_theme.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.options.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.xxmlrpc.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.processes.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.session.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.suchild.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.InfoWin.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.debug.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.master_proxy.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.applet.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.saving.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.proxy.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.AppInfo.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.filer.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.i18n.html
>>> /usr/lib/ROX-Lib2/Help/python/rox.Menu.html
>>> /usr/lib/ROX-Lib2/Help/findrox.py
>>> /usr/lib/ROX-Lib2/Help/README
>>> /usr/lib/ROX-Lib2/Help/Errors
>>> /usr/lib/ROX-Lib2/Help/COPYING
>>> /usr/lib/ROX-Lib2/Help/Changes
>>> /usr/lib/ROX-Lib2/Help/TODO
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/rox-lib-2.0.6 -> /usr/lib/ROX-Lib2/Help
--- /usr/share/0install.net/
--- /usr/share/0install.net/native_feeds/
>>> /usr/share/0install.net/native_feeds/http:##rox.sourceforge.net#2005#interfaces#ROX-Lib -> /usr/lib/ROX-Lib2/ROX-Lib2.xml
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced sym /var/cache/0install.net/interface_icons/http%3a%2f%2frox.sourceforge.net%2f2005%2finterfaces%2fROX-Lib
--- replaced dir /var/cache/0install.net/interface_icons
--- replaced dir /var/cache/0install.net
--- replaced dir /var/cache
--- replaced dir /var
--- replaced sym /usr/share/doc/rox-lib-2.0.6
--- replaced dir /usr/share/doc
--- replaced sym /usr/share/0install.net/native_feeds/http:##rox.sourceforge.net#2005#interfaces#ROX-Lib
--- replaced dir /usr/share/0install.net/native_feeds
--- replaced dir /usr/share/0install.net
--- replaced dir /usr/share
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testxxmlrpc.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testtasks.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testsu.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testrox.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testproxy.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testprocesses.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testoptions.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testmenu.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testicon_theme.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testchoices.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testbasedir.py
--- replaced obj /usr/lib/ROX-Lib2/tests/python/testall.py
--- replaced dir /usr/lib/ROX-Lib2/tests/python
--- replaced dir /usr/lib/ROX-Lib2/tests
--- replaced obj /usr/lib/ROX-Lib2/python/rox/xxmlrpc.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/xattr.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/uri_handler.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/thumbnail.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/templates.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/tasks.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/suchild.sh
--- replaced obj /usr/lib/ROX-Lib2/python/rox/suchild.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/su.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/singleton.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/settings.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/session.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/saving.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/proxy.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/processes.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/options.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/mime_handler.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/mime.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/master_proxy.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/loading.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/launch.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/icon_theme.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/i18n.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/fileutils.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/filer.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/debug.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/choices.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/basedir.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/applet.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/__init__.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/OptionsBox.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/Menu.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/InfoWin.py
--- replaced obj /usr/lib/ROX-Lib2/python/rox/AppInfo.py
--- replaced dir /usr/lib/ROX-Lib2/python/rox
--- replaced obj /usr/lib/ROX-Lib2/python/make_docs.py
--- replaced obj /usr/lib/ROX-Lib2/python/check.sh
--- replaced dir /usr/lib/ROX-Lib2/python
--- replaced obj /usr/lib/ROX-Lib2/ROX-Lib2.xml
--- replaced obj /usr/lib/ROX-Lib2/Messages/zh_TW.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/zh_TW.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/zh_CN.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/zh_CN.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/update-po
--- replaced obj /usr/lib/ROX-Lib2/Messages/pt_BR.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/pt_BR.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/pl.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/pl.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/it.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/it.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/hu.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/hu.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/fr.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/fr.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/es.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/es.gmo
--- replaced obj /usr/lib/ROX-Lib2/Messages/dist
--- replaced obj /usr/lib/ROX-Lib2/Messages/de.po
--- replaced obj /usr/lib/ROX-Lib2/Messages/de.gmo
--- replaced dir /usr/lib/ROX-Lib2/Messages
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.xxmlrpc.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.xattr.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.uri_handler.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.thumbnail.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.templates.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.tasks.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.suchild.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.su.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.singleton.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.settings.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.session.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.saving.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.proxy.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.processes.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.options.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.mime_handler.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.mime.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.master_proxy.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.loading.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.launch.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.icon_theme.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.i18n.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.fileutils.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.filer.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.debug.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.choices.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.basedir.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.applet.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.OptionsBox.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.Menu.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.InfoWin.html
--- replaced obj /usr/lib/ROX-Lib2/Help/python/rox.AppInfo.html
--- replaced dir /usr/lib/ROX-Lib2/Help/python
--- replaced obj /usr/lib/ROX-Lib2/Help/findrox.py
--- replaced obj /usr/lib/ROX-Lib2/Help/TODO
--- replaced obj /usr/lib/ROX-Lib2/Help/README
--- replaced obj /usr/lib/ROX-Lib2/Help/Errors
--- replaced obj /usr/lib/ROX-Lib2/Help/Changes
--- replaced obj /usr/lib/ROX-Lib2/Help/COPYING
--- replaced dir /usr/lib/ROX-Lib2/Help
--- replaced obj /usr/lib/ROX-Lib2/AppRun
--- replaced obj /usr/lib/ROX-Lib2/AppInfo.xml
--- replaced obj /usr/lib/ROX-Lib2/.DirIcon
--- replaced dir /usr/lib/ROX-Lib2
--- replaced dir /usr/lib
--- replaced dir /usr
 *
 * Deprecation Warning: Usage of python_mod_cleanup() in packages not supporting installation
 * for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01.
 * Use EAPI >=3 and call python_mod_cleanup() with paths having appropriate syntax.
 * The ebuild needs to be fixed. Please report a bug, if it has not been already reported.
 *
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 *
 * Deprecation Warning: Usage of python_mod_optimize() in packages not supporting installation
 * for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01.
 * Use EAPI >=3 and call python_mod_optimize() with paths having appropriate syntax.
 * The ebuild needs to be fixed. Please report a bug, if it has not been already reported.
 *
 * Compilation and optimization of Python modules for CPython 3.2 ...
*** Error compiling '/usr/lib/ROX-Lib2/python/make_docs.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (make_docs.py, line 76)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/AppInfo.py'...
  File "/usr/lib/ROX-Lib2/python/rox/AppInfo.py", line 238
    print _getlangs(None)
                  ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/Menu.py'...
  File "/usr/lib/ROX-Lib2/python/rox/Menu.py", line 198
    print "Error saving keybindings to", path
                                      ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/OptionsBox.py'...
  File "/usr/lib/ROX-Lib2/python/rox/OptionsBox.py", line 149
    print "Unknown section", section
                          ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/__init__.py'...
  File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 49
    __builtin__.False = 0
                    ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/basedir.py'...
  File "/usr/lib/ROX-Lib2/python/rox/basedir.py", line 49
    os.makedirs(path, 0700)
                        ^
SyntaxError: invalid token

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/debug.py'...
  File "/usr/lib/ROX-Lib2/python/rox/debug.py", line 191
    value = `v`
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/filer.py'...
  File "/usr/lib/ROX-Lib2/python/rox/filer.py", line 19
    print "Warning: exec('%s') failed!" % argv[0]
                                      ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/fileutils.py'...
  File "/usr/lib/ROX-Lib2/python/rox/fileutils.py", line 43
    raise OSError, message
                ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/i18n.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (i18n.py, line 80)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/mime.py'...
  File "/usr/lib/ROX-Lib2/python/rox/mime.py", line 121
    print "Error loading MIME icon"
                                  ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/mime_handler.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (mime_handler.py, line 60)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/options.py'...
  File "/usr/lib/ROX-Lib2/python/rox/options.py", line 178
    print "Warning: Non Option element", o
                                      ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/processes.py'...
  File "/usr/lib/ROX-Lib2/python/rox/processes.py", line 278
    except Exception, e:
                    ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/proxy.py'...
  File "/usr/lib/ROX-Lib2/python/rox/proxy.py", line 53
    print "Not ready for writing"
                                ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/saving.py'...
  File "/usr/lib/ROX-Lib2/python/rox/saving.py", line 23
    except OSError, ex:
                  ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/session.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (session.py, line 105)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/settings.py'...
  File "/usr/lib/ROX-Lib2/python/rox/settings.py", line 186
    print 'object=', setobj
                  ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/templates.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (templates.py, line 62)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/thumbnail.py'...
Sorry: TabError: inconsistent use of tabs and spaces in indentation (thumbnail.py, line 54)
*** Error compiling '/usr/lib/ROX-Lib2/python/rox/uri_handler.py'...
  File "/usr/lib/ROX-Lib2/python/rox/uri_handler.py", line 63
    print get('file')
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/xattr.py'...
  File "/usr/lib/ROX-Lib2/python/rox/xattr.py", line 145
    fd=libc.attropen(path, attr, os.O_WRONLY|os.O_CREAT, 0644)
                                                            ^
SyntaxError: invalid token

*** Error compiling '/usr/lib/ROX-Lib2/python/rox/xxmlrpc.py'...
  File "/usr/lib/ROX-Lib2/python/rox/xxmlrpc.py", line 98
    except Exception, ex:
                    ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/tests/python/testall.py'...
  File "/usr/lib/ROX-Lib2/tests/python/testall.py", line 7
    print "Running from", my_dir
                      ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/tests/python/testprocesses.py'...
  File "/usr/lib/ROX-Lib2/tests/python/testprocesses.py", line 33
    except processes.ChildError, ex:
                              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/tests/python/testproxy.py'...
  File "/usr/lib/ROX-Lib2/tests/python/testproxy.py", line 194
    os.chmod(tmp_file, 0700)
                          ^
SyntaxError: invalid token

*** Error compiling '/usr/lib/ROX-Lib2/tests/python/testrox.py'...
  File "/usr/lib/ROX-Lib2/tests/python/testrox.py", line 12
    print arg
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/lib/ROX-Lib2/tests/python/testxxmlrpc.py'...
  File "/usr/lib/ROX-Lib2/tests/python/testxxmlrpc.py", line 40
    except xmlrpclib.Fault, ex:
                          ^
SyntaxError: invalid syntax
                                                                                                [ !! ]
>>> rox-base/rox-lib-2.0.6 merged.

>>> Recording rox-base/rox-lib in "world" favorites file...

 * Messages for package rox-base/rox-lib-2.0.6:

 *
 * Deprecation Warning: Usage of python_mod_cleanup() in packages not supporting installation
 * for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01.
 * Use EAPI >=3 and call python_mod_cleanup() with paths having appropriate syntax.
 * The ebuild needs to be fixed. Please report a bug, if it has not been already reported.
 *

 * Messages for package rox-base/rox-lib-2.0.6:

 *
 * Deprecation Warning: Usage of python_mod_optimize() in packages not supporting installation
 * for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01.
 * Use EAPI >=3 and call python_mod_optimize() with paths having appropriate syntax.
 * The ebuild needs to be fixed. Please report a bug, if it has not been already reported.
 *
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

bullshark@beastlinux ~ $


segmentation_fault 07-11-2012 06:00 AM

First of all, I would suggest updating those /etc files. You can do that with "dispatch-conf" or "etc-update". Read the man pages of those 2 tools.
Second, this looks like a python issue. Did you update your python version recently? You can post the output of
Code:

$ eselect python list
Also you could first run "python-updater" and then try to emerge again.

fakie_flip 07-13-2012 09:21 AM

Code:

bullshark@beastlinux ~ % eselect python list
Available Python interpreters:
  [1]  python2.7
  [2]  python3.2 *
bullshark@beastlinux ~ %

I had to change the first lines in uzbl-tabbed and uzbl-event-manager to:

Code:

#!/usr/bin/env python
to

Code:

#!/usr/bin/env python2.7
And now it works. I don't know how I ended up with 2 versions of python. My guess is that I should use eselect to set the default version to 2.7.

What do you think?

segmentation_fault 07-13-2012 11:09 AM

Having these two versions is normal, because not all programs are compatible with version 3 yet. On my systems I have 2.7 as default, but I have also seen systems running 3 as default. Whichever you choose, I suggest running python-updater right after.

fakie_flip 07-13-2012 02:23 PM

I did run python-updater. That did not resolve the issue. Setting 2.7 as the system's default did resolve the issue.


All times are GMT -5. The time now is 12:46 AM.