question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It seems that igraph project changed its name

See original GitHub issue

While I run ‘sc.tl.louvain’, this error raised and told me I should call ‘jgraph’. Is it necessary for me to change the package name of 'igraph’to ‘jgraph’ manually?

---------------------------------------------------------------------------
DeprecationWarning                        Traceback (most recent call last)
<ipython-input-191-71b705e00011> in <module>
----> 1 sc.tl.louvain(ad_2)

/usr/local/lib/python3.6/dist-packages/scanpy/tools/_louvain.py in louvain(adata, resolution, random_state, restrict_to, key_added, adjacency, flavor, directed, use_weights, partition_type, partition_kwargs, copy)
    112             directed = False
    113         if not directed: logg.debug('    using the undirected graph')
--> 114         g = utils.get_igraph_from_adjacency(adjacency, directed=directed)
    115         if use_weights:
    116             weights = np.array(g.es["weight"]).astype(np.float64)

/usr/local/lib/python3.6/dist-packages/scanpy/utils.py in get_igraph_from_adjacency(adjacency, directed)
    379 def get_igraph_from_adjacency(adjacency, directed=None):
    380     """Get igraph graph from adjacency matrix."""
--> 381     import igraph as ig
    382     sources, targets = adjacency.nonzero()
    383     weights = adjacency[sources, targets]

/usr/local/lib/python3.6/dist-packages/igraph/__init__.py in <module>
      6 __license__ = "MIT"
      7 
----> 8 raise DeprecationWarning("To avoid name collision with the igraph project, "
      9                          "this visualization library has been renamed to "
     10                          "'jgraph'. Please upgrade when convenient.")

DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'. Please upgrade when convenient.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
LuckyMDcommented, Sep 24, 2019

Hi @YiweiNiu,

Please install python-igraph and not igraph via pip. So run pip install python-igraph and get rid of the igraph package. You may have to update you pip as well.

2reactions
flying-sheepcommented, Sep 24, 2019

scanpy could just check on import if one of them is installed instead of the package that should be installed, and raise a nicely phrased ImportError.

Read more comments on GitHub >

github_iconTop Results From Across the Web

It seems that igraph project changed its name #807 - GitHub
While I run 'sc.tl.louvain', this error raised and told me I should call 'jgraph'. Is it necessary for me to change the package...
Read more >
Error with igraph library - deprecated library - Stack Overflow
DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'.
Read more >
igraph – Network analysis software
igraph is a collection of network analysis tools with the emphasis on efficiency, portability and ease of use. igraph is open source and...
Read more >
igraph.pdf - The Comprehensive R Archive Network
Description Routines for simple graphs and network analysis. It can handle large graphs very well and provides functions for generating random ...
Read more >
#62642 (cmake 1.1 portgroup sets -DDEBUG for the +debug variant ...
Unlike NDEBUG , DEBUG is not a standard macro name, and should not be used for ... This was completely unexpected to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found