Skip to content

Issue with installation on windows for version 2.13.2 (2024-09) #197

@mcgregorian1

Description

@mcgregorian1

Issue

I tried downloading and installing CloudComPy following the instructions, but the cloudComPy module can't be found when running envCloudComPy.bat.

What I have done to solve the problem

I ensured I followed the installation steps here, including the activation and addition of packages. I installed it the same way on another computer and got the same error. I've also checked some of the other issues; this is similar to Issue #181 but the author of that issue did not put what solved the problem. I figured I'd open a new issue because it's with a newer version.

Error messages

When I activate the environment and try to use it, the import cloudComPy attempt fails. Note that I get the path to the conda environment programmatically because this script is used by different computers at different work sites. In this case, my condaPath variable is C:\Users\mcgregori\.conda\envs\CloudComPy310.

@echo off
:: Step 1. Get the conda env path for CloudComPy
for /f "usebackq tokens=1,2" %%a in (`conda info --envs ^| findstr /c:"CloudComPy"`) do @set condaPath=%%b
echo This is the envpath: %condaPath%

:: Step 2. Activate the conda environment
call activate %condaPath%

:: Step 3. Check the env is correct and the paths are set
call CloudComPy310\envCloudComPy.bat

:: do script here

call conda deactivate

I've found that whether I run the contents of the .bat file above, or whether I manually run the following, I get the same error (below). I have a feeling I'm missing something simple, but do you have a recommendation for how to fix this?

conda activate C:\Users\mcgregori\.conda\envs\CloudComPy310
python
import cloudComPy as cc

Error

Checking environment, Python test: import cloudComPy
The environment seems to be incorrect! You need to set the conda environment for cloudComPy before runnfor cloudComPy before running this script!
"Incorrect Environment! Problem with Python test!"

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