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 'CloudComPy' has no attribute 'loadPointCloud' #190

Open
Bra369 opened this issue Aug 14, 2024 · 8 comments
Open

Comments

@Bra369
Copy link

Bra369 commented Aug 14, 2024

Hello everyone,

I'm new to using CloudCompy and still working on improving my programming skills, which are currently at a moderate level. I've recently set up CloudCompy following the instructions provided, but I'm encountering an issue where several modules and functions are not being imported or recognized such as loadpointcloud.

Has anyone else experienced a similar problem or could provide guidance on what might be causing this? Any help would be greatly appreciated!

Thanks in advance!

@prascle
Copy link
Collaborator

prascle commented Aug 18, 2024

Hello,
Which system do you work with (Windows 10/11, Linux, macOS)?
There are specific installation instructions for each system, with several steps. A problem with a step can lead to import problems.
You may have received warning or error messages. Can you give details?

Best regards,
Paul

@Bra369
Copy link
Author

Bra369 commented Aug 20, 2024

Hi,
thank you for your response. in a strange way for me, i found that moving out some file from their sub dictionary made python identify these modules.

@prascle
Copy link
Collaborator

prascle commented Aug 20, 2024 via email

@Bra369
Copy link
Author

Bra369 commented Aug 21, 2024

thank you Paul for your prompt response, and excuse me for my late response. if its helps, i'll attach some picture of the PATHS and PYTHPATH in addition to my build dictionary (sequanced form build dir 1 to 5),
https://ibb.co/TYZ2qnp
https://ibb.co/RpQkZDB
https://ibb.co/L9sdYvZ
https://ibb.co/wcwf04n
https://ibb.co/F445mpD
https://ibb.co/N9yz8z7
https://ibb.co/kK9LckJ

@prascle
Copy link
Collaborator

prascle commented Aug 21, 2024

Oh, I don't quite understand what you want to do. I thought you wanted to make developments in Python using CloudComPy already built.
I don't understand this directory: CloudCompare/build
Build of what? CloudCompare, CloudComPy? I'm not familiar with the build dictionary concept...
In this directory, there's a whole bunch of flat stuff, without the usual structure of a build or install directory, with a mixture of binaries and sources...
Can you describe what you want to do?
If your goal is to rebuild CloudComPy from source, take a look at the build instructions for Windows and let me know what's not clear. These instructions may not be completely up to date.
Paul

@Bra369
Copy link
Author

Bra369 commented Aug 21, 2024

Hi Paul,
well. i'm trying to create an enhanced SVM/classification plugin like CANUPO, i don't want to rebuild CloudComPy from the source

@prascle
Copy link
Collaborator

prascle commented Aug 21, 2024

OK, that makes sense now!
I've never tried to do this, it's not easy to do correctly and I don't offer a generic template for building a CloudComPy plugin.
You should probably build a CloudCompare C++ plugin, with or without GUI if that part doesn't interest you, and then a CloudComPy plugin using pybind11 to wrap the C++ plugin.
It's an interesting problem, I could think of a solution to build a plugin based on the existing binaries rather than regenerate everything, but in the current state it's probably more complicated than rebuilding everything!
If you get into it, create a project on Github or make a fork of CloudComPy, I can take a look!
Paul

@Bra369
Copy link
Author

Bra369 commented Aug 21, 2024

Hi Paul,
Thanks for the clarification! It sounds like starting with a C++ plugin is the way to go. I'll begin by building the C++ plugin and then explore wrapping it with pybind11 to create the CloudComPy plugin.
Once I get started, I'll set up a GitHub repository or fork CloudComPy and share the link with you.
Thanks again for your help

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