Skip to content

Pkg.test("MatlabCompat") fails #12

@finmod

Description

@finmod

Trying to run Pkg.test("MatlabCompat"), the following error shows up:
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "?help" for help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.5.0 (2016-09-19 18:14 UTC)
/ |_'|||_'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32

julia> Pkg.test("MatlabCompat")
INFO: Computing test dependencies for MatlabCompat...
INFO: No packages to install, update or remove
INFO: Testing MatlabCompat
WARNING: print_escaped is deprecated, use escape_string instead.
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in print_escaped(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Vararg{Any,N}) at .\deprecated.jl:30
in init() at C:\Users\Denis.julia\v0.5\Tk\src\tkwidget.jl:49
in include_from_node1(::String) at .\loading.jl:488 (repeats 2 times)
in eval(::Module, ::Any) at .\boot.jl:234
in require(::Symbol) at .\loading.jl:415
in include_from_node1(::String) at .\loading.jl:488
in macro expansion; at C:\Users\Denis.julia\v0.5\MatlabCompat\src\MatlabCompat.jl:36 [inlined]
in anonymous at .<missing>:?
in include_from_node1(::String) at .\loading.jl:488
in eval(::Module, ::Any) at .\boot.jl:234
in require(::Symbol) at .\loading.jl:415
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\Tk\src\tkwidget.jl, in expression starting on line 455
WARNING: print_escaped is deprecated, use escape_string instead.
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in print_escaped(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Vararg{Any,N}) at .\deprecated.jl:30
in init() at C:\Users\Denis.julia\v0.5\Tk\src\tkwidget.jl:53
in include_from_node1(::String) at .\loading.jl:488 (repeats 2 times)
in eval(::Module, ::Any) at .\boot.jl:234
in require(::Symbol) at .\loading.jl:415
in include_from_node1(::String) at .\loading.jl:488
in macro expansion; at C:\Users\Denis.julia\v0.5\MatlabCompat\src\MatlabCompat.jl:36 [inlined]
in anonymous at .<missing>:?
in include_from_node1(::String) at .\loading.jl:488
in eval(::Module, ::Any) at .\boot.jl:234
in require(::Symbol) at .\loading.jl:415
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\Tk\src\tkwidget.jl, in expression starting on line 455
foo test
WARNING: grayim is deprecated, please use colorview(Gray, A), possibly in conjunction with normedview
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in grayim(::Array{Float64,2}) at C:\Users\Denis.julia\v0.5\ImageCore\src\deprecated.jl:6
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl, in expression starting on line 29
WARNING: properties is deprecated for arrays that are not ImageMeta; perhaps use keyword arguments
instead, structuring your code like this:
function myfunction(img::AbstractArray; pixelspacing=(1,1), ...)
# code
end
myfunction(img::ImageMeta) = myfunction(data(img), pixelspacing=img["pixelspacing"])
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in properties(::Array{ColorTypes.Gray{Float64},2}) at C:\Users\Denis.julia\v0.5\ImageMetadata\src\deprecated.jl:77
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl, in expression starting on line 30
setting true tests results
testing im2bw()
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl:41
in im2bw at C:\Users\Denis.julia\v0.5\MatlabCompat\src\MatlabCompat/imagetools.jl
WARNING: colorspace(img) is deprecated, use eltype(img) instead, possibly in conjunction
with colorview(img)
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in colorspace at C:\Users\Denis.julia\v0.5\ImageCore\src\deprecated.jl:119 [inlined]
in im2bw(::Array{ColorTypes.Gray{Float64},2}, ::Float64) at C:\Users\Denis.julia\v0.5\MatlabCompat\src\MatlabCompat\imagetools.jl:119
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl, in expression starting on line 41
Error During Test
Test threw an exception of type ErrorException
Expression: sum((reinterpret(Float32,float32(im2bw(img,trueThreshold))))[:]) == trueBWSum
"colorspace" property is ignored, now color is encoded only by the element type.
See colorview to represent a numeric array as a color array.
in check_deprecated_properties(::BitArray{2}, ::Dict{String,Any}) at C:\Users\Denis.julia\v0.5\ImageMetadata\src\deprecated.jl:84
in Type at C:\Users\Denis.julia\v0.5\ImageMetadata\src\ImageMetadata.jl:41 [inlined]
in Type at C:\Users\Denis.julia\v0.5\ImageMetadata\src\ImageMetadata.jl:45 [inlined]
in #ImageMeta#1 at C:\Users\Denis.julia\v0.5\ImageMetadata\src\ImageMetadata.jl:46 [inlined]
in (::Core.#kw#Type)(::Array{Any,1}, ::Type{ImageMetadata.ImageMeta}, ::BitArray{2}) at .<missing>:0
in im2bw(::Array{ColorTypes.Gray{Float64},2}, ::Float64) at C:\Users\Denis.julia\v0.5\MatlabCompat\src\MatlabCompat\imagetools.jl:142
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
ERROR: LoadError: There was an error during testing
in record(::Base.Test.FallbackTestSet, ::Base.Test.Error) at .\test.jl:397
in do_test(::Base.Test.Threw, ::Expr) at .\test.jl:281
in include_from_node1(::String) at .\loading.jl:488
in process_options(::Base.JLOptions) at .\client.jl:262
in _start() at .\client.jl:318
while loading C:\Users\Denis.julia\v0.5\MatlabCompat\test\runtests.jl, in expression starting on line 41
============================[ ERROR: MatlabCompat ]=============================

failed process: Process('C:\Users\Denis\AppData\Local\Julia-0.5.0\bin\julia' -Cx86-64 '-JC:\Users\Denis\AppData\Local\Julia-0.5.0\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Denis\.julia\v0.5\MatlabCompat\test\runtests.jl', ProcessExited(1)) [1]

================================================================================
INFO: No packages to install, update or remove
ERROR: MatlabCompat 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:48
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

julia>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions