Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351915 - app-emulation/virtualbox-bin-4.0.0-r1: VBoxPython2_7.so doesn't load
Summary: app-emulation/virtualbox-bin-4.0.0-r1: VBoxPython2_7.so doesn't load
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 14:47 UTC by Francisco J. Vazquez
Modified: 2015-02-20 08:25 UTC (History)
2 users (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 Francisco J. Vazquez 2011-01-17 14:47:43 UTC
The VBoxPython2_7.so module included in virtualbox-bin-4.0.0-r1 doesn't load, so the python bindings don't work. It seems related to usc4 and usc2 unicode support:

fran@phenom ~ $ PYTHONPATH=/opt/VirtualBox/ python
Python 2.7.1 (r271:86832, Jan 17 2011, 15:13:38) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> __import__("VBoxPython2_7")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /opt/VirtualBox/VBoxPython2_7.so: undefined symbol: PyUnicodeUCS2_AsUTF16String
>>> 

I tried compiling python-2.7 with usc2 AND usc4 support by changing the ebuild from this:

echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2"

to this:

echo "--enable-unicode=ucs4" && echo "--enable-unicode=ucs2"

but then I get an undefined symbol in /usr/lib64/python2.7/site-packages/gtk-2.0/glib/_glib.so. Recompiling pygobject does not help in this case.

virtualbox-4.0.0-r1 (OSE) does not have this problem.

Reproducible: Always