Command line in a Python program.

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

Command line in a Python program.

Post by Vince »

Hello,
I am using CC with a command line.
I launch this command in a python program using « os.system ».
For exemple :
os.system("CloudCompare.exe -O M1.ply -CROP2D Z 3 618.562 537.008 665.164 554.773 658.247 497.540 -SAVE_CLOUDS ALL_AT_ONCE FILE result")

It was OK with the version ( 2.11.3 (Anoia) [64 bit]) of CC.
But it's no more OK with version (2.12 alpha [64 bit]).
I test these two versions on the same computer

Does somebody have an idea ?

Vincent
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line in a Python program.

Post by daniel »

What's 'not OK'? It is crashing? Or is it displaying an error?
Daniel, CloudCompare admin
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

Re: Command line in a Python program.

Post by Vince »

Hello,

For the test with CC 2.11 you can see the attachment CC_2P11.png. The job is done and I have my result files.
CC_2P11.png
CC_2P11.png (52.57 KiB) Viewed 4060 times
For the test with CC 2.12 you can see the attachment CC_2P12.png. It seem he don't run CC and I havent my result files.
CC_2P12.png
CC_2P12.png (28.47 KiB) Viewed 4060 times
If I test the command line directly in a "DOS command promp" the job is done for the two versions of CC.

Thank you
Vincent
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line in a Python program.

Post by daniel »

Ah, that's weird, but appart from a DLL issue, I don't see what could explain this?
Daniel, CloudCompare admin
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

Re: Command line in a Python program.

Post by Vince »

Reading your last post I was thinking about waiting a new version (to avoid looking for another solution :) ).
But there is already a 2.12 beta version. And it works with this version.
CC_2P12_beta.png
CC_2P12_beta.png (47.61 KiB) Viewed 3925 times
Thank you

Vincent
Post Reply