Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I run the sample code, but graph.edges()=[], and the horse figure only shows 1 node 0 edge. #6

Open
1912351430 opened this issue May 13, 2020 · 6 comments

Comments

@1912351430
Copy link

I run the sample code, but graph.edges()=[], and the horse figure only shows 1 node 0 edge.

image

and i have a lot of numba warning like:

NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "mark" failed type inference due to: Untyped global name 'neighbors': cannot determine Numba type of <class 'function'>

File "C:\Users\zhuyf_6837\AppData\Local\Programs\Python\Python37\lib\site-packages\sknw\sknw.py", line 18:
def mark(img): # mark the array use (0, 1, 2)
nbs = neighbors(img.shape)

does this has anything to do with incompatible version?
I use Python 3.7.3, and run the sample code in pycharm, all related library( skimage,sknw,numba…… ) were installed in pycharm.
I am an art student, and very new to python, sorry if my question sounds idiotic……

@1912351430
Copy link
Author

OK, I later tried the source code and it works perfectly. but the sknw I got from "pip install sknw" still doesn't work…

@yxdragon
Copy link
Member

oh, I did not update the pypi for a long time. I would do it later.

@1912351430
Copy link
Author

1912351430 commented May 14, 2020 via email

@Flynamic
Copy link

Flynamic commented Jun 20, 2020

I have the same problem, but neither this repository nor the release from PyPi are working currently. Removing the @jit marks however seems to do the trick, so this is probably an issue with numba.

@yxdragon
Copy link
Member

@Flynamic updated on pypi, have a try!

@Flynamic
Copy link

Thank you, works like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants