dojo-sim / Dojo.jl

A differentiable physics engine for robotics
MIT License
297 stars 26 forks source link

Permission denied when trying to build Dojo #37

Open XianyiCheng opened 2 years ago

XianyiCheng commented 2 years ago

I got this permission denied error when I'm trying to build Dojo on both Mac and Linux. Not sure what I did wrong.

(@v1.6) pkg> build Dojo
    Building WebIO → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/c9529be473e97fa0b3b2642cdafcd0896b4c9494/build.log`
    Building Blink → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/08d0b679fd7caa49e2bca9214b131289e19808c0/build.log`
    Building Dojo ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/97750ad693a1a2e43a9417aed731a15c7543c4ad/build.log`
ERROR: Error building `Dojo`: 
  Activating environment at `~/.julia/packages/Dojo/tpwPK/examples/Project.toml`
    Updating registry at `~/.julia/registries/General`
   Installed GR_jll ─────────── v0.64.2+0
   Installed DualNumbers ────── v0.6.8
   Installed NearestNeighbors ─ v0.4.10
   Installed Latexify ───────── v0.15.14
   Installed ArrayInterface ─── v5.0.6
   Installed AxisArrays ─────── v0.4.5
   Installed Distributions ──── v0.25.53
   Installed JuMP ───────────── v1.0.0
   Installed MathOptInterface ─ v1.1.2
   Installed PooledArrays ───── v1.4.1
   Installed Expat_jll ──────── v2.4.8+0
   Installed StatsFuns ──────── v0.9.17
   Installed EllipsisNotation ─ v1.5.0
   Installed RecipesPipeline ── v0.5.2
   Installed Polyhedra ──────── v0.7.3
   Installed Parsers ────────── v2.2.4
   Installed ProgressMeter ──── v1.7.2
   Installed SciMLBase ──────── v1.29.0
   Installed StaticArrays ───── v1.4.3
ERROR: LoadError: SystemError: opening file "/Users/xianyi/.julia/packages/Dojo/tpwPK/examples/Project.toml": Permission denied
simon-lc commented 2 years ago

Hi Xianyi! Thanks for letting us know about this issue, I'll look into it this week and try to fix it

yipor commented 2 years ago

I got this permission denied error when I'm trying to build Dojo on both Mac and Linux. Not sure what I did wrong.

(@v1.6) pkg> build Dojo
    Building WebIO → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/c9529be473e97fa0b3b2642cdafcd0896b4c9494/build.log`
    Building Blink → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/08d0b679fd7caa49e2bca9214b131289e19808c0/build.log`
    Building Dojo ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/97750ad693a1a2e43a9417aed731a15c7543c4ad/build.log`
ERROR: Error building `Dojo`: 
  Activating environment at `~/.julia/packages/Dojo/tpwPK/examples/Project.toml`
    Updating registry at `~/.julia/registries/General`
   Installed GR_jll ─────────── v0.64.2+0
   Installed DualNumbers ────── v0.6.8
   Installed NearestNeighbors ─ v0.4.10
   Installed Latexify ───────── v0.15.14
   Installed ArrayInterface ─── v5.0.6
   Installed AxisArrays ─────── v0.4.5
   Installed Distributions ──── v0.25.53
   Installed JuMP ───────────── v1.0.0
   Installed MathOptInterface ─ v1.1.2
   Installed PooledArrays ───── v1.4.1
   Installed Expat_jll ──────── v2.4.8+0
   Installed StatsFuns ──────── v0.9.17
   Installed EllipsisNotation ─ v1.5.0
   Installed RecipesPipeline ── v0.5.2
   Installed Polyhedra ──────── v0.7.3
   Installed Parsers ────────── v2.2.4
   Installed ProgressMeter ──── v1.7.2
   Installed SciMLBase ──────── v1.29.0
   Installed StaticArrays ───── v1.4.3
ERROR: LoadError: SystemError: opening file "/Users/xianyi/.julia/packages/Dojo/tpwPK/examples/Project.toml": Permission denied

got the same problem, successfully installed Dojo with root user.

rejuvyesh commented 2 years ago

Julia packages when installed via Pkg.add or ] add are installed in a readonly directory. I'm pretty sure that's the issue. I would recommend deving the package for running examples.

mfogelson commented 1 year ago

Julia packages when installed via Pkg.add or ] add are installed in a readonly directory. I'm pretty sure that's the issue. I would recommend deving the package for running examples.

This worked for me. For those that might not know that deving is: ] dev Dojo

This is then located in ~/.julia/dev/Dojo and the permissions are such that writing is possible