Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304505 - sys-process/iotop-0.4: fails to build/work in case python-3 is eselected
Summary: sys-process/iotop-0.4: fails to build/work in case python-3 is eselected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 07:57 UTC by Peter Volkov (RETIRED)
Modified: 2010-02-15 01:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2010-02-11 07:57:30 UTC
euclid ~ # eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python3.1 *
euclid ~ # python --version
Python 3.1.1

...

>>> Installing (2 of 2) sys-process/iotop-0.4
 * Compilation and optimization of Python modules for Python 3.1 ...
*** Error compiling //usr/lib64/python3.1/site-packages/iotop/data.py ...
  File "//usr/lib64/python3.1/site-packages/iotop/data.py", line 29
    print 'Could not run iotop as some of the requirements are not met:'
                                                                       ^
SyntaxError: invalid syntax

*** Error compiling //usr/lib64/python3.1/site-packages/iotop/ioprio.py ...
  File "//usr/lib64/python3.1/site-packages/iotop/ioprio.py", line 157
    print 'pid:', pid
               ^
SyntaxError: invalid syntax

*** Error compiling //usr/lib64/python3.1/site-packages/iotop/ui.py ...
  File "//usr/lib64/python3.1/site-packages/iotop/ui.py", line 136
    except select.error, e:
                       ^
SyntaxError: invalid syntax
                                                                                                                        [ !! ]

>>> Recording sys-process/iotop in "world" favorites file...
>>> Auto-cleaning packages...

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

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

euclid ~ # iotop 
  File "/usr/bin/iotop", line 10
    except ImportError, e:
                      ^
SyntaxError: invalid syntax
euclid ~ # eselect python set 1
euclid ~ # python --version
Python 2.6.4
euclid ~ # iotop 
  File "/usr/bin/iotop", line 10
    except ImportError, e:
                      ^
SyntaxError: invalid syntax

Now, after rebuild with eselected python-2 it will build ok and work.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-15 01:53:17 UTC
Fixed.