Statfactory / JuML.jl

Machine Learning in Julia
MIT License
37 stars 7 forks source link

JuML Compilation error #1

Closed ajaychat3 closed 5 years ago

ajaychat3 commented 5 years ago

I am trying to install it on Julia 0.7 windows 10 Here is the screen of error when I use "using JuML"

julia> Pkg.add("JSON") Resolving package versions... Updating C:\Users\chatura\.julia\environments\v0.7\Project.toml [682c06a0] + JSON v0.19.0 Updating C:\Users\chatura\.julia\environments\v0.7\Manifest.toml [no changes]

julia> using JuML [ Info: Precompiling JuML [8c755ed3-b124-5a84-a1fa-0113f60fdde0] WARNING: importing deprecated binding Base.Range into JuML. WARNING: Base.Range is deprecated, use AbstractRange instead. likely near C:\Users\chatura.julia\dev\JuML\src\DataStructures\seq.jl:29 WARNING: importing deprecated binding Base.Dates into JuML. WARNING: Base.Dates is deprecated, run using Dates instead likely near C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:40 WARNING: Base.Dates is deprecated, run using Dates instead likely near C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:40 WARNING: Base.Dates is deprecated, run using Dates instead likely near C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:136 ┌ Warning: Loop variable i around C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:381 overwrites a variable in an enclosing scope. In the future the variable will be local to the loop instead. └ @ C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:381 ┌ Warning: Loop variable i around C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:389 overwrites a variable in an enclosing scope. In the future the variable will be local to the loop instead. └ @ C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:389 ┌ Warning: Loop variable i around C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:397 overwrites a variable in an enclosing scope. In the future the variable will be local to the loop instead. └ @ C:\Users\chatura.julia\dev\JuML\src\DataImport\dataimport.jl:397 WARNING: importing deprecated binding Base.@sprintf into JuML. WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:190 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:190 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:190 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:190 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:202 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:202 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:202 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:392 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:405 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:405 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:405 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:405 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:405 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:547 WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package Printf. Add using Printf to your imports. likely near C:\Users\chatura.julia\dev\JuML\src\DataFrame\dataframe.jl:554 WARNING: importing deprecated binding Base.Nullable into JuML. ERROR: LoadError: LoadError: TypeError: in Type{...} expression, expected UnionAll, got typeof(Base.Nullable) Stacktrace: [1] top-level scope at none:0 [2] include at .\boot.jl:317 [inlined] [3] include_relative(::Module, ::String) at .\loading.jl:1038 [4] include at .\sysimg.jl:29 [inlined] [5] include(::String) at C:\Users\chatura.julia\dev\JuML\src\JuML.jl:2 [6] top-level scope at none:0 [7] include at .\boot.jl:317 [inlined] [8] include_relative(::Module, ::String) at .\loading.jl:1038 [9] include(::Module, ::String) at .\sysimg.jl:29 [10] top-level scope at none:2 [11] eval at .\boot.jl:319 [inlined] [12] eval(::Expr) at .\client.jl:399 [13] top-level scope at .\none:3 in expression starting at C:\Users\chatura.julia\dev\JuML\src\DataFrame\groupstats.jl:1 in expression starting at C:\Users\chatura.julia\dev\JuML\src\JuML.jl:34 ERROR: Failed to precompile JuML [8c755ed3-b124-5a84-a1fa-0113f60fdde0] to C:\Users\chatura.julia\compiled\v0.7\JuML\V8egC.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] macro expansion at .\logging.jl:313 [inlined] [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1185 [4] _require(::Base.PkgId) at .\logging.jl:311 [5] require(::Base.PkgId) at .\loading.jl:852 [6] macro expansion at .\logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at .\loading.jl:834

Please suggest how to get it running.

ajaychat3 commented 5 years ago

I added "using Printf" and "using Dates" in respective package files and changed the variable name i to j,k,m at respective line in Dataimport package the error now shown is

using JuML [ Info: Precompiling JuML [8c755ed3-b124-5a84-a1fa-0113f60fdde0] WARNING: importing deprecated binding Base.Range into JuML. WARNING: Base.Range is deprecated, use AbstractRange instead. likely near C:\Users\chatura.julia\dev\JuML\src\DataStructures\seq.jl:30 WARNING: importing deprecated binding Base.Nullable into JuML. ERROR: LoadError: LoadError: TypeError: in Type{...} expression, expected UnionAll, got typeof(Base.Nullable) Stacktrace: [1] top-level scope at none:0 [2] include at .\boot.jl:317 [inlined] [3] include_relative(::Module, ::String) at .\loading.jl:1038 [4] include at .\sysimg.jl:29 [inlined] [5] include(::String) at C:\Users\chatura.julia\dev\JuML\src\JuML.jl:2 [6] top-level scope at none:0 [7] include at .\boot.jl:317 [inlined] [8] include_relative(::Module, ::String) at .\loading.jl:1038 [9] include(::Module, ::String) at .\sysimg.jl:29 [10] top-level scope at none:2 [11] eval at .\boot.jl:319 [inlined] [12] eval(::Expr) at .\client.jl:399 [13] top-level scope at .\none:3 in expression starting at C:\Users\chatura.julia\dev\JuML\src\DataFrame\groupstats.jl:1 in expression starting at C:\Users\chatura.julia\dev\JuML\src\JuML.jl:34 ERROR: Failed to precompile JuML [8c755ed3-b124-5a84-a1fa-0113f60fdde0] to C:\Users\chatura.julia\compiled\v0.7\JuML\V8egC.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] macro expansion at .\logging.jl:313 [inlined] [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1185 [4] _require(::Base.PkgId) at .\logging.jl:311 [5] require(::Base.PkgId) at .\loading.jl:852 [6] macro expansion at .\logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at .\loading.jl:834

amlocek commented 5 years ago

Please try to use Julia discourse for help. I am unfortunately unable to support this package at the moment.

Adam

amlocek commented 5 years ago

JuML has been updated to Julia v1.1.0