Hi!
I am trying to run this
import Pkg; Pkg.add("PlantGeomPrimitives")
import PlantGeomPrimitives as PG
e = PG.load_mesh("a.ply");
but I get the following error
Fatal error:
ERROR: MethodError: no method matching load(::Stream{DataFormat{:PLY_BINARY}, IOStream, String}; pointtype::DataType, normaltype::DataType)
This method does not support all of the given keyword arguments (and may not support any).
Closest candidates are:
load(::Stream{DataFormat{:PLY_BINARY}}; facetype, pointtype, normalstype) got unsupported keyword argument "normaltype"
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/io/ply.jl:130
load(::File{DataFormat{:OBJ}}; facetype, pointtype, normaltype, uvtype)
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/io/obj.jl:7
load(::File{format}; element_types...) where format
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:26
...
Stacktrace:
[1] kwerr(::@NamedTuple{pointtype::DataType, normaltype::DataType}, ::Function, ::Stream{DataFormat{…}, IOStream, String})
@ Base ./error.jl:175
[2] (::MeshIO.var"#51#52"{@kwargs{…}})(s::Stream{DataFormat{…}, IOStream, String})
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:29
[3] open(f::MeshIO.var"#51#52"{@kwargs{…}}, args::File{DataFormat{…}, String}; kwargs::@kwargs{})
@ Base ./io.jl:410
[4] open(f::Function, args::File{DataFormat{:PLY_BINARY}, String})
@ Base ./io.jl:407
[5] load(fn::File{DataFormat{:PLY_BINARY}, String}; element_types::@kwargs{pointtype::DataType, normaltype::DataType})
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:27
[6] invokelatest
@ ./Base_compiler.jl:250 [inlined]
[7] action(::Symbol, ::Vector{Union{…}}, ::FileIO.Formatted; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:219
[8] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:196 [inlined]
[9] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:185 [inlined]
[10] load(::String; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:113
[11] load
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:109 [inlined]
[12] load_mesh(filename::String, ::Type{Float64})
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:90
[13] load_mesh(filename::String)
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:88
[14] top-level scope
@ ~/Desktop/CSA/FSPuMpkin v3/Main.jl:9
Stacktrace:
[1] handle_error(e::MethodError, q::Base.PkgId, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/error_handling.jl:75
[2] handle_exceptions(exceptions::Vector{Tuple{Any, Union{Base.PkgId, Module}, Vector}}, action::String)
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/error_handling.jl:66
[3] action(::Symbol, ::Vector{Union{…}}, ::FileIO.Formatted; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:228
[4] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:196 [inlined]
[5] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:185 [inlined]
[6] load(::String; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:113
[7] load
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:109 [inlined]
[8] load_mesh(filename::String, ::Type{Float64})
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:90
[9] load_mesh(filename::String)
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:88
[10] top-level scope
@ ~/Desktop/CSA/FSPuMpkin v3/Main.jl:9
Some type information was truncated. Use show(err) to see complete types.
julia>
Hi!
I am trying to run this
but I get the following error
Fatal error:
ERROR: MethodError: no method matching load(::Stream{DataFormat{:PLY_BINARY}, IOStream, String}; pointtype::DataType, normaltype::DataType)
This method does not support all of the given keyword arguments (and may not support any).
Closest candidates are:
load(::Stream{DataFormat{:PLY_BINARY}}; facetype, pointtype, normalstype) got unsupported keyword argument "normaltype"
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/io/ply.jl:130
load(::File{DataFormat{:OBJ}}; facetype, pointtype, normaltype, uvtype)
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/io/obj.jl:7
load(::File{format}; element_types...) where format
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:26
...
Stacktrace:
[1] kwerr(::@NamedTuple{pointtype::DataType, normaltype::DataType}, ::Function, ::Stream{DataFormat{…}, IOStream, String})
@ Base ./error.jl:175
[2] (::MeshIO.var"#51#52"{@kwargs{…}})(s::Stream{DataFormat{…}, IOStream, String})
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:29
[3] open(f::MeshIO.var"#51#52"{@kwargs{…}}, args::File{DataFormat{…}, String}; kwargs::@kwargs{})
@ Base ./io.jl:410
[4] open(f::Function, args::File{DataFormat{:PLY_BINARY}, String})
@ Base ./io.jl:407
[5] load(fn::File{DataFormat{:PLY_BINARY}, String}; element_types::@kwargs{pointtype::DataType, normaltype::DataType})
@ MeshIO ~/.julia/packages/MeshIO/jBkmz/src/MeshIO.jl:27
[6] invokelatest
@ ./Base_compiler.jl:250 [inlined]
[7] action(::Symbol, ::Vector{Union{…}}, ::FileIO.Formatted; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:219
[8] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:196 [inlined]
[9] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:185 [inlined]
[10] load(::String; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:113
[11] load
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:109 [inlined]
[12] load_mesh(filename::String, ::Type{Float64})
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:90
[13] load_mesh(filename::String)
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:88
[14] top-level scope
@ ~/Desktop/CSA/FSPuMpkin v3/Main.jl:9
Stacktrace:
[1] handle_error(e::MethodError, q::Base.PkgId, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/error_handling.jl:75
[2] handle_exceptions(exceptions::Vector{Tuple{Any, Union{Base.PkgId, Module}, Vector}}, action::String)
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/error_handling.jl:66
[3] action(::Symbol, ::Vector{Union{…}}, ::FileIO.Formatted; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:228
[4] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:196 [inlined]
[5] action
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:185 [inlined]
[6] load(::String; options::@kwargs{pointtype::DataType, normaltype::DataType})
@ FileIO ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:113
[7] load
@ ~/.julia/packages/FileIO/ZlWq2/src/loadsave.jl:109 [inlined]
[8] load_mesh(filename::String, ::Type{Float64})
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:90
[9] load_mesh(filename::String)
@ PlantGeomPrimitives ~/.julia/packages/PlantGeomPrimitives/eLwOQ/src/Mesh/MeshIO.jl:88
[10] top-level scope
@ ~/Desktop/CSA/FSPuMpkin v3/Main.jl:9
Some type information was truncated. Use
show(err)to see complete types.julia>