CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
283 stars 40 forks source link

issue using CloudComPy39 within Spyder | no issue with anaconda #37

Closed antoinebio closed 2 years ago

antoinebio commented 2 years ago

Hello, the package CloudComPy39 is running fine in anaconda prompt.

but if I want to use the Syder IDE [Spyder] in that environment

image

then I've got an issue with qt pluging.

image

i tried to force reinstallation of both package below

image

image

still, SPYDER returns a issue when I execute my python code. this is not the case with anaconda prompt....

prascle commented 2 years ago

Hello, I'm sorry but I'm confused by your first screenshot. I only tested Spyder by running the Spyder command in the Anaconda Prompt console: image So I don't know if this way works for you. You have a Spyder installation accessible through menus that I don't have (I didn't try to make these menus), and I don't know if the environment in which Spyder is launched is the same as the one in the Anaconda prompt console.

Paul

antoinebio commented 2 years ago

hello Paul actually this is what i tested

image

then in spyder I run my script (that same script runs well in anaconda prompt) but here I have got an issue with qt in SPYDER console

image

prascle commented 2 years ago

I can reproduce your problem when I remove QT_PLUGIN_PATH from the environment. The script envCloudComPy.bat sets this variable. Could you check this in the environment you use to launch spyder? echo %QT_PLUGIN_PATH% you should get something like: C:\Users\paulr\CloudComPy\install\CloudComPy39\\qtplugins (with the path of your install)

Paul

antoinebio commented 2 years ago

Hello Paul OK I know where is the pb. I should always use the absolute path for CLOUDCOMPY_ROOT it must redirect to C:\CloudComPy39

isn't it ?

I have copy/paste envCloudComPy.bat ... this is the reason why @set CLOUDCOMPY_ROOT=%SCRIPT_DIR% changes path for QT_PLUGIN_PATH=%CLOUDCOMPY_ROOT%\qtplugins

image

antoinebio commented 2 years ago

here it is image

sorry for the silly question