Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
183 views
in Technique[技术] by (71.8m points)

python 3.x - ImportError: cannot import name 'AlignDlib'

I have installed openface in my windows machine by following below steps.

Downloaded openface from this inline path : https://github.com/ cmusatyalab/openface

cd openface
python setup.py install

--------------------
C:ProgramDataAnaconda3>python.exe openface/setup.py install
running install
running build
running build_py
copying openface\__init__.py -> buildlibopenface
running install_lib
copying buildlibopenface\__init__.py -> C:ProgramDataAnaconda3Libsite-packagesopenface
byte-compiling C:ProgramDataAnaconda3Libsite-packagesopenface\__init__.py to __init__.cpython-36.pyc
running install_egg_info
Removing C:ProgramDataAnaconda3Libsite-packagesopenface-0.2.1-py3.6.egg-info
Writing C:ProgramDataAnaconda3Libsite-packagesopenface-0.2.1-py3.6.egg-info

After installation when I tried to access AlignDlib method, I'm getting error -

ImportError: cannot import name 'AlignDlib'

Appreciate your help, If somebody can help me on how to resolve this error.

Thanks Bhajesh

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have figured out the issue.

Even after running the python setup.py install, All the files are not copied into the python path directory.

I found some of the files are missing. Hence I manually copied all those files which are missing and AlignDlib was one of the them in that.

Thanks,


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...