Skip to content

AttributeError: module 'CloudComPy' has no attribute 'loadPointCloud' #190

Open

Description

@Bra369

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!

Activity

  1. prascle commented on Aug 18, 2024

    @prascle
    Collaborator

    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

  2. Bra369 commented on Aug 20, 2024

    @Bra369
    Author

    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.

  3. prascle commented on Aug 20, 2024

    @prascle
    Collaborator
  4. prascle commented on Aug 21, 2024

    @prascle
    Collaborator

    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

  5. Bra369 commented on Aug 21, 2024

    @Bra369
    Author

    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

  6. prascle commented on Aug 21, 2024

    @prascle
    Collaborator

    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

  7. Bra369 commented on Aug 21, 2024

    @Bra369
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions