Gentoo Archives: gentoo-science

From: Marc Vinyals <marcvinyals@××××××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] ImportError with latest python-igraph
Date: Fri, 19 Mar 2021 14:31:49
Message-Id: 20210319163136.24b270bc@clevo-marc
In Reply to: Re: [gentoo-science] ImportError with latest python-igraph by "François Bissey"
1 Sure:
2
3 $ LANG=C readelf -d /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so
4
5 Dynamic section at offset 0x8ac60 contains 25 entries:
6 Tag Type Name/Value
7 0x0000000000000001 (NEEDED) Shared library: [libigraph.so.0]
8 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
9 0x000000000000000c (INIT) 0x1e000
10 0x000000000000000d (FINI) 0x4e96c
11 0x0000000000000019 (INIT_ARRAY) 0x8bc50
12 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
13 0x000000000000001a (FINI_ARRAY) 0x8bc58
14 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
15 0x000000006ffffef5 (GNU_HASH) 0x200
16 0x0000000000000005 (STRTAB) 0x7e88
17 0x0000000000000006 (SYMTAB) 0x1c18
18 0x000000000000000a (STRSZ) 28749 (bytes)
19 0x000000000000000b (SYMENT) 24 (bytes)
20 0x0000000000000003 (PLTGOT) 0x8c000
21 0x0000000000000002 (PLTRELSZ) 14712 (bytes)
22 0x0000000000000014 (PLTREL) RELA
23 0x0000000000000017 (JMPREL) 0x1a368
24 0x0000000000000007 (RELA) 0xf760
25 0x0000000000000008 (RELASZ) 44040 (bytes)
26 0x0000000000000009 (RELAENT) 24 (bytes)
27 0x000000006ffffffe (VERNEED) 0xf710
28 0x000000006fffffff (VERNEEDNUM) 1
29 0x000000006ffffff0 (VERSYM) 0xeed6
30 0x000000006ffffff9 (RELACOUNT) 1387
31 0x0000000000000000 (NULL) 0x0
32
33
34 Also, the missing symbol appears to be in the library:
35
36 $ nm -D -g /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so | grep igraph_subcomponent
37
38 U igraph_subcomponent
39
40
41 El Fri, 19 Mar 2021 19:15:09 +1300
42 François Bissey <fbissey@××××××××××××.nz> va escriure el següent:
43
44 > Can you post the output of
45 > readelf -d
46 > /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so
47 > with version 0.9.0?
48 >
49 > > On 19/03/2021, at 13:09, Marc Vinyals <marcvinyals@××××××××.com>
50 > > wrote:
51 > >
52 > > Hi all,
53 > >
54 > > I am running into trouble when trying to use
55 > > dev-python/python-igraph-0.9.0 with dev-libs/igraph-0.9.0:
56 > >
57 > > $ python3
58 > > Python 3.8.8 (default, Mar 14 2021, 23:44:05)
59 > > [GCC 9.3.0] on linux
60 > > Type "help", "copyright", "credits" or "license" for more
61 > > information.
62 > >>>> import igraph
63 > > Traceback (most recent call last):
64 > > File "<stdin>", line 1, in <module>
65 > > File "/usr/lib/python3.8/site-packages/igraph/__init__.py", line
66 > > 31, in <module> from igraph._igraph import (
67 > > ImportError:
68 > > /usr/lib/python3.8/site-packages/igraph/_igraph.cpython-38-x86_64-linux-gnu.so:
69 > > undefined symbol: igraph_subcomponent
70 > >
71 > > To get this to work I have to downgrade both igraph and
72 > > python-igraph to version 0.8.3 (mixing and matching do not work
73 > > either because of different reasons, but that would be a separate
74 > > issue). I did not try igraph-0.8.5.
75 > >
76 > > I did not find any reports of this issue upstream and this looks too
77 > > basic to remain unnoticed, so I suspect the problem is somewhere
78 > > else on my side, but just in case can anyone reproduce it?
79 > >
80 > > Best,
81 > > Marc
82 > >
83 >
84 >

Replies

Subject Author
Re: [gentoo-science] ImportError with latest python-igraph "François Bissey" <fbissey@××××××××××××.nz>