You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Federico Edelman <fe...@claxson.com> on 2004/05/28 17:23:41 UTC

RE: Problem python bindings "SWIG_Python_TypeQuery"

Guys, first, I'm sorry for my insistence. But, I need compile Python bindings for viewcvs GUI.

I'm trying to compile successfully swig-py and I get the same error always about "SWIG_Python_TypeQuery".

# python -c "from svn import client"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/local/subversion/lib/svn-python/svn/client.py", line 17, in ?
    from libsvn.client import *
  File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 5, in
?
    import _client
ImportError: /usr/local/subversion/lib/libsvn_swig_py-1.so.0: undefined
symbol: SWIG_Python_TypeQuery

Excuse me again. :(
Fede


> -----Mensaje original-----
> De: Federico Edelman [mailto:fedelman@claxson.com]
> Enviado el: Jueves, 27 de Mayo de 2004 05:37 p.m.
> Para: users@subversion.tigris.org; dev@subversion.tigris.org
> Asunto: RV: Problem python bindings
> 
> Hi guys!
> When I try to compile the python bindings, I get the following error:
> 
> # python -c "from svn import client"
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/usr/local/subversion/lib/svn-python/svn/client.py", line 17, in ?
>     from libsvn.client import *
>   File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 5, in
> ?
>     import _client
> ImportError: /usr/local/subversion/lib/libsvn_swig_py-1.so.0: undefined
> symbol: SWIG_Python_TypeQuery
> 
> Any idea?
> 
> Thanks,
> Fede
> 
> My configuration:
> 
> PIII 500 Mhz RAM 128 MB
> Debian GNU/Linux 3.0r1 Kernel 2.4.25
> 
> SWIG 1.3.21
> -----------
> # ./configure '--prefix=/usr/local' \
> 		'--with-python=/usr/bin/python2.2' \
> 		'--with-perl=/usr/local/bin/perl'
> # make
> # make runtime
> # make install-runtime
> # make install
> 
> db 4.2.52
> ---------
> # cd build_unix/
> # ../dist/configure --prefix=/usr/local/subversion
> # make
> # make install
> 
> apache 2.0.49
> -------------
> # ./configure --prefix=/usr/local/subversion \
> 	--enable-dav \
> 	--enable-so \
> 	--with-dbm=db4 \
> 	--with-berkeley-db=/usr/local/subversion \
> 	--enable-mod_rewrite \
> 	--enable-threads
> # make
> # make install
> 
> subversion 1.0.4
> ----------------
> # rm -f /usr/local/subversion/lib/libsvn*
> # rm -f /usr/local/subversion/lib/libapr*
> # rm -f /usr/local/subversion/lib/libexpat*
> # rm -f /usr/local/subversion/lib/libneon*
> # AUTOCONF=autoconf2.50 sh ./autogen.sh
> # ./configure --prefix=/usr/local/subversion \
> 	--with-berkeley-db=/usr/local/subversion \
> 	--enable-dbm=db4 \
> 	--with-apxs=/usr/local/subversion/bin/apxs \
> 	--with-swig=/usr/local \
> 	--enable-swig-bindings=pitón,perl
> # make
> # make check
> # make install
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Problem python bindings "SWIG_Python_TypeQuery"

Posted by Erik Huelsmann <e....@gmx.net>.
> Guys, first, I'm sorry for my insistence. But, I need compile Python
> bindings for viewcvs GUI.
> 
> I'm trying to compile successfully swig-py and I get the same error always
> about "SWIG_Python_TypeQuery".
> 
> # python -c "from svn import client"
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/usr/local/subversion/lib/svn-python/svn/client.py", line 17, in ?
>     from libsvn.client import *
>   File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 5, in
> ?
>     import _client
> ImportError: /usr/local/subversion/lib/libsvn_swig_py-1.so.0: undefined
> symbol: SWIG_Python_TypeQuery

Can python find the swig library? (One option is to check if /usr/local/lib
is in your ld.so.conf file; assuming you are on linux.) This is a SWIG
symbol which is only used by the python bindings.

bye,


Erik.


> 
> Excuse me again. :(
> Fede
> 
> 
> > -----Mensaje original-----
> > De: Federico Edelman [mailto:fedelman@claxson.com]
> > Enviado el: Jueves, 27 de Mayo de 2004 05:37 p.m.
> > Para: users@subversion.tigris.org; dev@subversion.tigris.org
> > Asunto: RV: Problem python bindings
> > 
> > Hi guys!
> > When I try to compile the python bindings, I get the following error:
> > 
> > # python -c "from svn import client"
> > Traceback (most recent call last):
> >   File "<string>", line 1, in ?
> >   File "/usr/local/subversion/lib/svn-python/svn/client.py", line 17, in
> ?
> >     from libsvn.client import *
> >   File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 5,
> in
> > ?
> >     import _client
> > ImportError: /usr/local/subversion/lib/libsvn_swig_py-1.so.0: undefined
> > symbol: SWIG_Python_TypeQuery
> > 
> > Any idea?
> > 
> > Thanks,
> > Fede
> > 
> > My configuration:
> > 
> > PIII 500 Mhz RAM 128 MB
> > Debian GNU/Linux 3.0r1 Kernel 2.4.25
> > 
> > SWIG 1.3.21
> > -----------
> > # ./configure '--prefix=/usr/local' \
> > 		'--with-python=/usr/bin/python2.2' \
> > 		'--with-perl=/usr/local/bin/perl'
> > # make
> > # make runtime
> > # make install-runtime
> > # make install
> > 
> > db 4.2.52
> > ---------
> > # cd build_unix/
> > # ../dist/configure --prefix=/usr/local/subversion
> > # make
> > # make install
> > 
> > apache 2.0.49
> > -------------
> > # ./configure --prefix=/usr/local/subversion \
> > 	--enable-dav \
> > 	--enable-so \
> > 	--with-dbm=db4 \
> > 	--with-berkeley-db=/usr/local/subversion \
> > 	--enable-mod_rewrite \
> > 	--enable-threads
> > # make
> > # make install
> > 
> > subversion 1.0.4
> > ----------------
> > # rm -f /usr/local/subversion/lib/libsvn*
> > # rm -f /usr/local/subversion/lib/libapr*
> > # rm -f /usr/local/subversion/lib/libexpat*
> > # rm -f /usr/local/subversion/lib/libneon*
> > # AUTOCONF=autoconf2.50 sh ./autogen.sh
> > # ./configure --prefix=/usr/local/subversion \
> > 	--with-berkeley-db=/usr/local/subversion \
> > 	--enable-dbm=db4 \
> > 	--with-apxs=/usr/local/subversion/bin/apxs \
> > 	--with-swig=/usr/local \
> > 	--enable-swig-bindings=pitón,perl
> > # make
> > # make check
> > # make install
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

-- 
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org