Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] problema import binding python per gstreamer
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Jul 09, 2007 11:55 am    Post subject: [RISOLTO] problema import binding python per gstreamer Reply with quote

il tutto nasce dal voler installare istanbul il cui configure fallisce nel tentativo di importare il modulo gst (per python)
da cui nascono questi bugreport

quindi vedo di risalire un pò alla fonte (gst-python-0.10.6) e ho un errore che non so come risolvere:
Code:
>>> import gst
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py", line 108, in ?
    from _gst import *
ImportError: /usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so: undefined symbol: libxml_xmlDocPtrWrap
>>>


in gnome bugzilla ho trovato questi due bug report di cui non so che farmene.... anche perché ho idea che sia qualche casino relativo a gentoo, qualche install/disinstall che ha lasciato pezzi in giro...
il simbolo è relativo a libxml2...

pls help the peach!!! :(
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom


Last edited by Peach on Tue Jul 10, 2007 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Jul 09, 2007 1:32 pm    Post subject: Re: grave problema import binding python per gstreamer Reply with quote

Peach wrote:
ImportError: /usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so: undefined symbol: libxml_xmlDocPtrWrap>>>


Ma gst-python-0.10.6 lo hai appena installato oppure c'era già? Perché quell'errore da l'idea di una vecchia compilazione...
_________________
Ciao da me!
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Jul 09, 2007 1:43 pm    Post subject: Re: grave problema import binding python per gstreamer Reply with quote

randomaze wrote:
Peach wrote:
ImportError: /usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so: undefined symbol: libxml_xmlDocPtrWrap>>>


Ma gst-python-0.10.6 lo hai appena installato oppure c'era già? Perché quell'errore da l'idea di una vecchia compilazione...


era dipendenza di istanbul e quindi l'ho installato per la prima volta l'altro ieri
ho provato anche a ricompilare libxml2, gstreamer (togliendo la versione 0.8 che era rimasta lì per via dello slot) e gnome-python-bindings, ma niente che abbia risolto il problema.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Jul 09, 2007 6:52 pm    Post subject: Reply with quote

questo non succede se chiaramente prima importo libxml2 e poi gst... ma funziona solo in console di python:
Code:
# python
Python 2.4.4 (#1, May 13 2007, 16:28:10)
[GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gst
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py", line 108, in ?
    from _gst import *
ImportError: /usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so: undefined symbol: libxml_xmlDocPtrWrap
>>> import libxml2
>>> import gst
>>>


È come se _gst.so non fosse stato linkato con libxml2... questo sinceramente non so cosa possa causarlo, e se qualcuno ha una minima idea sono disposto a provare di tutto :twisted:

in ogni caso per il momento sono andato a ricompilarmi un po' di cose:
Code:
# ldd /usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so
        linux-gate.so.1 =>  (0xb7f50000)
        libgstcontroller-0.10.so.0 => /usr/lib/libgstcontroller-0.10.so.0 (0xb7ecd000)
        libgstnet-0.10.so.0 => /usr/lib/libgstnet-0.10.so.0 (0xb7ec6000)
        libgstdataprotocol-0.10.so.0 => /usr/lib/libgstdataprotocol-0.10.so.0 (0xb7ec1000)
        libgstbase-0.10.so.0 => /usr/lib/libgstbase-0.10.so.0 (0xb7e9f000)
        libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0xb7e09000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7dd0000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7dcd000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7dc9000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7dc4000)
        librt.so.1 => /lib/librt.so.1 (0xb7dbb000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7ca1000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7c0e000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7bf7000)
        libc.so.6 => /lib/libc.so.6 (0xb7acf000)
        /lib/ld-linux.so.2 (0x80000000)
        libz.so.1 => /lib/libz.so.1 (0xb7abd000)
        libm.so.6 => /lib/libm.so.6 (0xb7a97000)

che (apparte ovviamente linux-gate) appartengono a gcc, glibc, libxml2 e gstreamer.


appena ricompilati e non è cambiato nulla. stessi errori.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Tue Jul 10, 2007 9:24 am    Post subject: Reply with quote

Stai usando LD_FLAGS custom?
_________________
Ciao da me!
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Tue Jul 10, 2007 10:22 am    Post subject: Reply with quote

randomaze wrote:
Stai usando LD_FLAGS custom?


bingo!
siamo telepatici... sta di fatto che l'altro giorno dallo sclero mi è sfuggito questo bug:
https://bugs.gentoo.org/show_bug.cgi?id=166221
che dice proprio che "-z,now" non gli piace.
non so come mai ma taaaaanto tempo fa ho compilato il mondo con LDFLAGS="-Wl,-z,now". ora l'ho segato via direttamente, avrebbe senso ricompilare il mondo?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum