[pylucene-dev] Re: no stubs for inner classes

Andi Vajda vajda at osafoundation.org
Thu Mar 6 10:54:17 PST 2008


On Thu, 6 Mar 2008, Bill Janssen wrote:

>> Ha, too funny, it looks like the shell is causing trouble.
>
> OK, here's another case:

That is likely due to the fact that your class has no package. This is 
rather unusual but should be supported. Consider it a bug you can workaround 
by putting your class into a package.

Andi..

>
> public class GoodStuff {
>
>    int x;
>
>    public static class Frob {
>
>        int y;
>
>        public Frob() {
>            y = 3;
>        };
>
>        public void random () {
>            y = -1;
>        }
>
>    }
>
>    public void update (Frob f) {
>        x = 2;
>    }
>
>    public void endit () {
>        x = 0;
>    }
> }
>
>
> I get the following error:
>
> % javac -classpath . GoodStuff.java
> % python -m jcc --classpath . --python goodstuff --version 1.0.0 GoodStuff 'GoodStuff$Frob' --build
> running build_ext
> [...]
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DPYTHON=1 -I/usr/java/jdk-1.6/include -I/usr/java/jdk-1.6/include/linux -Ibuild/_goodstuff -I/usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/jcc/sources -I/usr/include/python2.5 -c build/_goodstuff/__init__.cpp -o build/temp.linux-i686-2.5/build/_goodstuff/__init__.o -fno-strict-aliasing
> build/_goodstuff/__init__.cpp:4:24: error: /GoodStuff.h: No such file or directory
> build/_goodstuff/__init__.cpp:5:29: error: /GoodStuff$Frob.h: No such file or directory
> build/_goodstuff/__init__.cpp: In function 'void __install__(PyObject*)':
> [...]
> error: command 'gcc' failed with exit status 1
> %
>


More information about the pylucene-dev mailing list