top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Python ImportError: No module named Image

+1 vote
1,222 views

Recently, I have been studying OpenCV to detect and recognize faces using C++. In order to execute source code demonstration from the OpenCV website I need to run Python to crop image first. Unfortunately, the message error is ImportError: No module named Image when I run the Python script ( this script is provided by OpenCV website). I installed python-2.7.amd64 and downloaded PIL-1.1.7.win32-py2.7 to install Image library. However, the message error is Python version 2.7 required, which was not found in the registry. And then, I downloaded the script written by Joakim Löw for Secret Labs AB / PythonWare to register registry in my computer. But the message error is "Unable to register. You probably have the another Python installation".

Please help

posted Sep 12, 2013 by Bob Wise

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

One is a 32 bit installer, the other is a 64 bit installer. They don't look at the same place in the Registry. Try to have them both the same (both 32 for example).

Also, it'd be useful to put exactly what you've done to make it reproducible to some extent, and to post the names of the files you used (like the script you used. I can Google the guy's name, but he might have written dozens of things, so .. which one).

answer Sep 13, 2013 by Mandeep Sehgal
Similar Questions
+5 votes

Are there any open sourced live tracking (AR) libraries for Android?

The task I wish to accomplish is to find the floor area of the room in the image captured thru camera. I have tried to use OpenCV and I could not accomplish this without using Markers. Please suggest some other libraries or a working solution with OpenCV.

Thanks in Advance.

+1 vote

I am trying to understand how to use named pipes in python to launch external processes (in a Linux environment).

As an example I am trying to "imitate" the behaviour of the following sets of commands is bash:

> mkfifo named_pipe
> ls -lah > named_pipe &
> cat < named_pipe

In Python I have tried the following commands:

import os
import subprocess as sp

os.mkfifo("named_pipe",0777) #equivalent to mkfifo in bash..
fw = open("named_pipe",'w')
#at this point the system hangs...

My idea it was to use subprocess.Popen and redirect stdout to fw... next open named_pipe for reading and giving it as input to cat (still using Popen).

I know it is a simple (and rather stupid) example, but I can't manage to make it work..

How would you implement such simple scenario?

+1 vote

I read the online help about string. It lists string constants, string formatting, template strings and string functions. After reading these, I am still puzzled about how to use the string module.

Could you show me a few example about this module?

...