public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: Marc Vinyals <marcvinyals@velodius.com>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] ImportError with latest python-igraph
Date: Fri, 19 Mar 2021 16:31:36 +0200	[thread overview]
Message-ID: <20210319163136.24b270bc@clevo-marc> (raw)
In-Reply-To: <D3110708-9493-464F-B549-F13ADC14AB6C@slingshot.co.nz>

Sure:

$ LANG=C readelf -d /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so

Dynamic section at offset 0x8ac60 contains 25 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libigraph.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x1e000
 0x000000000000000d (FINI)               0x4e96c
 0x0000000000000019 (INIT_ARRAY)         0x8bc50
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x8bc58
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x200
 0x0000000000000005 (STRTAB)             0x7e88
 0x0000000000000006 (SYMTAB)             0x1c18
 0x000000000000000a (STRSZ)              28749 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x8c000
 0x0000000000000002 (PLTRELSZ)           14712 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x1a368
 0x0000000000000007 (RELA)               0xf760
 0x0000000000000008 (RELASZ)             44040 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0xf710
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0xeed6
 0x000000006ffffff9 (RELACOUNT)          1387
 0x0000000000000000 (NULL)               0x0


Also, the missing symbol appears to be in the library:

$ nm -D -g /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so | grep igraph_subcomponent

                 U igraph_subcomponent


El Fri, 19 Mar 2021 19:15:09 +1300
François Bissey <fbissey@slingshot.co.nz> va escriure el següent:

> Can you post the output of 
> readelf -d
> /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so
> with version 0.9.0?
> 
> > On 19/03/2021, at 13:09, Marc Vinyals <marcvinyals@velodius.com>
> > wrote:
> > 
> > Hi all,
> > 
> > I am running into trouble when trying to use
> > dev-python/python-igraph-0.9.0 with dev-libs/igraph-0.9.0:
> > 
> > $ python3
> > Python 3.8.8 (default, Mar 14 2021, 23:44:05) 
> > [GCC 9.3.0] on linux
> > Type "help", "copyright", "credits" or "license" for more
> > information.  
> >>>> import igraph  
> > Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> >  File "/usr/lib/python3.8/site-packages/igraph/__init__.py", line
> > 31, in <module> from igraph._igraph import (
> > ImportError:
> > /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so:
> > undefined symbol: igraph_subcomponent
> > 
> > To get this to work I have to downgrade both igraph and
> > python-igraph to version 0.8.3 (mixing and matching do not work
> > either because of different reasons, but that would be a separate
> > issue). I did not try igraph-0.8.5.
> > 
> > I did not find any reports of this issue upstream and this looks too
> > basic to remain unnoticed, so I suspect the problem is somewhere
> > else on my side, but just in case can anyone reproduce it?
> > 
> > Best,
> > Marc
> >   
> 
> 



  reply	other threads:[~2021-03-19 14:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19  0:09 [gentoo-science] ImportError with latest python-igraph Marc Vinyals
2021-03-19  6:15 ` François Bissey
2021-03-19 14:31   ` Marc Vinyals [this message]
2021-03-19 18:55     ` François Bissey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210319163136.24b270bc@clevo-marc \
    --to=marcvinyals@velodius.com \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox