Open neuronalX opened 4 years ago
Hello,
Sorry for the sorry state of that code, it is mostly unchanged from another group's LRF benchmark paper and I haven't gotten around to rewriting the whole thing. From what I can discern it is importing the standard library's random header http://www.cplusplus.com/reference/random/ in order to use it for creating distributions. If the compiler isn't finding the random header from the STL, I would suspect that the compiler you are using doesn't automatically support C++11, since random is only in C++11 or greater. Adding the -std=c++11 flag will probably resolve the issue.
PhD Student, Center for Complex Networks and Systems Research School of Informatics, Computing, and Engineering Indiana University Nathaniel Rodriguez
On Wed, Dec 4, 2019 at 10:09 AM neuronalX notifications@github.com wrote:
Hi, I have a problem with the installation, it seems to come from a file that is not accessed from the correct path:
running install running bdist_egg running egg_info creating graphgen.egg-info writing requirements to graphgen.egg-info/requires.txt writing graphgen.egg-info/PKG-INFO writing top-level names to graphgen.egg-info/top_level.txt writing dependency_links to graphgen.egg-info/dependency_links.txt writing manifest file 'graphgen.egg-info/SOURCES.txt' reading manifest file 'graphgen.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'graphgen.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.7-x86_64/egg running install_lib running build_py creating build creating build/lib.macosx-10.7-x86_64-2.7 creating build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/bipartite_graphs.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/unweighted_directed_hmn.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/init.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/stochastic_block_model.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/two_community_block_model.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/lfr_generators.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen running build_ext building 'unweighted_directed_graph_generator' extension creating build/temp.macosx-10.7-x86_64-2.7 creating build/temp.macosx-10.7-x86_64-2.7/graphgen creating build/temp.macosx-10.7-x86_64-2.7/graphgen/unweighted_directed gcc -fno-strict-aliasing -I/Users/xavier/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Igraphgen/unweighted_directed -I/Users/xavier/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/xavier/anaconda/include/python2.7 -c graphgen/unweighted_directed/benchm.cpp -o build/temp.macosx-10.7-x86_64-2.7/graphgen/unweighted_directed/benchm.o -std=c++14 -Wno-write-strings In file included from graphgen/unweighted_directed/benchm.cpp:34: In file included from graphgen/unweighted_directed/./standard_include.cpp:28: graphgen/unweighted_directed/print.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ graphgen/unweighted_directed/print.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from graphgen/unweighted_directed/benchm.cpp:34: In file included from graphgen/unweighted_directed/./standard_include.cpp:29: graphgen/unweighted_directed/random.cpp:27:10: fatal error: 'random' file not found
include
^~~~~~~~
2 warnings and 1 error generated. error: command 'gcc' failed with exit status 1
Would you have an idea of how to solve this? Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Nathaniel-Rodriguez/graphgen/issues/2?email_source=notifications&email_token=ADFBEKQXAIQH32VWTGGA3U3QW7IZ3A5CNFSM4JVLBALKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6BUNQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBEKX5KUNXMEDLPEG4PK3QW7IZ3ANCNFSM4JVLBALA .
Actually scratch that last one. It should already be compiling with the C++14 flag. What compiler version was your Anaconda/Python version installed with? The one being used to install the package? If this was done on a mac there might be another flag that needs to be added to the setup.py file to tell Python to link with the standard library.
PhD Student, Center for Complex Networks and Systems Research School of Informatics, Computing, and Engineering Indiana University Nathaniel Rodriguez
On Wed, Dec 4, 2019 at 10:09 AM neuronalX notifications@github.com wrote:
Hi, I have a problem with the installation, it seems to come from a file that is not accessed from the correct path:
running install running bdist_egg running egg_info creating graphgen.egg-info writing requirements to graphgen.egg-info/requires.txt writing graphgen.egg-info/PKG-INFO writing top-level names to graphgen.egg-info/top_level.txt writing dependency_links to graphgen.egg-info/dependency_links.txt writing manifest file 'graphgen.egg-info/SOURCES.txt' reading manifest file 'graphgen.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'graphgen.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.7-x86_64/egg running install_lib running build_py creating build creating build/lib.macosx-10.7-x86_64-2.7 creating build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/bipartite_graphs.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/unweighted_directed_hmn.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/init.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/stochastic_block_model.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/two_community_block_model.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen copying graphgen/lfr_generators.py -> build/lib.macosx-10.7-x86_64-2.7/graphgen running build_ext building 'unweighted_directed_graph_generator' extension creating build/temp.macosx-10.7-x86_64-2.7 creating build/temp.macosx-10.7-x86_64-2.7/graphgen creating build/temp.macosx-10.7-x86_64-2.7/graphgen/unweighted_directed gcc -fno-strict-aliasing -I/Users/xavier/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Igraphgen/unweighted_directed -I/Users/xavier/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/xavier/anaconda/include/python2.7 -c graphgen/unweighted_directed/benchm.cpp -o build/temp.macosx-10.7-x86_64-2.7/graphgen/unweighted_directed/benchm.o -std=c++14 -Wno-write-strings In file included from graphgen/unweighted_directed/benchm.cpp:34: In file included from graphgen/unweighted_directed/./standard_include.cpp:28: graphgen/unweighted_directed/print.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ graphgen/unweighted_directed/print.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from graphgen/unweighted_directed/benchm.cpp:34: In file included from graphgen/unweighted_directed/./standard_include.cpp:29: graphgen/unweighted_directed/random.cpp:27:10: fatal error: 'random' file not found
include
^~~~~~~~
2 warnings and 1 error generated. error: command 'gcc' failed with exit status 1
Would you have an idea of how to solve this? Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Nathaniel-Rodriguez/graphgen/issues/2?email_source=notifications&email_token=ADFBEKQXAIQH32VWTGGA3U3QW7IZ3A5CNFSM4JVLBALKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6BUNQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBEKX5KUNXMEDLPEG4PK3QW7IZ3ANCNFSM4JVLBALA .
Hi, I have a problem with the installation, it seems to come from a file that is not accessed from the correct path:
Would you have an idea of how to solve this? Thanks