Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied when trying to build Dojo #37

Open
XianyiCheng opened this issue Apr 4, 2022 · 4 comments
Open

Permission denied when trying to build Dojo #37

XianyiCheng opened this issue Apr 4, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@XianyiCheng
Copy link

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
Copy link
Member

simon-lc commented Apr 4, 2022

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

@yipor
Copy link

yipor commented May 31, 2022

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
Copy link
Contributor

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
Copy link
Collaborator

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

@janbruedigam janbruedigam added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants