Skip to content

No module named 'cloudComPy' #102

Closed
Closed

Description

@devspacetimelu

Hello,
I am new CloudCompare and python, I succeeded in getting all the files in the right place and setting up the environment.

envCloudComP.bat gives
Checking environment, Python test: import cloudComPy
Environment OK!

and ctest also passes all the checks.

But when I try to import cloudComPy in python after activating the environment, it gives the no module found error.
How can I solve this problem?

Thank you,
Rohith

Activity

  1. prascle commented on Apr 21, 2023

    @prascle
    Collaborator

    Hello,

    That's strange, the message "Environment OK!" means that envCloudComPy.bat is able to import successfully CloudComPy, and ctest calls python scripts that import CloudComPy...

    The following should be working, from the conda prompt:

    conda activate CloudComPy310
    cd <path install>\CloudComPy310
    envCloudComPy.bat
    python
    

    Then, on the Python prompt:
    import cloudComPy as cc

    If this does not work can you state precisely your sequence of instructions and the result ?

    Regards,
    Paul

  2. devspacetimelu commented on Apr 27, 2023

    @devspacetimelu
    Author

    Hello Paul,

    Thank you for your response. I reinstalled the files and dill all the steps again.

    envCloudComPy.bat
    gives "Environment OK!" on the conda prompt and the import works fine when I enter python on the same prompy.
    But when I open spyder from the prompt the import doesn't work, I have mentioned all the paths as suggested in the procedure and it gives the following error:

    `import cloudComPy as cc
    Traceback (most recent call last):

    Cell In[1], line 1
    import cloudComPy as cc

    File ~\CloudComPy310\CloudCompare\cloudComPy_init_.py:34
    from _cloudComPy import *

    ImportError: DLL load failed while importing _cloudComPy: The specified procedure could not be found.`

    Please help me solve this issue.
    Thank you,
    Rohith

  3. prascle commented on Apr 27, 2023

    @prascle
    Collaborator

    Hi,
    If you are using spyder, please have a look on issue #80, it may solve your problem.

    best,
    Paul

  4. devspacetimelu commented on Jul 25, 2023

    @devspacetimelu
    Author

    Hi,
    For some reason I could not get the environment working on Spyder, but it works on Visual Studio Code.
    I finally have some time to get started with this again.

    Thank you,
    Rohith

  5. devspacetimelu commented on Jul 25, 2023

    @devspacetimelu
    Author

    Also when trying to get it working on VS code, test 42 failed (passes on anaconda prompt) and test 50 was skipped.
    I have attached a screenshot of the results.

    Could you please let me know how to solve this?

    Thank you,
    Rohith

    Screenshot 2023-07-25 111921

  6. prascle commented on Jul 25, 2023

    @prascle
    Collaborator

    Hi, Test 42 may fail if the memory is not released immediately, I guess it depends on the environment Python is running in. It's not a problem.
    Test 50 uses a huge data file (see issue #100), which is not downloaded automatically, so the test is skipped if the file is not present.
    Paul

  7. jerrychoices commented on Sep 21, 2023

    @jerrychoices

    Hi, For some reason I could not get the environment working on Spyder, but it works on Visual Studio Code. I finally have some time to get started with this again.

    Thank you, Rohith

    guys!I wanna know how you run cloudcompy in vscode with miniconda, i just counter this problem.

  8. thomasTUK commented on Dec 4, 2023

    @thomasTUK

    Me too

  9. Waydelucien commented on Feb 14, 2025

    @Waydelucien

    Hi, For some reason I could not get the environment working on Spyder, but it works on Visual Studio Code. I finally have some time to get started with this again.
    Thank you, Rohith

    guys!I wanna know how you run cloudcompy in vscode with miniconda, i just counter this problem.

    Have you ever solved this problem? I am using vscode as well and I encouter the same problem...

  10. prascle commented on Feb 14, 2025

    @prascle
    Collaborator

    On Windows (the same as in Linux) I launch visual studio code in the CloudComPy environment, with the command code in the conda prompt:

    (base) C:\Users\paulr>conda activate CloudComPy310
    
    (CloudComPy310) C:\Users\paulr>cd CloudComPy\install\CloudComPy310
    
    (CloudComPy310) C:\Users\paulr\CloudComPy\install\CloudComPy310>envCloudComPy.bat
    Checking environment, Python test: import cloudComPy
    Environment OK!
    
    (CloudComPy310) C:\Users\paulr\CloudComPy\install\CloudComPy310>code
    
    (CloudComPy310) C:\Users\paulr\CloudComPy\install\CloudComPy310>
    

    In VScode, you have to select the Python interpreter from conda CloudComPy310 environment.

    Paul

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