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

Make FMM python3 compatible #195

Open
fywu85 opened this issue Jun 25, 2021 · 6 comments
Open

Make FMM python3 compatible #195

fywu85 opened this issue Jun 25, 2021 · 6 comments

Comments

@fywu85
Copy link

fywu85 commented Jun 25, 2021

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

@cyang-kth
Copy link
Owner

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
Copy link
Owner

cyang-kth commented Jun 25, 2021

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

@cyang-kth
Copy link
Owner

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

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

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

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

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

No branches or pull requests

5 participants