Anaconda's Python: Type Error (Or installation error)
Hi Tiago, Saw your talk at APS (loved it!) and wanted to play with your community/blockmodel stuff. I have spent a good 12 hours trying to get this to work, and finally thought I had it working after my third try compiling from source. To get to this point, the two things I did different than are explicitly written on your instructions were in the configuration step:
CXX='g++-5' --disable-cairo
anaconda is my python distribution, and I'm on Kubuntu 15.04. I can provide any other info that may be helpful.
I tried also the precompiled binaries, but couldn't get them to work. I am not a linux expert so it's more likely than not that these troubles I've been having are my own fault.
Here is the type error I get:
TypeError Traceback (most recent call last)
<ipython-input-13-1cc144b9aea6> in <module>()
1 g,bm = random_graph(1000,lambda:sp.stats.poisson(10),directed = False,model = 'blockmodel-traditional',
----> 2 block_membership = lambda: sp.random.randint(0,10))
/home/tommy/anaconda2/lib/python2.7/site-packages/graph_tool/generation/__init__.pyc in random_graph(N, deg_sampler, directed, parallel_edges, self_loops, block_membership, block_type, degree_block, random, verbose, **kwargs)
382 not parallel_edges,
383 not self_loops, not directed,
--> 384 _get_rng(), verbose, True)
385 g.set_directed(directed)
386
TypeError: No registered converter was able to produce a C++ rvalue of type unsigned long from this Python object of type rv_frozen
Please let me know if there's another info I can give.
Thank you for any help, Tommy