madeleineudell / LowRankModels.jl

LowRankModels.jl is a julia package for modeling and fitting generalized low rank models.
Other
190 stars 65 forks source link

Pkg.test on v0.6 fails in Fitting GLRM with "UndefVarError: int not defined" #61

Closed colbec closed 8 years ago

colbec commented 8 years ago

Using:

> versioninfo()
Julia Version 0.6.0-dev.437
Commit 8d236ea* (2016-08-30 19:45 UTC)
Platform Info:
  System: Linux (x86_64-suse-linux)
  CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

Pkg add and update work fine, then Pkg.test("LowRankModels") fails with partly:

Fitting GLRM
obj went up to 1.4417276364138017e6; reducing step size to 0.6666666666666666
obj went up to 147167.67651808265; reducing step size to 0.4666666666666666
Iteration 10: objective value = 2638.1033704712863
obj went up to 4287.300517189247; reducing step size to 0.4377645759375
obj went up to 401.7944286747264; reducing step size to 0.3910975998892637
Iteration 20: objective value = 234.28069178601592
obj went up to 230.37928252754898; reducing step size to 0.31692105135026627
Convergence history:[41117.9,21370.0,14895.9,11458.6,8695.98,6706.84,5198.71,3894.06,2638.1,1766.83,1110.21,654.743,429.906,381.599,364.834,262.088,234.281,226.921,225.621,210.322,206.981,205.839,205.299,205.009,204.846,204.77,204.77]
ERROR: LoadError: LoadError: UndefVarError: int not defined
 in fit_pca_nucnorm_sparse_nonuniform(::Int64, ::Int64, ::Int64, ::Int64) at /home/colin/.julia/v0.6/LowRankModels/test/../examples/simple_glrms.jl:77
 in include_from_node1(::String) at ./loading.jl:481 (repeats 2 times)
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading /home/colin/.julia/v0.6/LowRankModels/test/../examples/simple_glrms.jl, in expression starting on line 107
while loading /home/colin/.julia/v0.6/LowRankModels/test/runtests.jl, in expression starting on line 4
============================[ ERROR: LowRankModels ]============================

failed process: Process(`/home/colin/Downloads/julia/usr/bin/julia -Cnative -J/home/colin/Downloads/julia/usr/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/colin/.julia/v0.6/LowRankModels/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================
ERROR: LowRankModels had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:740
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
colbec commented 8 years ago

I was able to fix this with Pkg.checkout("LowRankModels") followed by Pkg.build("LowRankModels"). Then test works.

madeleineudell commented 8 years ago

Great!

On Thu, Sep 1, 2016 at 2:43 PM, Colin Beckingham notifications@github.com wrote:

I was able to fix this with Pkg.checkout("LowRankModels") followed by Pkg.build("LowRankModels"). Then test works.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/madeleineudell/LowRankModels.jl/issues/61#issuecomment-244173334, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyp9Lm_RmyQoGMC7dmJKtbsuHSiGq8kks5qlxzngaJpZM4Jx3FK .

Madeleine Udell Assistant Professor, Operations Research and Information Engineering Cornell University https://people.orie.cornell.edu/mru8/ (415) 729-4115