CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
283 stars 40 forks source link

Import Module cloudComPy #168

Closed Group5AAU closed 4 months ago

Group5AAU commented 4 months ago

Hello, We are trying to use the cloudComPy module, but it is not working for us. Whenever we try to import the module cloudComPy, it gives the error 'ModuleNotFoundError: No module named 'cloudComPy'. We have installed the programme as per the installation folder, but with no luck. nomodule

When trying to import directly in the prompt, it gives the following: QFileSystemWatcher: Removable drive notification will not work if there is no QCoreApplication instance. JsonRPCPlugin::JsonRPCPlugin

Can anyone help? :-)

prascle commented 4 months ago

Hello, I assume you have followed the instructions. It looks like you've already installed the Conda environment but haven't activated it. You need to use the Conda prompt terminal supplied with Conda and, in this terminal:

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

<path install> is the directory where you unpacked the CloudComPy binary from Windows CloudComPy binaries.

If this doesn't work, please tell me which steps in the instructions are unclear or wrong.

Best regards, Paul

Group5AAU commented 4 months ago

Hello again, Thanks for the fast answer! As far as we're concerned, every step in the instructions have been followed (and re-done multiple times). The Conda environment is installed and activated, but when trying to 'import cloudComPy as cc' it says there is no module called 'cloudComPy'.

image

Everything seems to be working up until this point, but we can't seem to troubleshoot where it goes wrong? We are using the latest binary package, and the Anaconda Prompt terminal.

Best regards!

prascle commented 4 months ago

Hello, After

conda activate CloudComPy310
cd c:\Users\ander\cloudComPy310

you must run envCloudComPy.bat This shell script sets the environment required for CloudComPy and checks if the cloudComPy import works. This step is mandatory, before using CloudComPy.

Best regards, Paul

Group5AAU commented 4 months ago

Hello, We managed to solve the problem! Thank you very much for the help Paul!

Best Regards