malcolmw / pykonal

Travel-time calculator based on the fast-marching method solution to the Eikonal equation.
https://malcolmw.github.io/pykonal-docs/
GNU General Public License v3.0
154 stars 55 forks source link

ValueError which says Buffer dtype mismatch, expected 'Py_ssize_t' but got 'long' #36

Open karongsama opened 1 year ago

karongsama commented 1 year ago

Hi,malcolmw. When I use ur pykonal package,I always get the ERROR that says 'could not get source code'.And I also get the ValueERROR which says 'Buffer dtype mismatch, expected 'Py_ssize_t' but got 'long' '. I dont understand why I just copy your code and try to run but failed. I've try to download the past version but still failed I wonder if my computer went wrong or something get wrong. Please help me Thanks

malcolmw commented 1 year ago

Hi @karongsama, Can you please tell me about your environment such as you OS and versions of Python and cython?

karongsama commented 1 year ago

i use windows and 3.10.9python,0.29.33Cython i think thats my environment problem because when i use online server it can run as i expected maybe its better to use 3.8 python or there is some packages conflict with pykonal or just Cython has something wrong because the type Py_ssize_t Thanks for ur help!

malcolmw commented 1 year ago

Hi @karongsama, unfortunately I have encountered this problem before on Windows and was unable to debug it in platform-independent way, so I am unable to support Windows users at this time. Do you have access to a Linux machine you can work on?