Closed yuangu002 closed 1 year ago
It's unclear to me why you would have permission issue, since the path being written to seems to be /usr/local/google/home/ryangu/venv/lib/python3.10/site-packages/tensorflow_federated/data, which seems to be in your home directory and so presumably should be writable to you.
Could you try and inspect the permissions on each of the directories in that path, to see if somehow the permissions are misconfigured on any of them, preventing you from writing to them? E.g. you could use namei -l /usr/local/google/home/ryangu/venv/lib/python3.10/site-packages/tensorflow_federated/data/
to print out the permissions for each directory in that path.
Thanks @timonvo, here is the output:
ryangu@ryangu:~$ namei -l /usr/local/google/home/ryangu/Desktop/venv/lib/python3.10/site-packages/tensorflow_federated/data/
f: /usr/local/google/home/ryangu/Desktop/venv/lib/python3.10/site-packages/tensorflow_federated/data/
drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root local
drwxrwxrwt root root google
drwxr-xr-x root root home
drwx------ ryangu primarygroup ryangu
drwxr-xr-x ryangu primarygroup Desktop
drwxr-x--- ryangu primarygroup venv
drwxr-x--- ryangu primarygroup lib
drwxr-x--- ryangu primarygroup python3.10
drwxr-x--- ryangu primarygroup site-packages
drwxr-x--- ryangu primarygroup tensorflow_federated
drwxr-x--- ryangu primarygroup data
I think I see what the problem is, so my role (ryangu
) only has the group permission instead of owner permission. I am not sure why my cloudtop doesn't have root access though. Happy to discuss with you internally.
I changed the project root directory from ~/Desktop
to ~/
and the error just went away. The error means you have no write access to the directory, but I am not sure exactly what's the root cause of my case.
I followed the GETTING_STARTED guide and got a successful build.
But the demo test (
bazelisk //fcp/demo:federated_program_test --config=clang
) failed locally. The test log is pasted as following:I only used
sudo
on twoapt install
commands, as instructed:sudo apt install -y git gcc python3 python3-dev python3-venv
andsudo apt install -y clang lld libc++-dev libc++abi-dev