gaussian-splatting
gaussian-splatting copied to clipboard
Issue with Running convert.py Script in VSCode Terminal
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:
- I have added the necessary environment variables for
colmap. - 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.pyseems to rely on thecolmapcommand being available in the environment variables. - I have confirmed that
colmapis 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!
Colmap path should be add to windows (not conda) enviroment and should lead to COLMAP.bat.