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

Cannot find a python module named "libnauty_graph" #1

Open
ghost opened this issue Jul 31, 2018 · 5 comments
Open

Cannot find a python module named "libnauty_graph" #1

ghost opened this issue Jul 31, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2018

Hi, thanks for your sharing for python implementation of PATCHY-SAN method! I just have a question about it, you have used a python module named "libnauty_graph", but I can find it anywhere. I cannot install it by "pip install ..." or "brew install ..." or download it on website, and I cannot find it in your git either. So could you please tell me how can I get "libnauty_graph"? Thanks for your kindness!

@seiya-kumada
Copy link
Owner

seiya-kumada commented Aug 1, 2018 via email

@ghost
Copy link
Author

ghost commented Aug 3, 2018

Thanks for your replying. But I have encountered a problem when I run the last step "make" in the terminal, and the error is shown in the followings.

g++-4.9 -fPIC -I/usr/local/include -I/usr/local/nauty26r7/include -I./nauty_class/nauty_class -I/usr/include/python2.7 -DNDEBUG -DBOOST_PYTHON=1 -O3 -Wall -std=c++14 -Wno-unused-local-typedefs -o obj/./nauty_class/nauty_class/NautyGraph.o -c nauty_class/nauty_class/NautyGraph.cpp
make: g++-4.9: No such file or directory
make: *** [obj/./nauty_class/nauty_class/NautyGraph.o] Error 1

I have no idea what can be done to solve this problem. and also I cannot find "procedures.txt" in the directory "patchy-san".

Thanks for your kind help!

@shaofengzeng
Copy link

shaofengzeng commented Aug 16, 2018

I also meet this problem. Hope for your solution
and another problem is "fatal error: nauty.h: No such file or directory"

@shaofengzeng
Copy link

This project should be run on ubuntu os (like ubuntu 16.04).
And you need to pay attention to three things.

  1. setup graph_tool(https://graph-tool.skewed.de/). if you using anaconda, try the following command:
    conda install -c ostrokach-forge -c pkgw-forge -c conda-forge graph-tool
  2. setup nauty26r7. This can be download from https://github.com/sebasguts/NautyTracesInterface.
    What we need is only the files of directory "nauty26r7" . Then modify the file "makefile" as follows:
    CC=gcc -shared -fPIC
    save it, and open a terminal change to the directory of nauty26r7, followed with the following
    command:
    make
    After the compilation, make two directory in anuty26r7---"include", "lib". Copy all the file *.h to the
    directory "include", the copy all the compiled files, *.o *.a or any other executable files to the
    directory "lib". finally move the directory nauty26r7 to the director /usr/local/.
    Finally, add the libs to the searching directory just as follows:
    cd /etc/ld.so.conf.d/
    sudo gedit nauty26r7.conf
    write the path /usr/local/nauty26r7/lib into file nauty26r7.conf and save it. After that, using the
    command:
    sudo ldconfig
    to update the cache.
  3. setup cpplinq. download file from https://github.com/mrange/cpplinq
    and cd to the directory of Test, followed with the command:
    sh compile_with_g++.sh
    after the compilation, copy the files cpplinq.g++ and cpplinq.hpp(/cpplinq-master/CppLinq/) to
    directory /patchy-san-master/nauty_sample/nauty_class/_nauty_class/

@seiya-kumada
Copy link
Owner

Sorry!
I forgot to commit 'procedures.txt' that I wrote when I implemented the code.
I committed it.
Thanks for your interests.
Regards,
S. Kumada

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