Fresh Install doesn't work
Created by: daubin427
Hello!
I'd love to try this out, but the installation appears to be broken. Using Ubuntu18.04 I
- git clone https://github.com/Jacobe2169/GMatch4py.git
- cd to GMatch4py
- sudo python3 setup.py install
- All is well
I build a simple setup.py to test:
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("simpleGmatch4py.pyx")
)
I create a simpleGmatch4py.pyx:
# Gmatch4py use networkx graph
import networkx as nx
# import the GED using the munkres algorithm
import gmatch4py as gm
g1=nx.complete_bipartite_graph(5,4)
g2=nx.complete_bipartite_graph(6,4)
ged=gm.GraphEditDistance(1,1,1,1) # all edit costs are equal to 1
result=ged.compare([g1,g2],None)
print(result)
print("Hello")
I build inplace:
python3 setup.py build_ext --inplace
I then try to run it and get an error:
python3
>>import simpleGmatch4py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "simpleGmatch4py.pyx", line 4, in init simpleGmatch4py
import gmatch4py as gm
File "/usr/local/lib/python3.6/dist-packages/gmatch4py/__init__.py", line 4, in <module>
from .ged.graph_edit_dist import *
File "gmatch4py/ged/graph_edit_dist.pyx", line 1, in init GMatch4py.gmatch4py.ged.graph_edit_dist
ModuleNotFoundError: No module named 'GMatch4py'
Please help :)