Appending a libary trouble

Hello,

im having trouble installing a libary called dlib, currentally it is installed on my computer with Python 3.51 and boost 1.60.

Code:

import sys
import os

pyodbcPath = ‘/usr/local/lib/python3.5/site-packages’

sys.path.append(pyodbcPath)
pyodbcPath = ‘/usr/local/opt/opencv3/lib/python3.5/site-packages’
sys.path.append(pyodbcPath)
pyodbcPath = ‘/usr/local/lib/python3.5/site-packages/dlib-19.1.0-py3.5-macosx-10.11-x86_64.egg’
sys.path.append(pyodbcPath)

import dlib

predictor_path = “/Users/pascaljardin/Desktop/shape_predictor_68_face_landmarks.dat”

detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(predictor_path)

this is the error I get when I try to use a dlib function

Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
TypeError: init() should return None, not ‘NoneType’

what I’m I doing wrong?

do I need to compile blender from scratch to have full boost for this to work?