Dlib: AttributeError: 'module' object has no attribute 'image_window'

Created on 15 Sep 2015  路  5Comments  路  Source: davisking/dlib

Hi,
I tried to run face_detector in python_examples, but I get the following error:

Traceback (most recent call last):
  File "face_detector.py", line 44, in <module>
    win = dlib.image_window()
AttributeError: 'module' object has no attribute 'image_window'

I tried deleting the build folder and running again ./compile_dlib_python_module.bat but I still get the same error message.
Any help would be appreciated.

Most helpful comment

  1. They might not realize they need GUI support (since the install goes smoothly, and the functions needing GUI aren't realized until much later when running the python script)

  2. Same thing with the CUDA message - it's not clear what is CUDA and why I should bother during install

  3. The message is near the top of the long output, move it to the bottom if you don't want fewer people to ignore it :) - Errors are usually at the end so people tend only to read the end of long outputs

All 5 comments

You must have compiled dlib without the X11 GUI option. When you compile it it should print a message saying that it's not going to have GUI support and it tells you what to do to. But if you do nothing then you get a copy of dlib without any kind of GUI features, which is what you have.

Thank you. Installing Quartz solved the problem.


* DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND
Make sure XQuartz is installed if you want GUI support.
You can download XQuartz from: http://xquartz.macosforge.org/landing/ *


Yep, that's the message the build scripts print. Somehow lots of people see that message and still don't understand what to do to enable GUI support. :(

  1. They might not realize they need GUI support (since the install goes smoothly, and the functions needing GUI aren't realized until much later when running the python script)

  2. Same thing with the CUDA message - it's not clear what is CUDA and why I should bother during install

  3. The message is near the top of the long output, move it to the bottom if you don't want fewer people to ignore it :) - Errors are usually at the end so people tend only to read the end of long outputs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhisheksoni27 picture abhisheksoni27  路  4Comments

unicorn7t picture unicorn7t  路  3Comments

AivanF picture AivanF  路  4Comments

AeroClassics picture AeroClassics  路  4Comments

rsadiq picture rsadiq  路  4Comments