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

Segmentation Fault when using so file #13

Open
tratom opened this issue Dec 7, 2024 · 0 comments
Open

Segmentation Fault when using so file #13

tratom opened this issue Dec 7, 2024 · 0 comments

Comments

@tratom
Copy link

tratom commented Dec 7, 2024

Hello, I'm trying to run the algorithm on python. I followed the instruction for the python binding and get the shared object file.
After running the Community method, getting the dl.obj and executing the run method, I tried to print a specific level with dl_obj.print_level(2) and I get a segmentation fault.

I tried with different network size, with the same result.

This is the simple code I tried to execute:

import directedlouvain as dl
import utils

#membership = utils.run_directed_louvain(nom_graphe="soc-Epinions1.txt", nom_hierarchy="hierarchy", display_level=6)

dl_obj = dl.Community("test.txt", precision=0.0001, gamma=1, reproducibility=False, renumbering=True, random=False)

import contextlib
output=open("logcom", "w")
with contextlib.redirect_stdout(output):
    dl_obj.run(verbose=True)
output.close()

output=open("logcomlevel2", "w")
with contextlib.redirect_stdout(output):
    dl_obj.print_level(2)
output.close()

and this the error:
Segmentation fault (core dumped)

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

1 participant