dalai icon indicating copy to clipboard operation
dalai copied to clipboard

ENOTEMPTY: directory not empty occurs when installing models

Open wacastel opened this issue 1 year ago • 5 comments

The following error is occurring when attempting to install the llama and alpaca models on Apple Silicon running MacOS Ventura:

ERROR [Error: ENOTEMPTY: directory not empty, rename '/Users/<HOME_DIR>/dalai/tmp/models' -> '/Users/<HOME_DIR>/dalai/llama/models'] {
  errno: -66,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/Users/<HOME_DIR>/dalai/tmp/models',
  dest: '/Users/<HOME_DIR>/dalai/llama/models'
}

The fix is to make sure to only remove the original models path, not the entire engine.home directory.

wacastel avatar Mar 22 '23 18:03 wacastel

Can you try #223?

tleers avatar Mar 22 '23 19:03 tleers

Can you try #223?

Hello, I updated Dalai with npx [email protected] setup but I still get the same error.

luisee avatar Mar 22 '23 20:03 luisee

Can you try #223?

Hello, I updated Dalai with npx [email protected] setup but I still get the same error.

You are not alone, I have tried different thing for hours, still getting the same errors.

hatlem avatar Mar 22 '23 21:03 hatlem

I just tried my fix on a clean install and it worked. I'll keep investigating and see if I can come up with a fix. Appreciate the feedback.

wacastel avatar Mar 22 '23 21:03 wacastel

Can you try #223?

Hello, I updated Dalai with npx [email protected] setup but I still get the same error.

You are not alone, I have tried different thing for hours, still getting the same errors.

The problem after upgrading to npx [email protected] setup is that npx keeps taking the old version to run.

You can test by running npx dalai@latest llama install 7B or npx [email protected] llama install 7B

luisee avatar Mar 22 '23 22:03 luisee