Compiling dbus 0.21 errors

Owen Fraser-Green owen at discobabe.net
Mon May 3 16:54:10 EST 2004


Hi,

I'm not exactly a sage here either I'm afraid as I've never even looked
at the Python bindings but according to your error message your missing
a module called Plex.Lexicons. Looking at my own Pyrex installation,
Lexicons.py is a part of that installation. I see from the error stack
that you do, however, have a lot of other files from Pyrex.

If you do:

locate Lexicon.py

does it find anything? If not then I'd suggest going back to the Pyrex
installation and figuring out why it didn't get installed. If it does
exist but at a path other than '/usr/lib/python2.3/site-packages/' then
you could try typing:

export PYTHONPATH=/usr/...your path here without the site-packages...

then try again. Good luck!

Cheers,
Owen


On Sun, 2004-05-02 at 21:12, Peter wrote:
> Thanks, Owen. Got over the hump in the mono dir, but I still have a problem
> here. Pyrex DID install properly, but I am no sage here. Any suggestions
> are appreciated!
> 
> make[2]: Entering directory `/mnt/src/rox/dbus/dbus/python'
> pyrexc dbus_bindings.pyx
> Traceback (most recent call last):
>   File "/usr/bin/pyrexc", line 8, in ?
>     main(command_line = 1)
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line 270,
> in main
>     result = context.compile(source, options)
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line 174,
> in compile
>     tree = self.parse(source, scope.type_names, pxd = 0)
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line 137,
> in parse
>     type_names = type_names, context = self)
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py", line
> 175, in __init__
>     Scanner.__init__(self, get_lexicon(), file, filename)
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py", line
> 127, in get_lexicon
>     try_to_unpickle_lexicon()
>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py", line
> 93, in try_to_unpickle_lexicon
>     lexicon = pickle.load(f)
> ImportError: No module named Plex.Lexicons
> make[2]: [dbus_bindings.c] Error 1 (ignored)
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
> -I../glib  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
> -I/usr/include/python2.3  -DDBUS_API_SUBJECT_TO_CHANGE=1   -g -O2 -Wall
> -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT
> dbus_bindings.lo -MD -MP -MF ".deps/dbus_bindings.Tpo" \
>   -c -o dbus_bindings.lo `test -f 'dbus_bindings.c' || echo
> './'`dbus_bindings.c; \
> then mv -f ".deps/dbus_bindings.Tpo" ".deps/dbus_bindings.Plo"; \
> else rm -f ".deps/dbus_bindings.Tpo"; exit 1; \
> fi
> rm -f .libs/dbus_bindings.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/python2.3
> -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall -Wchar-subscripts
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wcast-align -Wsign-compare -MT dbus_bindings.lo -MD -MP
> -MF .deps/dbus_bindings.Tpo -c ./dbus_bindings.c  -fPIC -DPIC
> -o .libs/dbus_bindings.lo
> gcc: ./dbus_bindings.c: No such file or directory
> gcc: no input files
> make[2]: *** [dbus_bindings.lo] Error 1
> make[2]: Leaving directory `/mnt/src/rox/dbus/dbus/python'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/src/rox/dbus/dbus'
> make: *** [all] Error 2
> peter at peter:/mnt/src/rox/dbus/dbus$
> Owen Fraser-Green wrote:
> 
> > Hi,
> > 
> > That test-dbus-sharp.exe program had some threading issues anyway so for
> > now I've disabled it from the 'all' target in the build until I get a
> > chance to look into it later. If you do another checkout from CVS it
> > should skip it now.
> > 
> > Cheers,
> > Owen
> > 
> > On Sun, 2004-05-02 at 15:24, Peter wrote:
> >> Kernel 2.6.5
> >> Slackware 9.1
> >> Python -V: 2.3.1
> >> Pyrex: 0.9.1.1
> >> 
> >> I intend to use this in order to compile Rox-Session.
> >> 
> >> I tried CVS-ing the latest 5/2/04 and received the following.
> >> 
> >> Making all in mono
> >> make[2]: Entering directory `/mnt/src/rox/dbus/dbus/mono'
> >> mcs  --unsafe --target exe -L . -r dbus-sharp.dll -r gtk-sharp.dll -o
> >> test-dbus-sharp.exe Test.cs
> >> error CS0006: Cannot find assembly `gtk-sharp.dll'
> >> Log:
> >> 
> >> Compilation failed: 1 error(s), 0 warnings
> >> make[2]: *** [test-dbus-sharp.exe] Error 1
> >> make[2]: Leaving directory `/mnt/src/rox/dbus/dbus/mono'
> >> make[1]: *** [all-recursive] Error 1
> >> make[1]: Leaving directory `/mnt/src/rox/dbus/dbus'
> >> make: *** [all] Error 2
> >> 
> >> I tried to make gtk-sharp.dll directly, but there was no rule.
> >> ----------------
> >> I downloaded the 0.21 tarball and received the following error:
> >> 
> >> Making all in python
> >> Traceback (most recent call last):
> >>   File "/usr/bin/pyrexc", line 8, in ?
> >>     main(command_line = 1)
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line
> >>   270,
> >> in main
> >>     result = context.compile(source, options)
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line
> >>   174,
> >> in compile
> >>     tree = self.parse(source, scope.type_names, pxd = 0)
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Main.py", line
> >>   137,
> >> in parse
> >>     type_names = type_names, context = self)
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py",
> >>   line
> >> 175, in __init__
> >>     Scanner.__init__(self, get_lexicon(), file, filename)
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py",
> >>   line
> >> 127, in get_lexicon
> >>     try_to_unpickle_lexicon()
> >>   File "/usr/lib/python2.3/site-packages/Pyrex/Compiler/Scanning.py",
> >>   line
> >> 93, in try_to_unpickle_lexicon
> >>     lexicon = pickle.load(f)
> >> ImportError: No module named Plex.Lexicons
> >>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib -I/usr/include/glib-2.0
> >> -I/usr/lib/glib-2.0/include -I/usr/include/python2.3
> >> -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall -Wchar-subscripts
> >> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> >> -Wpointer-arith -Wcast-align -Wsign-compare -MT dbus_bindings.lo -MD -MP
> >> -MF .deps/dbus_bindings.Tpo -c ./dbus_bindings.c  -fPIC -DPIC
> >> -o .libs/dbus_bindings.o
> >> gcc: ./dbus_bindings.c: No such file or directory
> >> gcc: no input files
> >> make[2]: *** [dbus_bindings.lo] Error 1
> >> make[1]: *** [all-recursive] Error 1
> >> make: *** [all] Error 2
> >> 
> >> In both cases, I used the default ./configure switches but added
> >> --sysconfdir=/etc.
> >> 
> >> Thanks for any suggestions.
> >>
> 
> 




More information about the dbus mailing list