Package Details: python-graph-tool 2.80-2

Git Clone URL: https://aur.archlinux.org/python-graph-tool.git (read-only, click to copy)
Package Base: python-graph-tool
Description: A Python module for manipulation and statistical analysis of graphs
Upstream URL: https://graph-tool.skewed.de
Keywords: graphs networks science
Licenses: LGPL3
Conflicts: python3-graph-tool
Provides: python3-graph-tool
Replaces: python3-graph-tool
Submitter: muellner
Maintainer: count0
Last Packager: count0
Votes: 29
Popularity: 0.000000
First Submitted: 2013-11-24 19:22 (UTC)
Last Updated: 2024-12-31 10:04 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 15 Next › Last »

johnabs commented on 2022-08-19 15:07 (UTC)

Thanks npfeiler, I got it built!

However, I'm now getting an error with the stochastic_blockmodel_dl function along the lines of the following:

/usr/include/c++/12.1.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp,
_Alloc>::operator[](size_type) [with _Tp = std::tuple<std::vector<double, std::allocator<double> >,
std::vector<double, std::allocator<double> > >; _Alloc = std::allocator<std::tuple<std::vector<double,
std::allocator<double> >, std::vector<double, std::allocator<double> > > >; reference =
std::tuple<std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> > >&;
size_type = long unsigned int]: Assertion '__n < this->size()' failed.

This was from just following the documentation with the following input:

from graph_tool.all import *
g=graph_tool.collection.data["football"]
state = graph_tool.inference.minimize_blockmodel_dl(g)

If I don't run it with "graph_tool.inference", it says there is no attribute matching minimize_blockmodel_dl, though the documentation does not mention this, though I guess this is either an oversight, or an issue with needing to run import on the inference submodule. Regardless, that's not the issue.

Seems like another C++ problem? However, it built just fine with the current pkgbuild, so I'm not sure what's up.

johnabs commented on 2022-08-18 16:35 (UTC)

I'll try closing everything before building; if that still fails, do I disable LTO in the pkgbuild?

npfeiler commented on 2022-08-18 15:12 (UTC)

I assume you run out of ram.
You could try to free some beforehand, or disable LTO.

johnabs commented on 2022-08-18 13:48 (UTC) (edited on 2022-08-18 13:54 (UTC) by johnabs)

Hi, I'm currently getting a build error of the following:

/usr/include/boost/iterator.hpp:10:1: note: '#pragma message: This header is deprecated. Use <iterator> instead.' 10 | BOOST_HEADER_DEPRECATED("<iterator>") | ^~~~~~~~~~~~~~~~~~~~~~~ CXXLD libgraph_tool_inference.la g++: fatal error: Killed signal terminated program lto1 compilation terminated. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[1]: [Makefile:3335: libgraph_tool_inference.la] Error 1 make[1]: Leaving directory '~/.cache/paru/clone/python-graph-tool/src/graph-tool-2.45' make: [Makefile:2051: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

It occurred when building /src/graph/inference/graph_modularity.cc:18, apparently.

Anything I can do to help diagnose this?

count0 commented on 2022-01-02 19:38 (UTC)

@rommedahl Fixed, thanks!

rommedahl commented on 2021-12-29 01:04 (UTC)

Hi, after install I got an error when loading, but it seemed to be resolved when I installed python-gobject. Perhaps it should be put as a dependency?

count0 commented on 2021-10-29 12:30 (UTC)

@akstrfn Fixed!

akstrfn commented on 2021-09-09 09:27 (UTC)

There is a bug in pkg. makepkg defined CXXFLAGS are discarded so the following fix is necessary export CXXFLAGS="$CXXFLAGS -flto=auto -fno-fat-lto-objects"

count0 commented on 2021-06-26 19:12 (UTC)

@npfeiler Fixed. Thanks!

npfeiler commented on 2021-06-26 17:51 (UTC)

actually, using " -flto=auto -fno-fat-lto-objects" is probably best it reduces compilation time as well as memory usage