gaussian-splatting icon indicating copy to clipboard operation
gaussian-splatting copied to clipboard

Issue with Running convert.py Script in VSCode Terminal

Open HarryPeverell opened this issue 1 year ago • 1 comments

Hello,

I'm experiencing an issue when trying to run a Python script within the VSCode terminal using a Conda environment, and I'm hoping someone might be able to help me troubleshoot this.

Environment Setup:

  • Operating System: [Win11]
  • VSCode Version: [1.91.0]

Issue Description: When I attempt to execute the script convert.py with the command python convert.py -s data from the VSCode terminal, I encounter the following error:

'colmap' is not recognized as an internal or external command, operable program or batch file.

Despite this, if I type colmap directly into the VSCode terminal, colmap launches as expected. However, when I run the same command in the system's command prompt (cmd) with the same Conda environment activated, it works without any issues. I have confirmed that the colmap executable is correctly added to the environment variables within the Conda environment.

Steps I've Taken So Far:

  1. I have added the necessary environment variables for colmap.
  2. I have checked that the VSCode terminal is using the correct shell and that the Conda environment activation scripts are properly configured.

Additional Information:

  • The script convert.py seems to rely on the colmap command being available in the environment variables.
  • I have confirmed that colmap is accessible when I manually type the command in the VSCode terminal after activating the Conda environment.

Question: Why might the VSCode terminal not recognize the colmap command when running the Python script, even though the environment variables are set and the command works fine in the system's command prompt?

Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you in advance for your help!

HarryPeverell avatar Jul 10 '24 13:07 HarryPeverell

Colmap path should be add to windows (not conda) enviroment and should lead to COLMAP.bat.

jaco001 avatar Jul 15 '24 21:07 jaco001