Failed to use OpenSmiles

Hi all!
Tried to use OpenSmiles like

using OpenSMILES
OpenSMILES.ParseSMILES(“C1CC12CC2”)

just for test and got error

ERROR: LoadError: MethodError: no method matching add_vertex!(::SimpleWeightedGraphs.SimpleWeightedGraph{Int64, Float64})

Closest candidates are:
add_vertex!(!Matched::LightGraphs.SimpleGraphs.SimpleGraph{T}) where T
@ LightGraphs C:\Users\user.julia\packages\LightGraphs\IgJif\src\SimpleGraphs\simplegraph.jl:526
add_vertex!(!Matched::LightGraphs.SimpleGraphs.SimpleDiGraph{T}) where T
@ LightGraphs C:\Users\user.julia\packages\LightGraphs\IgJif\src\SimpleGraphs\simpledigraph.jl:449

Stacktrace:
[1] ParseSMILES(S::String, calculate_implicit_hydrogens::Bool)
@ OpenSMILES C:\Users\user.julia\packages\OpenSMILES\LgYRr\src\SMILESParser.jl:81
[2] ParseSMILES(S::String)
@ OpenSMILES C:\Users\user.julia\packages\OpenSMILES\LgYRr\src\SMILESParser.jl:7
[3] top-level scope
@ D:\jlang\test.jl:2
in expression starting at D:\jlang\test.jl:2

Im using 1.10 julia version

1 Like