Closed daubin427 closed 6 years ago
Hi @daubin427,
Did you run this code into the GMatch4py clone directory?
Hello! No I ran it in a different directory. I think the problem lies where call it GMatch4py in setup.py, but no where else is that used with that punctuation.
Did you try to run the same code in an Ipython or a python interpreter ?
Yes. See in the last line of my post I tried running it from a python3 interpreter.
I mean did you try to execute the code inside simpleGmatch4py.pyx
(copy-paste) in an interpreter ?
Sadly this too fails in the same maner :(
ipython3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import networkx as nx
In [2]: import gmatch4py as gm
-----------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-789a2ae4f894> in <module>()
----> 1 import gmatch4py as gm
/usr/local/lib/python3.6/dist-packages/gmatch4py/__init__.py in <module>()
2
3 # Graph Edit Distance algorithms import
----> 4 from .ged.graph_edit_dist import *
5 from .ged.greedy_edit_distance import *
6 from .ged.bipartite_graph_matching_2 import *
gmatch4py/ged/graph_edit_dist.pyx in init GMatch4py.gmatch4py.ged.graph_edit_dist()
ModuleNotFoundError: No module named 'GMatch4py'
It is really weird oO I tried it on an Ubuntu and it's working oO
I did the same thing you did in VirtualEnv, could you run the following commands :
# if don't have virtualenv, do: sudo pip3 install virtualenv
virtualenv -p python3 test_gmatch4py
cd test_gmatch4py
source bin/activate
pip install numpy networkx scikit-learn ipython cython scipy
mkdir install
cd install
git clone https://github.com/Jacobe2169/GMatch4py.git
cd GMatch4py
python setup.py install
cd ../..
nano setup.py # paste code
nano simpleGmatch4py.pyx # paste code
python setup.py build_ext --inplace
python # execute your script
Hi,
I'm behind a proxy and running virtualenv behind it is just not working :(
During the setup is there anything that goes out to the network? Perhaps due to my proxy this is the culprit?
I FOUND IT!!!! WHOOT!!!! Issue was not having scikit-learn. Once I pipped that all was good. Odd error to see without it. Thank you for your super prompt and helpful tips to locate it :) So happy!
Great ! ;)
I created a setup.py for you so that even lazy eyes can't screw up the install ;) All you have to do is fill out the #List of dependencies section at the top. Thanks again :) setup.py.txt
Hello!
I'd love to try this out, but the installation appears to be broken. Using Ubuntu18.04 I
I build a simple setup.py to test:
I create a simpleGmatch4py.pyx:
I build inplace:
python3 setup.py build_ext --inplace
I then try to run it and get an error:
Please help :)