Skip to content

Bug: dependency error for network_p2p(display = "leiden") #145

@moralec

Description

@moralec

Describe the bug
Running network_p2p with option "leiden" results in a error:

Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'leidenalg'

To Reproduce
Steps to reproduce the behaviour:

  1. Install latest version of the package: install.packages("wpa")
  2. Simulate p2p network: p2p_data <- p2p_data_sim(size = 50)
  3. Run Leiden plot: p2p_data %>% network_p2p(display = "leiden", path = NULL, return = "plot")

Screenshots
image

Additional context
Testing modules <- reticulate::py_module_available("leidenalg") shows that the module was not installed.
It can be solved by running py_install("python-igraph") and py_install("leidenalg") and then running our code

An additional step may be required in the code to solve the issue?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions