Code Monkey home page Code Monkey logo

Comments (13)

ysig avatar ysig commented on June 15, 2024 2

Please see:
https://ysig.github.io/GraKeL/0.1a7/documentation/installation.html#building-grakel

from grakel.

YoungC2015 avatar YoungC2015 commented on June 15, 2024 2

I met this issue today. Finally, it turned out to be a really stupid mistake: leave the directory where the setup.py was!

from grakel.

kprojiang avatar kprojiang commented on June 15, 2024 1

Please see:
https://ysig.github.io/GraKeL/0.1a7/documentation/installation.html#building-grakel

I have tried out the installing command, which are:

  1. conda create -n GraKeL python=3.6
  2. pip install grakel --verbose
  3. pip install sphinx sphinxcontrib-bibtex numpydoc sphinx-rtd-theme sphinx-gallery

The third line is to compile offline doc.

from grakel.

ysig avatar ysig commented on June 15, 2024 1

Can you try:

pip install https://files.pythonhosted.org/packages/6b/b9/1c30ffc28bbf995408cadd33ede4a6bf64bfbfa86d90c1a3ab7e0b699fda/grakel-0.1.8-cp37-cp37m-manylinux1_x86_64.whl

or

pip install https://files.pythonhosted.org/packages/36/c0/89ad5326d4a75f5abe9a6a7a7d28988e5b51692d9902239f56e43c296ae0/grakel-0.1.8-cp37-cp37m-manylinux2010_x86_64.whl

as located here: https://pypi.org/project/grakel/#modal-close

from grakel.

ysig avatar ysig commented on June 15, 2024

from grakel.

BuShiFeiGuo avatar BuShiFeiGuo commented on June 15, 2024

Traceback (most recent call last):
File "D:/04.CEcode/GraKeL-master/examples/weisfeiler_lehman_subtree.py", line 17, in
from grakel.datasets import fetch_dataset
File "D:\04.CEcode\GraKeL-master\grakel_init_.py", line 6, in
from grakel.graph_kernels import GraphKernel
File "D:\04.CEcode\GraKeL-master\grakel\graph_kernels.py", line 13, in
from grakel.kernels import GraphletSampling
File "D:\04.CEcode\GraKeL-master\grakel\kernels_init_.py", line 4, in
from grakel.kernels.kernel import Kernel
File "D:\04.CEcode\GraKeL-master\grakel\kernels\kernel.py", line 17, in
from grakel.kernels._c_functions import k_to_ij_triangular
ImportError: cannot import name 'k_to_ij_triangular'

This problem appeared for me..
I already install Windows Virtual Studio SDK and execute python setup.py install, but these reminder as follows when execute python install.py build_ext:
(py3) D:\04.CEcode\GraKeL-master>python setup.py build_ext
running build_ext
skipping './grakel/kernels/_isomorphism\bliss.cpp' Cython extension (up-to-date)
skipping './grakel/kernels/_c_functions\functions.cpp' Cython extension (up-to-date)

from grakel.

xtyi1997 avatar xtyi1997 commented on June 15, 2024

pip install grakel-dev

hello,my envirement is ubuntu 16.04 python 3.6
I want use your program by pycharm
but it does not work ,I want debug it , thank you.

Traceback (most recent call last):
File "/home/wjc/Desktop/yxt/GraKeL-master/examples/shortest_path.py", line 17, in
from grakel.datasets import fetch_dataset
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/init.py", line 6, in
from grakel.graph_kernels import GraphKernel
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/graph_kernels.py", line 13, in
from grakel.kernels import GraphletSampling
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/kernels/init.py", line 4, in
from grakel.kernels.kernel import Kernel
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/kernels/kernel.py", line 17, in
from grakel.kernels._c_functions import k_to_ij_triangular
ImportError: cannot import name 'k_to_ij_triangular'

from grakel.

xtyi1997 avatar xtyi1997 commented on June 15, 2024

pip install grakel-dev

hello,my envirement is ubuntu 16.04 python 3.6
I want use your program by pycharm
but it does not work ,I want debug it , thank you.

Traceback (most recent call last):
File "/home/wjc/Desktop/yxt/GraKeL-master/examples/shortest_path.py", line 17, in
from grakel.datasets import fetch_dataset
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/init.py", line 6, in
from grakel.graph_kernels import GraphKernel
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/graph_kernels.py", line 13, in
from grakel.kernels import GraphletSampling
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/kernels/init.py", line 4, in
from grakel.kernels.kernel import Kernel
File "/home/wjc/Desktop/yxt/GraKeL-master/grakel/kernels/kernel.py", line 17, in
from grakel.kernels._c_functions import k_to_ij_triangular
ImportError: cannot import name 'k_to_ij_triangular'

it need conda create -n env_name python=3.6 and refer https://ysig.github.io/GraKeL/0.1a7/documentation/installation.html#building-grakel

from grakel.

ysig avatar ysig commented on June 15, 2024

from grakel.

cshjin avatar cshjin commented on June 15, 2024

I got the exact same problem.
I did follow the instructions to build the ext: https://ysig.github.io/GraKeL/0.1a8/documentation/installation.html#building-grakel

The problem is building the _c_functions has no submodule, only a single _c_functions.cpython.***.so are generated.
While _isomorphism has bliss and intpybliss.

Therefore I changed the import to be
from grakel.kernels import _c_functions and use the function as
_c_functions.k_to_ij_triangular(...)

Probably need to restructure the _c_functions the similar as _isomorphism

from grakel.

ysig avatar ysig commented on June 15, 2024

Hey cshjin.

Normally if you install grakel as a package you won't encounter this issue as it is prebuilt.
So there are likely two reasons for this to be happening:

  1. Either you use a recent version of python like 3.9 for which we don't have built packages yet.
  2. You want to change sth in the library itself.

Can you describe:

  1. your environment (linux, windows, osx) and python version (python --version) and
  2. Your use case?

Thanks

from grakel.

cshjin avatar cshjin commented on June 15, 2024

@ysig I am using python 3.7.10 and ubuntu 20.04 with GCC ver 9.3

I just run the examples and tutorials and see the problems there.

from grakel.

cshjin avatar cshjin commented on June 15, 2024

It works with the installation from pip install ***-manylinux1_x86_64.whl

Thanks.

from grakel.

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.