m4myo / python-mplayer

Automatically exported from code.google.com/p/python-mplayer
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Queue Bug properties not populated in some cases #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using for example Celery with mplayer.py the Queue gets filled in 
_StdoutWrapper._process_output
but for some reasons i dont fully understand the same Queue stays empty on the 
other side at Player _run_command.

By changing the queue import in misc.py to
from multiprocess import Queue as queue
and changing the instantiation of self._answers to queue() fixed this problem 
for me.

Sorry i cant create a diff right now i just wanted to report it.
Thanks for the great work with mplayer.py :)

Original issue reported on code.google.com by nicholas...@gmail.com on 20 Dec 2011 at 1:03

GoogleCodeExporter commented 9 years ago
Hi there,

I'm not familiar with Celery. Can you give an example of how you're using it 
with mplayer.py?

The Queue.Queue class is meant for data interchange between threads while 
multiprocessing.Queue is meant for interchange between processes. I'm guessing 
that's the cause of the problem.

Original comment by daru...@gmail.com on 20 Dec 2011 at 1:57