knaidoo29 / mistree

A python package for constructing and analysing minimum spanning trees.
MIT License
48 stars 23 forks source link

module 'mistree' has no attribute 'GetMST' #25

Open yangfeng-Lyu opened 4 months ago

yangfeng-Lyu commented 4 months ago

Hi,knaidoo29! I tried to load the mistree module on windows, but I encountered this problem while using it, I tried local and pip, but still no solution.

knaidoo29 commented 4 months ago

Hi @yangfeng-Lyu , I suspect this is something to do with issues compiling the fortran routines in windows. Can you instead download the python-only branch located here https://github.com/knaidoo29/mistree/tree/pure_python and trying to install this instead. This will have all of the MST functionality but will not have functions for generating Levy-flight and doing some density computation, but if you want to use mistree you are probably looking for the MST functionality anyway so this shouldn't hinder your analysis or usage of mistree.

captainvoldemort commented 1 month ago

I am getting the same error, even after building the pure_python branch, specifically while using the pc-skeletor package here

What I've done is build the pure python branch with python 3.9 and numpy version 1.26.0, on windows 11 version of mistree===1.2.1

Is this a issue related to the way the files have been structured in the pure python branch?

The issue was with the pure python branch of the package, if you've installed the pure python branch, the module name is mistree_pp not mistree.