Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Compatibility issue when used alongside Graph, ArnoldiMethod v0.4 required #202

Open
jkhamphousone opened this issue Jul 13, 2024 · 1 comment · May be fixed by #203
Open

[BUG] Compatibility issue when used alongside Graph, ArnoldiMethod v0.4 required #202

jkhamphousone opened this issue Jul 13, 2024 · 1 comment · May be fixed by #203

Comments

@jkhamphousone
Copy link

jkhamphousone commented Jul 13, 2024

Repost in favor of GraphPlot.jl

Hi :) I am in the process of developing my first package, and after reading here and trying to resolve the compatibility issue myself, I concluded that I had to report the conflict. I hope this is the right place to do it.

(@v1.10) pkg> add RingStarProblems
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ArnoldiMethod [ec485272]:
 ArnoldiMethod [ec485272] log:
 ├─possible versions are: 0.0.1-0.4.0 or uninstalled
 ├─restricted by compatibility requirements with GraphPlot [a2cc645c] to versions: 0.0.1-0.2.0
 │ └─GraphPlot [a2cc645c] log:
 │   ├─possible versions are: 0.3.0-0.6.0 or uninstalled
 │   └─restricted to versions * by an explicit requirement, leaving only versions: 0.3.0-0.6.0
 └─restricted by compatibility requirements with Graphs [86223c79] to versions: 0.4.0 — no versions left
   └─Graphs [86223c79] log:
     ├─possible versions are: 0.10.0-1.11.2 or uninstalled
     └─restricted by compatibility requirements with RingStarProblems [bed4ad48] to versions: 1.10.0-1.11.2
       └─RingStarProblems [bed4ad48] log:
         ├─possible versions are: 0.1.0 or uninstalled
         └─restricted to versions * by an explicit requirement, leaving only versions: 0.1.0
julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

Thank you a lot :)

@jkhamphousone
Copy link
Author

jkhamphousone commented Jul 13, 2024

I have cloned the git, checkout -b update-compatibility-ArnoldiMethod, changed the Manifest.toml in favor of

(GraphPlot) pkg> status
Project GraphPlot v0.6.0
Status `~/Desktop/GraphPlot.jl/Project.toml`
  [ec485272] ArnoldiMethod v0.4.0
ArnoldiMethod v0.2.0 -> ArnoldiMethod v0.4.0

However, the tests fail and I do not know how to fix the issue (I just started to look at this repository :)):

Test Summary: | Pass  Error  Total   Time
Karate Net    |    1      3      4  16.8s
julia> include("test/runtests.jl")
[ Info: Importing test packages...
[ Info: Starting tests...
Karate Net: Error During Test at /home/julien/Desktop/GraphPlot.jl/test/runtests.jl:67
  Test threw exception
  Expression: (test_images(VisualTest(plot_and_save1, refimg1), popup = !istravis) |> save_comparison) |> success
  MethodError: no method matching +(::Float64, ::RGBA{Float64})
  Math on colors is deliberately undefined in ColorTypes, but see the ColorVectorSpace package.
  
  Closest candidates are:
    +(::Any, ::Any, ::Any, ::Any...)
     @ Base operators.jl:587
    +(::Real, ::Complex{Bool})
     @ Base complex.jl:319
    +(::VectorizationBase.CartesianVIndex, ::Any)
     @ VectorizationBase ~/.julia/packages/VectorizationBase/LqJbS/src/cartesianvindex.jl:80
    ...
  
  Stacktrace:
    [1] eval_reduce(::Distances.Cityblock, s1::Float64, s2::RGBA{Float64})
      @ Distances ~/.julia/packages/Distances/n9q0L/src/metrics.jl:324
    [2] macro expansion
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:255 [inlined]
    [3] macro expansion
      @ ./simdloop.jl:77 [inlined]
    [4] _evaluate
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:252 [inlined]
    [5] Cityblock
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:328 [inlined]
    [6] (::ImageDistances.SumAbsoluteDifference)(a::Matrix{RGBA{Float64}}, b::Matrix{RGBA{Float64}})
      @ ImageDistances ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:71
    [7] sad
      @ ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:75 [inlined]
    [8] blurdiff(A::Matrix{RGBA{FixedPointNumbers.N0f8}}, B::Matrix{RGBA{FixedPointNumbers.N0f8}}, sigma::Tuple{Int64, Int64})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/utils.jl:23
    [9] compare_images(testfn::String, reffn::String; sigma::Tuple{Int64, Int64}, tol::Float64)
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:15
   [10] compare_images
      @ ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:1 [inlined]
   [11] test_images(testfn::String, reffn::String; popup::Bool, auto::Bool, newfn::String, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:32
   [12] test_images(visualtest::VisualTest; popup::Bool, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:56
   [13] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:67 [inlined]
   [14] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [15] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:67 [inlined]
   [16] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [17] top-level scope
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:61
Karate Net: Error During Test at /home/julien/Desktop/GraphPlot.jl/test/runtests.jl:72
  Test threw exception
  Expression: (test_images(VisualTest(plot_and_save2, refimg2), popup = !istravis) |> save_comparison) |> success
  MethodError: no method matching +(::Float64, ::RGBA{Float64})
  Math on colors is deliberately undefined in ColorTypes, but see the ColorVectorSpace package.
  
  Closest candidates are:
    +(::Any, ::Any, ::Any, ::Any...)
     @ Base operators.jl:587
    +(::Real, ::Complex{Bool})
     @ Base complex.jl:319
    +(::VectorizationBase.CartesianVIndex, ::Any)
     @ VectorizationBase ~/.julia/packages/VectorizationBase/LqJbS/src/cartesianvindex.jl:80
    ...
  
  Stacktrace:
    [1] eval_reduce(::Distances.Cityblock, s1::Float64, s2::RGBA{Float64})
      @ Distances ~/.julia/packages/Distances/n9q0L/src/metrics.jl:324
    [2] macro expansion
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:255 [inlined]
    [3] macro expansion
      @ ./simdloop.jl:77 [inlined]
    [4] _evaluate
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:252 [inlined]
    [5] Cityblock
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:328 [inlined]
    [6] (::ImageDistances.SumAbsoluteDifference)(a::Matrix{RGBA{Float64}}, b::Matrix{RGBA{Float64}})
      @ ImageDistances ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:71
    [7] sad
      @ ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:75 [inlined]
    [8] blurdiff(A::Matrix{RGBA{FixedPointNumbers.N0f8}}, B::Matrix{RGBA{FixedPointNumbers.N0f8}}, sigma::Tuple{Int64, Int64})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/utils.jl:23
    [9] compare_images(testfn::String, reffn::String; sigma::Tuple{Int64, Int64}, tol::Float64)
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:15
   [10] compare_images
      @ ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:1 [inlined]
   [11] test_images(testfn::String, reffn::String; popup::Bool, auto::Bool, newfn::String, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:32
   [12] test_images(visualtest::VisualTest; popup::Bool, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:56
   [13] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:72 [inlined]
   [14] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [15] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:72 [inlined]
   [16] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [17] top-level scope
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:61
Karate Net: Error During Test at /home/julien/Desktop/GraphPlot.jl/test/runtests.jl:80
  Test threw exception
  Expression: (test_images(VisualTest(plot_and_save3, refimg3), popup = !istravis) |> save_comparison) |> success
  MethodError: no method matching +(::Float64, ::RGBA{Float64})
  Math on colors is deliberately undefined in ColorTypes, but see the ColorVectorSpace package.
  
  Closest candidates are:
    +(::Any, ::Any, ::Any, ::Any...)
     @ Base operators.jl:587
    +(::Real, ::Complex{Bool})
     @ Base complex.jl:319
    +(::VectorizationBase.CartesianVIndex, ::Any)
     @ VectorizationBase ~/.julia/packages/VectorizationBase/LqJbS/src/cartesianvindex.jl:80
    ...
  
  Stacktrace:
    [1] eval_reduce(::Distances.Cityblock, s1::Float64, s2::RGBA{Float64})
      @ Distances ~/.julia/packages/Distances/n9q0L/src/metrics.jl:324
    [2] macro expansion
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:255 [inlined]
    [3] macro expansion
      @ ./simdloop.jl:77 [inlined]
    [4] _evaluate
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:252 [inlined]
    [5] Cityblock
      @ ~/.julia/packages/Distances/n9q0L/src/metrics.jl:328 [inlined]
    [6] (::ImageDistances.SumAbsoluteDifference)(a::Matrix{RGBA{Float64}}, b::Matrix{RGBA{Float64}})
      @ ImageDistances ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:71
    [7] sad
      @ ~/.julia/packages/ImageDistances/Dhl5Z/src/metrics.jl:75 [inlined]
    [8] blurdiff(A::Matrix{RGBA{FixedPointNumbers.N0f8}}, B::Matrix{RGBA{FixedPointNumbers.N0f8}}, sigma::Tuple{Int64, Int64})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/utils.jl:23
    [9] compare_images(testfn::String, reffn::String; sigma::Tuple{Int64, Int64}, tol::Float64)
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:15
   [10] compare_images
      @ ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:1 [inlined]
   [11] test_images(testfn::String, reffn::String; popup::Bool, auto::Bool, newfn::String, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:32
   [12] test_images(visualtest::VisualTest; popup::Bool, kw::@Kwargs{})
      @ VisualRegressionTests ~/.julia/packages/VisualRegressionTests/5Ki9T/src/imgcomp.jl:56
   [13] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:80 [inlined]
   [14] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [15] macro expansion
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:80 [inlined]
   [16] macro expansion
      @ ~/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [17] top-level scope
      @ ~/Desktop/GraphPlot.jl/test/runtests.jl:61
[ Info: Reference image /home/julien/Desktop/GraphPlot.jl/test/data/karate_background_color.png matches.  Difference: 0.0
Test Summary: | Pass  Error  Total   Time
Karate Net    |    1      3      4  16.8s
ERROR: LoadError: Some tests did not pass: 1 passed, 0 failed, 3 errored, 0 broken.
in expression starting at /home/julien/Desktop/GraphPlot.jl/test/runtests.jl:59

@etiennedeg etiennedeg linked a pull request Jul 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant