CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
283 stars 40 forks source link

Problem with import module #146

Open thomasTUK opened 10 months ago

thomasTUK commented 10 months ago

Hello there, I have followed the installing instructions. With miniconda I do get while running .\envCloudComPy.bat following message:

Checking environment, Python test: import cloudComPy
Environment OK!

But when I do run python .\checkenv.py

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

The env CloudComPy310 is activated. Of course other python scripts are not working neither with import cloudComPy as cc . With Visual Studio Code I do get already while running .\envCloudComPy.bat following message:

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

What am I doing wrong? Thanks! Thomas

thomasTUK commented 10 months ago

Okay, i habe set PYTHONPATH using the Windows Environment Variables dialog. Did a restart and now its working: python checkenv.py

Checking environment, Python test: import cloudComPy
QFileSystemWatcher: Removable drive notification will not work if there is no QCoreApplication instance.
JsonRPCPlugin::JsonRPCPlugin
Environment OK!