I am trying to use Julia on SageMathCloud.  They have recently installed a 
whole bunch of packages system wide, so that they are available in all 
projects without having to install them locally.  However, when I try to 
use a package from one of their free projects, there is a problem. Free 
projects by default do not have internet access.  When loading a Julia 
package, for example 

using Gadfly

the package will be recompiled, and then Julia tries to go to github and 
download METADATA.jl,  which takes for ever before it times out.  Then, 
probably because of the missing metadata, some other errors are reported.  
Finally, the package gets loaded and can be used.  The messages are as 
follows:


INFO: Precompiling module Gadfly...
INFO: Initializing package repository 
/projects/41eb44d2-462c-4af8-80a5-ac0c9cad99dd/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.253.112]: errno=Connection timed out

INFO: Initializing package repository 
/projects/41eb44d2-462c-4af8-80a5-ac0c9cad99dd/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.253.112]: errno=Connection timed out

WARNING: could not import LinAlg._chol! into FixedSizeArrays
WARNING: New definition 
    +(AbstractArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury) at 
/usr/local/share/julia/site/v0.4/WoodburyMatrices/src/SymWoodburyMatrices.jl:106
is ambiguous with: 
    +(DataArrays.DataArray, AbstractArray) at 
/usr/local/share/julia/site/v0.4/DataArrays/src/operators.jl:276.
To fix, define 
    +(DataArrays.DataArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury)
before the new definition.
WARNING: New definition 
    +(AbstractArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury) at 
/usr/local/share/julia/site/v0.4/WoodburyMatrices/src/SymWoodburyMatrices.jl:106
is ambiguous with: 
    +(DataArrays.AbstractDataArray, AbstractArray) at 
/usr/local/share/julia/site/v0.4/DataArrays/src/operators.jl:300.
To fix, define 
    +(DataArrays.AbstractDataArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury)
before the new definition.
WARNING: New definition 
    +(AbstractArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury) at 
/usr/local/share/julia/site/v0.4/WoodburyMatrices/src/SymWoodburyMatrices.jl:106
is ambiguous with: 
    +(DataArrays.DataArray, AbstractArray) at 
/usr/local/share/julia/site/v0.4/DataArrays/src/operators.jl:276.
To fix, define 
    +(DataArrays.DataArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury)
before the new definition.
WARNING: New definition 
    +(AbstractArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury) at 
/usr/local/share/julia/site/v0.4/WoodburyMatrices/src/SymWoodburyMatrices.jl:106
is ambiguous with: 
    +(DataArrays.AbstractDataArray, AbstractArray) at 
/usr/local/share/julia/site/v0.4/DataArrays/src/operators.jl:300.
To fix, define 
    +(DataArrays.AbstractDataArray{T<:Any, 2}, WoodburyMatrices.SymWoodbury)
before the new definition.

 
Does Julia really need internet access just to load a package?  Is there 
any way to work around it?

Reply via email to