uv icon indicating copy to clipboard operation
uv copied to clipboard

Caused by: The cloud operation cannot be performed on a file with incompatible hardlinks. (os error 396)

Open ananthanarayanan431 opened this issue 1 year ago • 1 comments

C:\Users\anant\OneDrive\Desktop\Agent python\chatbot-agent>uv add ruff Resolved 38 packages in 349ms Prepared 1 package in 1.54s error: Failed to install: httpx-0.27.2-py3-none-any.whl (httpx==0.27.2) Caused by: failed to hardlink file from C:\Users\anant\AppData\Local\uv\cache\archive-v0\fG93Erur8OMDKBPFItH9s\httpx_api.py to C:\Users\anant\OneDrive\Desktop\Agent python\chatbot-agent.venv\Lib\site-packages\httpx_api.py Caused by: The cloud operation cannot be performed on a file with incompatible hardlinks. (os error 396)

Let me know the solution for this issue?

ananthanarayanan431 avatar Dec 08 '24 15:12 ananthanarayanan431

Unfortunately no, I don't, it's something to do with your operating system and setup. You can set --link-mode copy or UV_LINK_MODE=copy.

charliermarsh avatar Dec 08 '24 16:12 charliermarsh

Hi there, I was getting the same issue when installing httpx or requests on Windows 11. But now I'm getting this error.

Image

Any ideas?

shapedthought avatar Dec 22 '24 20:12 shapedthought

uv cache clean

This will probably work

ananthanarayanan431 avatar Feb 17 '25 15:02 ananthanarayanan431

uv cache clean

This will probably work

This worked for me

quantechgithub avatar Feb 20 '25 00:02 quantechgithub