pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: missing dependency?



On Sun, 6 Jan 2008 00:35:42 +0100
"Daniel Horecki" <shinden%linux.pl@localhost> wrote:

> On Jan 6, 2008 12:24 AM, Steven M. Bellovin <smb%cs.columbia.edu@localhost>
> wrote:
> > When building a (Python) package that did
> >
> >         import dbus
> >
> > it failed. Invoking Python manually showed that py-dbus needed
> > py-expat.  Should I simply add it to my package, or is that a bug in
> > py-dbus?
> >
> 
> Based on NEWS file from py-dbus
> (http://dbus.freedesktop.org/doc/dbus-python/NEWS) I've removed libxml
> buildlink include and package was build successful and I can import it
> manually in python without problem. Maybe try this patch:
> 
> --- Makefile    3 Sep 2007 10:00:34 -0000       1.9
> +++ Makefile    5 Jan 2008 23:34:50 -0000
> @@ -24,6 +24,4 @@
>  .include "../../lang/python/extension.mk"
>  .include "../../sysutils/dbus/buildlink3.mk"
>  .include "../../sysutils/dbus-glib/buildlink3.mk"
> -# py-libxml2 is only needed at runtime
> -.include "../../textproc/py-libxml2/buildlink3.mk"
>  .include "../../mk/bsd.pkg.mk"
> 
No, that doesn't solve it; I'm still seeing errors in py24-dbus:

$ python2.4
Python 2.4.4 (#1, Oct 20 2007, 20:17:23) 
[GCC 4.1.3 20070620 prerelease (NetBSD nb1 20070620)] on netbsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/pkg/lib/python2.4/site-packages/dbus/__init__.py", line 96, in ?
    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
  File "/usr/pkg/lib/python2.4/site-packages/dbus/_dbus.py", line 42, in ?
    from dbus.bus import BusConnection
  File "/usr/pkg/lib/python2.4/site-packages/dbus/bus.py", line 42, in ?
    from dbus.connection import Connection
  File "/usr/pkg/lib/python2.4/site-packages/dbus/connection.py", line 38, in ?
    from dbus.proxies import ProxyObject
  File "/usr/pkg/lib/python2.4/site-packages/dbus/proxies.py", line 31, in ?
    from dbus._expat_introspect_parser import process_introspection_data
  File "/usr/pkg/lib/python2.4/site-packages/dbus/_expat_introspect_parser.py", 
line 22, in ?
    from xml.parsers.expat import ExpatError, ParserCreate
  File "/usr/pkg/lib/python2.4/xml/parsers/expat.py", line 4, in ?
    from pyexpat import *
ImportError: No module named pyexpat



                --Steve Bellovin, http://www.cs.columbia.edu/~smb



Home | Main Index | Thread Index | Old Index