ilikecats567 / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

pyopencv doesn't play well with pylab #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I recently built and installed PyOpenCV 2.1.0.wr1.1.0 on a 64-bit Linux system 
running Python 2.6.5. When I attempt to import pyopencv within an ipython 
session started with ipython -pylab, I notice that ipython stops responding to 
the keyboard (including Ctrl-C). I'm running ipython 0.10 and matplotlib 0.99.3 
with the wxagg backend enabled.

Original issue reported on code.google.com by lev.gi...@gmail.com on 27 Aug 2010 at 7:04

GoogleCodeExporter commented 8 years ago
Thanks.

It's a shame but I haven't tried to use matplotlib on Ubuntu before. I mainly 
work on Windows. I'll take a look at the matter when I have time.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 28 Aug 2010 at 3:54

GoogleCodeExporter commented 8 years ago
Unfortunately not terribly helpful, but It works fine under mac os (python 
2.6.6, matplotib 1.0, ipython 0.10, pyopencv-svn)

Original comment by aber...@gmail.com on 29 Aug 2010 at 9:49

GoogleCodeExporter commented 8 years ago
I have a similar problem. The keyboard responds fine, but after importing 
pyopencv, I can no longer open figures using matplotlib. 

If I import pyopencv before using matplotlib, there's no notification, but 
matplotlib just doesn't open any windows.

If I use matplotlib first to plot some things and then import pyopencv the 
following warning shows: 

/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: 
PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)

After that, if I plot something via pylab (e.g. imshow) and then close the 
figure, ipython crashes with the following:

The program 'ipython' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.

Thanks,
Sander

Original comment by sander.k...@gmail.com on 2 Mar 2011 at 6:28