Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150730 - Dbus fails to emerge python bindings when it defaults to using them.
Summary: Dbus fails to emerge python bindings when it defaults to using them.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 04:09 UTC by Amir Taaki
Modified: 2006-10-30 16:28 UTC (History)
0 users

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 Amir Taaki 2006-10-10 04:09:18 UTC
Hi,

make[3]: Entering directory `/var/tmp/portage/dbus-0.61-r1/work/dbus-0.61/python'
/usr/bin/python ./extract.py ./dbus_bindings.pxd.in -I./..  -I. > dbus_bindings.pxd.tmp && mv dbus_bindings.pxd.tmp dbus_bindings.pxd
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./extract.py", line 2, in ?
    import re
  File "/usr/lib/python2.4/re.py", line 5, in ?
    from sre import *
  File "/usr/lib/python2.4/sre.py", line 265, in ?
    import copy_reg
  File "/usr/lib/python2.4/copy_reg.py", line 7, in ?
    from types import ClassType as _ClassType
  File "/var/tmp/portage/dbus-0.61-r1/work/dbus-0.61/python/types.py", line 1, in ?
    import dbus_bindings
ImportError: No module named dbus_bindings
make[3]: [dbus_bindings.pxd] Error 1 (ignored)
pyrexc ./dbus_bindings.pyx -I. -o ./dbus_bindings.c
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/bin/pyrexc", line 7, in ?
    from Pyrex.Compiler.Main import main
  File "/usr/lib/python2.4/site-packages/Pyrex/Compiler/Main.py", line 5, in ?
    import os, sys
  File "/usr/lib/python2.4/os.py", line 683, in ?
    import copy_reg as _copy_reg
  File "/usr/lib/python2.4/copy_reg.py", line 7, in ?
    from types import ClassType as _ClassType
  File "types.py", line 1, in ?
    import dbus_bindings
ImportError: No module named dbus_bindings
make[3]: *** [dbus_bindings.c] Error 1
make[3]: Leaving directory `/var/tmp/portage/dbus-0.61-r1/work/dbus-0.61/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dbus-0.61-r1/work/dbus-0.61/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dbus-0.61-r1/work/dbus-0.61'
make: *** [all] Error 2

!!! ERROR: sys-apps/dbus-0.61-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  dbus-0.61-r1.ebuild, line 106:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Unless I put sys-apps/dbus -python in package.use it will do that. Either it should not default to having the python flag or it should emerge the masked bindings.

Thanks.
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2006-10-10 07:42:46 UTC
No, it should not emerge the masked bindings.  The masked bindings are *NOT* for use with the .6x series.  This is a seperate issue, and that will not solve it.  What version of Python are you using? What is the output of emerge --info ?
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2006-10-30 16:28:33 UTC
You're missing the site module for Python... Which is provided by Python... your python install is broken.

version of python... emerge --info... USE flags for python (i.e. emerge -pv python)