[julia-users] Re: ERROR: LoadError: __precompile__(true) but require failed to create a precompiled cache file

2016-06-28 Thread Tony Kelman
It's worth discussion. Should be simple enough to find the error and submit 
a pull request with any proposed changes:

$ git grep -n "failed to create a precompiled cache file"
base/loading.jl:339:warn("require failed to create a 
precompiled cache file")
base/loading.jl:366:error("__precompile__(true) but require 
failed to create a precompiled cache file")



On Tuesday, June 28, 2016 at 4:22:32 PM UTC-4, Uwe Fechner wrote:
>
> Sorry for the noise, but this was just a programming error of me.
>
> Back to the orignal question: Would it be possible to improve the 
> following error message:
> ERROR: LoadError: __precompile__(true) but require failed to create a 
> precompiled cache file
> Such that it says:
> Please try to restart Julia and try again?
>
> Uwe
>
> On Tuesday, June 28, 2016 at 9:51:33 PM UTC+2, Uwe Fechner wrote:
>>
>> Ok, I restarted Julia, tried to include my program again. It failed 
>> again. Did another Pkg.update() and tried to include my program again.
>> It failed again, but now with a different error:
>>
>> julia> include("Plotting.jl")
>> ERROR: LoadError: LoadError: LoadError: LoadError: MethodError: `*` has 
>> no method matching *(::Array{Any,1}, ::Array{Any,1})
>> Closest candidates are:
>>   *(::Any, ::Any, ::Any, ::Any...)
>>   
>> *{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression}}(::Union{Array{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},2},SparseMatrixCSC{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},Ti<:Integer}},
>>  
>> ::Union{Array{T,1},Array{T,2},SparseMatrixCSC{Tv,Ti<:Integer}})
>>   
>> *{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},S}(::Union{DenseArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2},SubArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}},
>>  
>> ::Union{DenseArray{S,1},SubArray{S,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}})
>>   ...
>>  in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:91
>>  in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:175
>>  in include at ./boot.jl:261
>>  in include_from_node1 at ./loading.jl:320
>>  in require at ./loading.jl:259
>>  in include at ./boot.jl:261
>>  in include_from_node1 at ./loading.jl:320
>>  in include at ./boot.jl:261
>>  in include_from_node1 at ./loading.jl:320
>>  in include at ./boot.jl:261
>>  in include_from_node1 at ./loading.jl:320
>> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl, 
>> in expression starting on line 336
>> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Model.jl, in 
>> expression starting on line 19
>> while loading 
>> /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Optimizer.jl, in expression 
>> starting on line 13
>> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Plotting.jl, 
>> in expression starting on line 22
>>
>> julia> 
>>
>> Any idea?
>>
>> On Tuesday, June 28, 2016 at 12:17:10 PM UTC+2, Steven G. Johnson wrote:
>>>
>>> Restart Julia and try again.  (This is because the old Compat module was 
>>> already loaded, so the new precompiled one couldn't load.)
>>>
>>

[julia-users] Re: ERROR: LoadError: __precompile__(true) but require failed to create a precompiled cache file

2016-06-28 Thread Uwe Fechner
Sorry for the noise, but this was just a programming error of me.

Back to the orignal question: Would it be possible to improve the following 
error message:
ERROR: LoadError: __precompile__(true) but require failed to create a 
precompiled cache file
Such that it says:
Please try to restart Julia and try again?

Uwe

On Tuesday, June 28, 2016 at 9:51:33 PM UTC+2, Uwe Fechner wrote:
>
> Ok, I restarted Julia, tried to include my program again. It failed again. 
> Did another Pkg.update() and tried to include my program again.
> It failed again, but now with a different error:
>
> julia> include("Plotting.jl")
> ERROR: LoadError: LoadError: LoadError: LoadError: MethodError: `*` has no 
> method matching *(::Array{Any,1}, ::Array{Any,1})
> Closest candidates are:
>   *(::Any, ::Any, ::Any, ::Any...)
>   
> *{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression}}(::Union{Array{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},2},SparseMatrixCSC{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},Ti<:Integer}},
>  
> ::Union{Array{T,1},Array{T,2},SparseMatrixCSC{Tv,Ti<:Integer}})
>   
> *{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},S}(::Union{DenseArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2},SubArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}},
>  
> ::Union{DenseArray{S,1},SubArray{S,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}})
>   ...
>  in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:91
>  in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:175
>  in include at ./boot.jl:261
>  in include_from_node1 at ./loading.jl:320
>  in require at ./loading.jl:259
>  in include at ./boot.jl:261
>  in include_from_node1 at ./loading.jl:320
>  in include at ./boot.jl:261
>  in include_from_node1 at ./loading.jl:320
>  in include at ./boot.jl:261
>  in include_from_node1 at ./loading.jl:320
> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl, 
> in expression starting on line 336
> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Model.jl, in 
> expression starting on line 19
> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Optimizer.jl, 
> in expression starting on line 13
> while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Plotting.jl, 
> in expression starting on line 22
>
> julia> 
>
> Any idea?
>
> On Tuesday, June 28, 2016 at 12:17:10 PM UTC+2, Steven G. Johnson wrote:
>>
>> Restart Julia and try again.  (This is because the old Compat module was 
>> already loaded, so the new precompiled one couldn't load.)
>>
>

[julia-users] Re: ERROR: LoadError: __precompile__(true) but require failed to create a precompiled cache file

2016-06-28 Thread Uwe Fechner
Ok, I restarted Julia, tried to include my program again. It failed again. 
Did another Pkg.update() and tried to include my program again.
It failed again, but now with a different error:

julia> include("Plotting.jl")
ERROR: LoadError: LoadError: LoadError: LoadError: MethodError: `*` has no 
method matching *(::Array{Any,1}, ::Array{Any,1})
Closest candidates are:
  *(::Any, ::Any, ::Any, ::Any...)
  
*{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression}}(::Union{Array{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},2},SparseMatrixCSC{T<:Union{JuMP.AbstractJuMPScalar,JuMP.GenericNormExpr{2,Float64,JuMP.Variable},JuMP.GenericNorm{P,Float64,JuMP.Variable},JuMP.NonlinearExpression},Ti<:Integer}},
 
::Union{Array{T,1},Array{T,2},SparseMatrixCSC{Tv,Ti<:Integer}})
  
*{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},S}(::Union{DenseArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2},SubArray{T<:Union{Complex{Float32},Complex{Float64},Float32,Float64},2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}},
 
::Union{DenseArray{S,1},SubArray{S,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64,LD}})
  ...
 in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:91
 in call at /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl:175
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:320
 in require at ./loading.jl:259
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:320
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:320
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:320
while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Projects.jl, 
in expression starting on line 336
while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Model.jl, in 
expression starting on line 19
while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Optimizer.jl, 
in expression starting on line 13
while loading /mnt/ssd/ufechner/00PythonSoftware/FastSim/src/Plotting.jl, 
in expression starting on line 22

julia> 

Any idea?

On Tuesday, June 28, 2016 at 12:17:10 PM UTC+2, Steven G. Johnson wrote:
>
> Restart Julia and try again.  (This is because the old Compat module was 
> already loaded, so the new precompiled one couldn't load.)
>


[julia-users] Re: ERROR: LoadError: __precompile__(true) but require failed to create a precompiled cache file

2016-06-28 Thread Steven G. Johnson
Restart Julia and try again.  (This is because the old Compat module was 
already loaded, so the new precompiled one couldn't load.)