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

AttributeError: module 'mistree' has no attribute 'GetMST' #12

Open
Ameliecc opened this issue May 3, 2023 · 4 comments
Open

AttributeError: module 'mistree' has no attribute 'GetMST' #12

Ameliecc opened this issue May 3, 2023 · 4 comments

Comments

@Ameliecc
Copy link

Ameliecc commented May 3, 2023

Current volume ratio 0.0045762590683944325. Contraction weights 2048.0. Attraction weights 1012.7767136646321. Progress LBC: 45%|████▌ | 9/20 [00:10<00:12, 1.11s/it]
Traceback (most recent call last):
File "D:\pc-skeletor-main\example_tree.py", line 21, in
lbc.extract_topology()
File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 288, in extract_topology
self.skeleton_graph = self.__extract_skeletal_graph(skeletal_points=skeleton_points)
File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 242, in __extract_skeletal_graph
_, _, _, _, edge_index, _ = extract_mst(points=skeletal_points)
File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 236, in extract_mst
mst = mist.GetMST(x=points[:, 0], y=points[:, 1], z=points[:, 2])
AttributeError: module 'mistree' has no attribute 'GetMST'

@Ameliecc Ameliecc changed the title windows: ERROR: Could not build wheels for mistree, which is required to install pyproject.toml-based projects AttributeError: module 'mistree' has no attribute 'GetMST' May 8, 2023
@meyerls
Copy link
Owner

meyerls commented Jul 10, 2023

Hi @Ameliecc,

what python version are you using? What version of mistree is installed on your device?

@albertpaolobugayong
Copy link

I was able to get it to install by installing from source, thank you for the recent update :)

@yangfeng-Lyu
Copy link

Current volume ratio 0.0045762590683944325. Contraction weights 2048.0. Attraction weights 1012.7767136646321. Progress LBC: 45%|████▌ | 9/20 [00:10<00:12, 1.11s/it] Traceback (most recent call last): File "D:\pc-skeletor-main\example_tree.py", line 21, in lbc.extract_topology() File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 288, in extract_topology self.skeleton_graph = self.__extract_skeletal_graph(skeletal_points=skeleton_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 242, in __extract_skeletal_graph _, _, _, _, edge_index, _ = extract_mst(points=skeletal_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 236, in extract_mst mst = mist.GetMST(x=points[:, 0], y=points[:, 1], z=points[:, 2]) AttributeError: module 'mistree' has no attribute 'GetMST'
I also have this problem when i run example_tree.py.so how can i fix it?

@captainvoldemort
Copy link

captainvoldemort commented Sep 6, 2024

I am getting a similar issue with python 3.9 numpy version 1.26.0, on windows 11 and version of mistree===1.2.1
(The reason i am specifying numpy version is because open3d crashes for numpy version 2.x)

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

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

No branches or pull requests

5 participants