CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
282 stars 40 forks source link

Update a package of the environnement #53

Open CharlyBRT opened 2 years ago

CharlyBRT commented 2 years ago

Hey,

I'm working with CloudComPy on python. CloudCompy uses the 2.3.0 package pdal while the most recent version of this package is the 2.4.2. I'm using pdal to do other treatment that needs the lastest version. Is it possible to update the pdal package of the CloudComPy environment ?

Thank's !

Charly

prascle commented 2 years ago

Hello, This is not an easy task. Conda packaging requires to upgrade to Python 3.10, in order to have pdal 2.4.2. There is an update for many packages. I am currently trying to build CloudComPy in this new environment. I don't know if I will find a solution in a short time. Regards, Paul

CharlyBRT commented 2 years ago

Hello, Ok, and, in this environment CloudComPy39, I can use pdal command with the conda prompt but I can't import pdal in my IDE (Visual Studio). How can I solve this problem ? Thank you,

Charly

prascle commented 2 years ago

Hello, In the Conda CloudComPy39 environment, if you want to use pdal from Python, (import pdal), you have to install the python-pdal package : conda install python-pdal from the Conda CloudComPy39 prompt (5-10 minutes for the process...). PROBLEM It works on Linux but not on Windows, in my case: import pdal gives an error. Maybe it works with pip, but it is normally not a good idea to mix pip and conda...

If you solve this issue, I guess you have to select the CloudComPy39 environment from the list of available Python environments in Visual Studio. I am able to do this in my Visual Studio 2019 installation, but I have never played with it.

For pdal 2.4.2, I have a solution that works on Linux, with Conda and Python 3.10. It doesn't work on Windows yet, unfortunately.... I hope python-pdal will work better in this environment.

Paul