JARVIS icon indicating copy to clipboard operation
JARVIS copied to clipboard

Error running pip install -r requirements.txt

Open Maddocent opened this issue 3 years ago • 4 comments

When running the command from the readme, after setting up the conda env and installing conda dependencies.

cd server
pip install -r requirements.txt

I get

Collecting diffusers
  Cloning https://github.com/huggingface/diffusers.git (to revision 8c530fc2f6a76a2aefb6b285dce6df1675092ac6) to /tmp/pip-install-j1hjqorv/diffusers_702611dbc29d4299b8288e87af03d000
  Running command git clone --filter=blob:none --quiet https://github.com/huggingface/diffusers.git /tmp/pip-install-j1hjqorv/diffusers_702611dbc29d4299b8288e87af03d000
  Running command git rev-parse -q --verify 'sha^8c530fc2f6a76a2aefb6b285dce6df1675092ac6'
  Running command git fetch -q https://github.com/huggingface/diffusers.git 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
  Running command git checkout -q 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
  Resolved https://github.com/huggingface/diffusers.git to commit 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting transformers
  Cloning https://github.com/huggingface/transformers (to revision c612628045822f909020f7eb6784c79700813eda) to /tmp/pip-install-j1hjqorv/transformers_a183166b986d4741b81f895dac6f217f
  Running command git clone --filter=blob:none --quiet https://github.com/huggingface/transformers /tmp/pip-install-j1hjqorv/transformers_a183166b986d4741b81f895dac6f217f
  Running command git rev-parse -q --verify 'sha^c612628045822f909020f7eb6784c79700813eda'
  Running command git fetch -q https://github.com/huggingface/transformers c612628045822f909020f7eb6784c79700813eda
  Running command git checkout -q c612628045822f909020f7eb6784c79700813eda
  error: Your local changes to the following files would be overwritten by checkout:
        docs/source/ko/tasks/translation.mdx
  Please commit your changes or stash them before you switch branches.
  Aborting
  error: subprocess-exited-with-error
  
  × git checkout -q c612628045822f909020f7eb6784c79700813eda did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git checkout -q c612628045822f909020f7eb6784c79700813eda did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

This was working yesterday (on my Mac)

I am now on:

Linux gc2 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Did something change? Any fix for this?

Best, M

Maddocent avatar Apr 17 '23 18:04 Maddocent

I saw this error earlier today, and it went away after re-running. I guess YMMV.

tabrezm avatar Apr 18 '23 00:04 tabrezm

Can you solve it? I met it too.

Frederick666666 avatar May 09 '23 13:05 Frederick666666

Any progress on this issue?

whatactuallyis avatar Jun 18 '23 12:06 whatactuallyis

@Maddocent I know 2 months have passed since this but did you alter any files in the directory?

The error indicates that you made changes to some file that weren't committed, and the pip install would overwrite that.

Not the best solution by try saving that altered file somewhere else, delete it from your folder and running the command again.

pip install -r requirements.txt

jakesant avatar Jun 22 '23 15:06 jakesant