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

Does not recognize prepare_source_and_target_rigid_3d from util #54

Closed
ahar opened this issue Oct 18, 2020 · 4 comments
Closed

Does not recognize prepare_source_and_target_rigid_3d from util #54

ahar opened this issue Oct 18, 2020 · 4 comments

Comments

@ahar
Copy link

ahar commented Oct 18, 2020

Hi,

I was executing "gmmtree_rigid.py". I found the following error.

 source, target = utils.prepare_source_and_target_rigid_3d('/home/anindya/bunny.pcd', n_random=0)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 AttributeError: module 'utils' has no attribute 'prepare_source_and_target_rigid_3d'

could you suggest any solution?

regards,
Ani

@neka-nat
Copy link
Owner

Thanks you for the question.
It's possible that you are loading the different utils module.
prepare_source_and_target_rigid_3d is in utils.py in example.
https://github.com/neka-nat/probreg/blob/master/examples/utils.py

@ahar
Copy link
Author

ahar commented Oct 18, 2020

Yes, I have seen that, and I am sure python3 in my system is using some other utils.py, as there are many of them. But how do I resolve it?

thank you,

@neka-nat
Copy link
Owner

It depends on your environment, so I'm not sure what solution you need.
It is possible to control the import order in several ways, so I think you should look into it.

https://stackoverflow.com/questions/9586630/python-paths-and-import-order
https://stackoverflow.com/questions/33737426/python-import-order

@ahar
Copy link
Author

ahar commented Oct 18, 2020

thank you, let me check it.

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

2 participants