Comments (13)
Please see:
https://ysig.github.io/GraKeL/0.1a7/documentation/installation.html#building-grakel
from grakel.
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.
Please see:
https://ysig.github.io/GraKeL/0.1a7/documentation/installation.html#building-grakel
I have tried out the installing command, which are:
conda create -n GraKeL python=3.6
pip install grakel --verbose
pip install sphinx sphinxcontrib-bibtex numpydoc sphinx-rtd-theme sphinx-gallery
The third line is to compile offline doc.
from grakel.
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.
from grakel.
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.
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.
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.
from grakel.
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.
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:
- Either you use a recent version of python like 3.9 for which we don't have built packages yet.
- You want to change sth in the library itself.
Can you describe:
- your environment (linux, windows, osx) and python version (
python --version
) and - Your use case?
Thanks
from grakel.
@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.
It works with the installation from pip install ***-manylinux1_x86_64.whl
Thanks.
from grakel.
Related Issues (20)
- Missing args in kernel.fit_transform() HOT 7
- use of ‘WeisfeilerLehman’ HOT 1
- How to use the edge weight information of a graph? HOT 2
- Release wheels for Python 3.8+ HOT 3
- Can we obtain vector representation of the graphs? HOT 1
- Fingerprint dataset not accessible using fetch_dataset function HOT 13
- NaN error when using Random walk kernel on certain datasets HOT 3
- I don't know how to use my own data for input HOT 5
- MultiDiGraph: graph_from_networkx() ValueError HOT 1
- modified random walk kernel giving all 1 scores for normalize=true HOT 1
- Difference between ShortestPath and ShortestPathAttr HOT 2
- Generating graphs from dense/numpy matrices HOT 1
- Graph.clone() or Graph.copy() HOT 3
- Explicit graph kernels HOT 2
- Graphlet kernel HOT 1
- NeighborhoodSubgraphPairwiseDistance kernel returns diagonal elements less than 1 HOT 5
- One vs many comparison for WeisfeilerLehman; `.transform` gives `TypeError: each element of X must have either a graph with...` HOT 1
- RWK matrix returns by fit_transform by RandomWalkLabeled() contains only 1.0 HOT 7
- Error when using EdgeHistogram HOT 1
- Can't install on Windows 10, keep getting same error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grakel.