Archived

This forum has been archived. Please start a new discussion on GitHub.

missing Ice.pth in IcePy under gentoo

Seems the default installation of IcePy under gentoo
has problems importing the Ice module:
% python -c 'import Ice; print "success"'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib64/python2.4/site-packages/Ice.py", line 30, in ?
import IcePy
ImportError: No module named IcePy
%
Digging deeper, the problem is it can't locate /usr/lib/libIce.so
as /usr/lib is not in the default search path.
Adding /usr/lib fixes things:
% PYTHONPATH='/usr/lib:$PYTHONPATH' !!
PYTHONPATH='/usr/lib:$PYTHONPATH' python -c 'import Ice; print "success"'
success
%
but an easier way to effect this is with a Ice.pth file at the same
location as the Ice.py module top level:
% echo '/usr/lib' >> /usr/lib/python2.4/site-packages/Ice.pth
% python -c 'import Ice; print "success"'
success
%

Any chance of getting this in at your end for future ebuilds?

Thanks -

Comments

  • ZeroC doesn't support Ice for Gentoo - I just happen to maintain the ebuilds for Gentoo.

    If you can open a new bug at bugs.gentoo.org, assign it to me (caleb@gentoo.org) and attach a patch I'll be happy to put it in for you. As well, if you would like to submit an ebuild for Ice-3.2.0 I'd be more than happy to add it to portage.