cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
878 stars 205 forks source link

Make FMM python3 compatible #195

Open fywu85 opened 3 years ago

fywu85 commented 3 years ago

Since python2 is officially out of support, can we move fmm from python2 to python3?

cyang-kth commented 3 years ago

I have not tried it yet but you should be able to install the binding for python 3 as long as the correct python version is found.

cyang-kth commented 3 years ago

Some modifications should be made to this file: https://github.com/cyang-kth/fmm/blob/master/python/CMakeLists.txt

cyang-kth commented 3 years ago

When I try with python 3 installation on a separate environment created by anaconda, I encountered a problem of segment fault when calling from fmm import Network, the error needs further consideration.

MoriYu0011 commented 2 years ago

You can use this. fmm-python3.patch.zip

Python 3.6.9 (default, Mar 15 2022, 13:55:28)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fmm import Network,NetworkGraph,STMATCH,STMATCHConfig
>>>
csjiezhao commented 1 year ago

You can use this. fmm-python3.patch.zip

Python 3.6.9 (default, Mar 15 2022, 13:55:28)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fmm import Network,NetworkGraph,STMATCH,STMATCHConfig
>>>

Could you tell me how to use the file fmm-python3.patch ? thanks

yantianzi commented 9 months ago

你可以使用它。fmm-python3.patch.zip

Python 3.6.9 (default, Mar 15 2022, 13:55:28)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fmm import Network,NetworkGraph,STMATCH,STMATCHConfig
>>>

你好,请问如何使用这个压缩包里的.patch文件?