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

LoadError: typename has no field primary #3

Open
mforets opened this issue Oct 31, 2017 · 3 comments
Open

LoadError: typename has no field primary #3

mforets opened this issue Oct 31, 2017 · 3 comments

Comments

@mforets
Copy link

mforets commented Oct 31, 2017

in a fresh julia session (Version 0.6.0 (2017-06-19 13:05 UTC)), i'm getting errors:

julia> using Compat, QuickHull

julia> Pkg.test("QuickHull")
INFO: Testing QuickHull
ERROR: LoadError: type TypeName has no field primary
Stacktrace:
 [1] promote_type_nested(::Type{T} where T<:Tuple) at /Users/forets/.julia/v0.6/FixedSizeArrays/src/core.jl:181
 [2] construct_similar(...) at /Users/forets/.julia/v0.6/FixedSizeArrays/src/core.jl:230
 [3] macro expansion at /Users/forets/.julia/v0.6/FixedSizeArrays/src/mapreduce.jl:81 [inlined]
 [4] map at /Users/forets/.julia/v0.6/FixedSizeArrays/src/mapreduce.jl:113 [inlined]
 [5] - at /Users/forets/.julia/v0.6/FixedSizeArrays/src/ops.jl:81 [inlined]
 [6] right_of at /Users/forets/.julia/v0.6/QuickHull/src/QuickHull.jl:76 [inlined]
 [7] partition(::Array{FixedSizeArrays.Vec{2,Float64},1}, ::FixedSizeArrays.Vec{2,Float64}, ::FixedSizeArrays.Vec{2,Float64}) at /Users/forets/.julia/v0.6/QuickHull/src/QuickHull.jl:50
 [8] qhull(::Array{FixedSizeArrays.Vec{2,Float64},1}) at /Users/forets/.julia/v0.6/QuickHull/src/QuickHull.jl:22
 [9] include_from_node1(::String) at ./loading.jl:569
 [10] include(::String) at ./sysimg.jl:14
 [11] process_options(::Base.JLOptions) at ./client.jl:305
 [12] _start() at ./client.jl:371
while loading /Users/forets/.julia/v0.6/QuickHull/test/runtests.jl, in expression starting on line 35
==============================================================[ ERROR: QuickHull ]==============================================================

failed process: Process(`/Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia -Ccore2 -J/Applications/Julia-0.6.app/Contents/Resources/julia/lib/julia/sys.dylib --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /Users/forets/.julia/v0.6/QuickHull/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================================================================================
ERROR: QuickHull had test errors

did you see this error before? seems to be related to the FixedSizeArrays dependency.

@jamm1985
Copy link

jamm1985 commented Jan 9, 2018

B2 = map(Vec, LAT, LON)
296325-element Array{FixedSizeArrays.Vec{2,Float64},1}:
 Vec(53.2375,141.821)
 Vec(53.2292,141.721)
 Vec(53.2292,141.729)
....

@time hull = qhull(B2)
ERROR: type TypeName has no field primary
Stacktrace:
 [1] promote_type_nested(::Type{T} where T<:Tuple) at /Users/jamm/.julia/v0.6/FixedSizeArrays/src/core.jl:181
 [2] construct_similar(...) at /Users/jamm/.julia/v0.6/FixedSizeArrays/src/core.jl:230
 [3] macro expansion at /Users/jamm/.julia/v0.6/FixedSizeArrays/src/mapreduce.jl:81 [inlined]
 [4] map at /Users/jamm/.julia/v0.6/FixedSizeArrays/src/mapreduce.jl:113 [inlined]
 [5] - at /Users/jamm/.julia/v0.6/FixedSizeArrays/src/ops.jl:81 [inlined]
 [6] right_of at /Users/jamm/.julia/v0.6/QuickHull/src/QuickHull.jl:76 [inlined]
 [7] partition(::Array{FixedSizeArrays.Vec{2,Float64},1}, ::FixedSizeArrays.Vec{2,Float64}, ::FixedSizeArrays.Vec{2,Float64}) at /Users/jamm/.julia/v0.6/QuickHull/src/QuickHull.jl:50
 [8] qhull(::Array{FixedSizeArrays.Vec{2,Float64},1}) at /Users/jamm/.julia/v0.6/QuickHull/src/QuickHull.jl:22
julia> versioninfo()
Julia Version 0.6.2
Commit d386e40c17 (2017-12-13 18:08 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Prescott)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

@mforets
Copy link
Author

mforets commented Jan 9, 2018

yes, i got the same error, but using the updated syntax and StaticArrays instead of FixedSizeArrays it shouldn't be hard to submit a PR fixing this. in the meantime, @jamm1985 you may find any of this stuff useful: convex hull 2d.

@jamm1985
Copy link

jamm1985 commented Jan 9, 2018

@mforets thank you for stuff link! You saved a lot of time for me.

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

No branches or pull requests

2 participants