Hello colleague,

On Tuesday, August 16, 2016 at 5:41:47 PM UTC+2, Jan Hlavacek wrote:
>
> 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
> ...
>
> Does Julia really need internet access just to load a package?  Is there 
> any way to work around it?
>
 
No. And yes.
Looks like the local julia installation has identified a missing package 
repository and then tried to get METADATA into that. The place where julia 
expects a package repository can be configured. In your case the setup was 
incorrect.



Reply via email to