File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -348,18 +348,19 @@ def setup_user(self):
348
348
)
349
349
# check the miniforge3 directory exist
350
350
exit_code , logs = self .container .exec_run (
351
- [
352
- '/bin/bash' ,
353
- '-c' ,
354
- '[ -d "/opendevin/miniforge3" ] && exit 0 || exit 1' ,
355
- ],
351
+ ['/bin/bash' , '-c' , '[ -d "/opendevin/miniforge3" ] && exit 0 || exit 1' ],
356
352
workdir = self .sandbox_workspace_dir ,
357
353
environment = self ._env ,
358
354
)
359
355
if exit_code != 0 :
360
- raise Exception (
361
- f'An error occurred while checking if miniforge3 directory exists: { logs } '
362
- )
356
+ if exit_code == 1 :
357
+ raise Exception (
358
+ f'OPENDEVIN_PYTHON_INTERPRETER is not usable. Please pull the latest Docker image: docker pull ghcr.io/opendevin/sandbox:main'
359
+ )
360
+ else :
361
+ raise Exception (
362
+ f'An error occurred while checking if miniforge3 directory exists: { logs } '
363
+ )
363
364
# chown the miniforge3
364
365
exit_code , logs = self .container .exec_run (
365
366
['/bin/bash' , '-c' , 'chown -R opendevin:root /opendevin/miniforge3' ],
You can’t perform that action at this time.
0 commit comments