fmm icon indicating copy to clipboard operation
fmm copied to clipboard

Make FMM python3 compatible

Open fywu85 opened this issue 3 years ago • 6 comments

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

fywu85 avatar Jun 25 '21 06:06 fywu85

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 avatar Jun 25 '21 06:06 cyang-kth

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

cyang-kth avatar Jun 25 '21 06:06 cyang-kth

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.

cyang-kth avatar Jun 25 '21 07:06 cyang-kth

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
>>>

MoriYu0011 avatar Jul 01 '22 04:07 MoriYu0011

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

csjiezhao avatar Dec 18 '22 16:12 csjiezhao

你可以使用它。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文件?

yantianzi avatar Oct 07 '23 07:10 yantianzi