I'm trying to use juliabox.org and running into issues that make it
unusable
for me. Essentially, after I do a Pkg.add operation, the kernel
can no longer connect. It seems like it's trying to execute
an unlink operation on the read-only portion of the juliabox
file system.
David Gleich
---
Here are more precise steps with additional detail.
I'm trying to use Julia-0.4.2 as the kernel. Here's what I do.
Step 1. "Reset" everything?
Remove everything from ~/.julia via the Juliabox terminal via
rm -rf ~/.julia
This is necessary to get things working again. At this point, I
can launch a new notebook and connect.
Step 2. Launch new Julia-0.4.2 kernel/notebook.
Step 3. Verify that 1+1 = 2 to works.
Step 4. Try and get PyPlot... (I've tried others too, including Plots...
basically it seems like anything that touches Compat.jl will cause
the following problem...)
In [3]: Pkg.add("PyPlot")
INFO: Initializing package repository /home/juser/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of BinDeps from
git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of ColorTypes from
git://github.com/JuliaGraphics/ColorTypes.jl.git
INFO: Cloning cache of Colors from
git://github.com/JuliaGraphics/Colors.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Conda from git://github.com/Luthaf/Conda.jl.git
INFO: Cloning cache of Dates from git://github.com/quinnj/Dates.jl.git
INFO: Cloning cache of FixedPointNumbers from
git://github.com/JeffBezanson/FixedPointNumbers.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of LaTeXStrings from
git://github.com/stevengj/LaTeXStrings.jl.git
INFO: Cloning cache of PyCall from git://github.com/stevengj/PyCall.jl.git
INFO: Cloning cache of PyPlot from git://github.com/stevengj/PyPlot.jl.git
INFO: Cloning cache of Reexport from
git://github.com/simonster/Reexport.jl.git
INFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from
git://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.3.20
INFO: Installing ColorTypes v0.2.0
INFO: Installing Colors v0.6.1
INFO: Installing Compat v0.7.8
INFO: Installing Conda v0.1.8
INFO: Installing Dates v0.4.4
INFO: Installing FixedPointNumbers v0.1.1
INFO: Installing JSON v0.5.0
INFO: Installing LaTeXStrings v0.1.6
INFO: Installing PyCall v1.2.0
INFO: Installing PyPlot v2.1.1
INFO: Installing Reexport v0.0.3
INFO: Installing SHA v0.1.2
INFO: Installing URIParser v0.1.2
INFO: Recompiling stale cache file
/opt/julia_packages/.julia/lib/v0.4/Compat.ji for module Compat.
INFO: Building PyCall
INFO: Recompiling stale cache file
/opt/julia_packages/.julia/lib/v0.4/Compat.ji for module Compat.
===============================[ ERROR: PyCall
]================================
LoadError: unlink: read-only file system (EROFS)
while loading /home/juser/.julia/v0.4/PyCall/deps/build.jl, in expression
starting on line 11
================================================================================
================================[ BUILD ERRORS
]================================
WARNING: PyCall had build errors.
- packages with build errors remain installed in /home/juser/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("PyCall")`
- build a single package by running its `deps/build.jl` script
================================================================================
INFO: Package database updated
At this point if I just restart the kernel, it will no longer start/connect
and
Julia-0.4.2. is unusable. Debugging at the command line shows:
---
juser@juliabox:~$ /opt/julia-0.4.2/bin/julia
INFO: Recompiling stale cache file
/opt/julia_packages/.julia/lib/v0.4/Compat.ji for module Compat.
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.2 (2015-12-06 21:47 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-unknown-linux-gnu
julia> using IJulia
INFO: Precompiling module IJulia...
INFO: Recompiling stale cache file
/opt/julia_packages/.julia/lib/v0.4/Compat.ji for module Compat.
ERROR: LoadError: unlink: read-only file system (EROFS)
in unlink at fs.jl:102
in rm at file.jl:59
in create_expr_cache at loading.jl:330
in recompile_stale at loading.jl:461
in _require_from_serialized at loading.jl:83
in _require_from_serialized at ./loading.jl:109
in require at ./loading.jl:219
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:304
[inlined code] from none:2
in anonymous at no file:0
in process_options at ./client.jl:257
in _start at ./client.jl:378
while loading /opt/julia_packages/.julia/v0.4/IJulia/src/IJulia.jl, in
expression starting on line 4
ERROR: Failed to precompile IJulia to /home/juser/.julia/lib/v0.4/IJulia.ji
in error at ./error.jl:21
in compilecache at loading.jl:384
in require at ./loading.jl:250