Distance of two landmarks

Hello every one
I am new and intersted in python and openCV.
I want to compute distance of two point in landmarks on face by using distance.euclidean() function that is provided in scipy.spatial. but it dosent work.
here is my code:
len=distance.euclidean(landmarks.part(36),landmarks.part(39))
print(len)
does anyone know how can i overcome this problem?

Thanks you so much

problem #1 :
you’re asking opencv how to use scipy with dlib

problem #2:
no code, no stacktrace