Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in py_call_impl(callable, dots$args, dots$keywords) : KeyError: 0 #55

Open
lix2k3 opened this issue Jan 1, 2021 · 1 comment
Open

Comments

@lix2k3
Copy link

lix2k3 commented Jan 1, 2021

Hi,
running the following results in error: Error in py_call_impl(callable, dots$args, dots$keywords) : KeyError: 0

motifr::count_motifs(multilvl_ex,
lvl_attr = "lvl",
motifs = list("1,2[I.C]", "1,2[II.C]", "2,1[I.C]", "2,1[II.C]"),
directed = FALSE
)

motif_summary(qgraph2, lvl_attr = "lvl")

Both function calls return the same error. reticulate is loaded, by the way.

@tseppelt
Copy link
Collaborator

tseppelt commented Jan 1, 2021

Dear @lix2k3, I could not reproduce the situation that you described. Please provide some details:

  • What do your objects multilvl_ex and qgraph2 look like? What sort of graph objects are they (network, tidygraph, igraph, etc.)? Which nodal attributes do they provide?
  • Also, could you post the detailed Python traceback prompted by R when calling the functions you mentioned? (Something like Detailed traceback: File "...site-packages/sma/rbridge.py", line 38, in translateGraph % (typeAttr, str(attributeNames))))
    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants