Hi, using either the latest git repo or 2.2.36 and running:
/usr/bin/python3.3 -c 'import graph_tool ; print(graph_tool.__version__)'
(or even python3.3 -c 'import graph_tool')
results in:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python3.3/site-packages/graph_tool/__init__.py", line 101, in <module>
dl_import("from . import libgraph_tool_core as libcore")
File "/usr/lib64/python3.3/site-packages/graph_tool/dl_import.py", line 57, in dl_import
exec(import_expr, local_dict, global_dict)
File "<string>", line 1, in <module>
ImportError: /usr/lib64/python3.3/site-packages/graph_tool/libgraph_tool_core.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE
It appears that -lboost_python3_3-mt is not being used, even though my system default is py3.3.
the interesting part of the ./configure log shows:
graph-tool will be installed at: /usr/lib64/python3.3/site-packages
===========================
Using python version: 3.3.5
===========================
checking for boostlib >= 1.53.0... yes
checking whether the Boost::Python library is available... yes
checking for exit in -lboost_python... no
checking for exit in -lboost_python... (cached) no
checking for exit in -lboost_python-2.7-mt... yes
if I recompile boost without py2.7 support (py3.3 only), then the interesting part of the ./configure log shows:
graph-tool will be installed at: /usr/lib64/python3.3/site-packages
===========================
Using python version: 3.3.5
===========================
checking for boostlib >= 1.53.0... yes
checking whether the Boost::Python library is available... yes
checking for exit in -lboost_python... no
checking for exit in -lboost_python... (cached) no
checking for exit in -lboost_python-2.7... no
checking for exit in -lboost_python-3-mt... yes
and the test command works:
$/usr/bin/python3.3 -c 'import graph_tool ; print(graph_tool.__version__)'
2.2.36 (commit e3865108, Thu Jan 8 17:03:44 2015 +0100)
More detail on this issue is available in the gentoo bug tracker:
https://bugs.gentoo.org/show_bug.cgi?id=536734
How do we get the Makefile to have
BOOST_PYTHON_LIB = boost_python-3-mt
instead of
BOOST_PYTHON_LIB = boost_python-2.7-mt
when boost has been compiled for 2.7 and 3.3?
Thanks!
-Justin Keogh
Any idea on when you'll be releasing a new version of graph_tool? I'd like
to be able to deploy the fix from https://git.skewed.de/count0/graph
-tool/issues/188 on our amazon servers.
There was talk of a November release but it looks like that didn't work out
(no worries, things come up) so I thought I'd ping again.
Thank you!
-Lisa
Hi@all,
I apologize in advance if this is a trivial question, I’m not very
experienced with graphs.
First, I have a hierarchical order of a disease list. Just for example:
1. Respiratory system disease
1.1. Asphyxia neonatorum
1.2. Croup
1.3. Lower respiratory tract disease
1.4. Bronchial disease
1.4.1. asthma
<http://bioportal.bioontology.org/ontologies/DOID/?p=classes&conceptid=http%…>
1.4.2. bronchiectasis
1.4.3. bronchitis
1.5. lung disease
1.5.1. acute chest syndrome
1.5.2. bronchiolitis
1.5.3. brown induration
1.6. interstitial lung disease
1.6.1. bronchiolitis obliterans
1.6.2. extrinsic allergic alveolitis
1.6.3. pneumoconiosis
Next, I have a database with people’s medical records. For example:
Patient-1: asthma, bronchiolitis
Patient-2: asthma, pneumoconiosis
Lastly, when a new patient enters the system. For example:
Patient-to-search: asthma, brown induration
I want to find the person which is “most similar” in terms of the diseases
hierarchy. (Which is Patient-1). How do I accomplish such task efficiently
with the graph tool?
Thanks,
Dov
Sorry for the delay, for some reason your message did not make it to the
mailing list.
Dave wrote
> Hi all. I'm trying to write a simple toy program to explore dynamic graph
> plotting.
> What I'll need in the future is to use this program to update the
> visualization of a graph as long as nodes and vertices are generated, one
> by one. Follows what I wrote, taking a lot from the examples.
> unfortuantely, the plot is not updated, it keeps showing vertices and
> nodes I added outside the update_state function.
> Can please someone tell me where I'm wrong?
> thanks in advance!
The reason why it didn't work is because you did not take care of providing
the positions for the new vertices. See attached for a version that does
what (I think) you wanted.
Best,
Tiago
dynamic.py
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com…>
-----
--
Tiago de Paula Peixoto <tiago(a)skewed.de>
--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com…
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
I'm trying to install graph-tool on Debian Wheezy, following the instructions
at http://graph-tool.skewed.de/download#debian - unfortunately, I have some
problems, depending on what value I use for DISTRIBUTION in my
/etc/apt/sources.list file:
If I use 'jessie' or 'sid', then (after running 'apt-get update'), when I
run 'apt-get install python-graph-tool', I get an error about unsatisfied
dependencies (various libboost-... packages, libcgal10, libgomp1,
libstdc++6). I'm not sure what the exact error message is in english, since
my server language is set to german. If necessary, I can try to provide more
details.
If I use 'testing' (this was in the instructions until a few days ago),
running 'apt-get update' gives me some 404s for:
http://downloads.skewed.de testing/main Sources
http://downloads.skewed.de testing/main i386 Packages
If I use 'wheezy' (on a whim - I haven't seen this in the instructions),
then running 'apt-get update' works, and ostensibly, so does running
'apt-get install python-graph-tool', but the version it installs is an old
one which cannot load graphs in the gt format (which I need).
Am I doing something wrong? Is it possible to install a precompiled package
of a recent version on Debian Wheezy? I'm not very familiar with Debian
package management. If any more details are required, please let me know.
On an unrelated note: thanks for graph-tool! It is well-crafted and has
brought me much joy :)
--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com…
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.