LabelMaker icon indicating copy to clipboard operation
LabelMaker copied to clipboard

Can't find python inside the docker container

Open ArghyaChatterjee opened this issue 1 year ago • 1 comments

Hello,

Thanks for your work. I tried to run the docker container and it was built correctly on a ubuntu 20.04 pc with cuda11.3. When I tried to run the docker run command, it's running the recently built docker image perfectly fine but when I tried to execute the following commands inside the docker container, I see it can't detect any python interpreter inside docker.

arghya@arghya-Pulse-GL66-12UEK:~/LabelMaker$ docker build --tag labelmaker-env-20.04 -f docker/ubuntu20.04+miniconda.dockerfile .
arghya@arghya-Pulse-GL66-12UEK:~/LabelMaker$ docker run   --gpus all   -i --rm   -v ./env_v2:/LabelMaker/env_v2   -v ./models:/LabelMaker/models   -v ./labelmaker:/LabelMaker/labelmaker   -v ./checkpoints:/LabelMaker/checkpoints   -v ./testing:/LabelMaker/testing   -v ./.gitmodules:/LabelMaker/.gitmodules   -t labelmaker-env-20.04 /bin/bash
root@6bd3cab54c33:/LabelMaker# ls
3rdparty  checkpoints  env_v2  labelmaker  labelmaker.egg-info  models  scripts  setup.py  testing
root@6bd3cab54c33:/LabelMaker# export TRAINING_OR_VALIDATION=Training
root@6bd3cab54c33:/LabelMaker# export SCENE_ID=47333462
root@6bd3cab54c33:/LabelMaker# python 3rdparty/ARKitScenes/download_data.py raw --split $TRAINING_OR_VALIDATION --video_id $SCENE_ID --download_dir /tmp/ARKitScenes/ --raw_dataset_assets lowres_depth confidence lowres_wide.traj lowres_wide lowres_wide_intrinsics vga_wide vga_wide_intrinsics
bash: python: command not found
root@6bd3cab54c33:/LabelMaker# python3 3rdparty/ARKitScenes/download_data.py raw --split $TRAINING_OR_VALIDATION --video_i
d $SCENE_ID --download_dir /tmp/ARKitScenes/ --raw_dataset_assets lowres_depth confidence lowres_wide.traj lowres_wide low
res_wide_intrinsics vga_wide vga_wide_intrinsics
bash: python3: command not found 

What's the problem here ?

ArghyaChatterjee avatar Dec 10 '24 00:12 ArghyaChatterjee

I think you have to set the path of conda (I can't remember it well, maybe /miniconda3/bin/conda) into environment path.

An example wit here: https://github.com/cvg/LabelMaker/blob/b3397d0be8897c8fcf7bf83b46c26e7d5f9bfe9e/pipeline/activate_labelmaker.sh#L1

quantaji avatar Dec 30 '24 18:12 quantaji