Giter Club home page Giter Club logo

Comments (11)

jacquesfize avatar jacquesfize commented on July 28, 2024

Hi @daubin427,

Did you run this code into the GMatch4py clone directory?

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

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.

from gmatch4py.

jacquesfize avatar jacquesfize commented on July 28, 2024

Did you try to run the same code in an Ipython or a python interpreter ?

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

Yes. See in the last line of my post I tried running it from a python3 interpreter.

from gmatch4py.

jacquesfize avatar jacquesfize commented on July 28, 2024

I mean did you try to execute the code inside simpleGmatch4py.pyx (copy-paste) in an interpreter ?

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

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'

from gmatch4py.

jacquesfize avatar jacquesfize commented on July 28, 2024

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

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

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?

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

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!

from gmatch4py.

jacquesfize avatar jacquesfize commented on July 28, 2024

Great ! ;)

from gmatch4py.

daubin427 avatar daubin427 commented on July 28, 2024

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

from gmatch4py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.