On Thu, 2003-02-13 at 20:38, Quel Qun wrote:
> I am trying to make an rpm for ceres. I got it to compile, but when I
> try to run it, I receive the following error:
> File
>
>"/home/stewb/tmp/pygnome-1.4.4-root/usr/lib/python2.2/site-packages/gtk-1.2/libglade.py",
> line 47, in get_widget
> wid = _libglade.glade_xml_get_widget(self._o, name)
> TypeError: glade_xml_get_widget() argument 1 must be GtkObject, not None
> I don't really understand these errors, but I am pretty sure stweb does
> not have an account on my machine. I'd appreciate if anyone could tell
> me how to fix this problem. I'd gladly give Stew an account but I doubt
> that's the proper solution :)
That's an error I made a few times. It's a distutils quirk.
You have to use
python setup.py --root=$RPM_BUILD_ROOT
and NOT
python setup.py --prefix=$RPM_BUILD_ROOT/usr
to install python packages to the buildroot.
Stew maybe didn't know this when making the pygnome package.
Austin
--
Austin Acton Hon.B.Sc.
Synthetic Organic Chemist, Teaching Assistant
Department of Chemistry, York University, Toronto
MandrakeClub Volunteer (www.mandrakeclub.com)
homepage: www.groundstate.ca