# Failed to use OpenSmiles

**URL:** <https://discourse.julialang.org/t/failed-to-use-opensmiles/109408>\
**Category:** Chemistry\
**Created:** [January 29, 2024, 5:06pm UTC](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408 "2024-01-29T17:06:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirill\_Vostrecov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kirill_vostrecov/32/206622_2.png) [@Kirill\_Vostrecov](https://discourse.julialang.org/u/Kirill_Vostrecov)\
**Post date:** [January 29, 2024, 5:06pm UTC](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408/1 "2024-01-29T17:06:18Z")

</div>

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
