Python "IOError: [Errno 24] Too many open files"
Hi all,
I'm trying to write a mediaplayer for my phone + computer in python... It is going well, but I ran into a problem when I moved the programme from my phone (where it worked) to my computer (where it didn't). The error I got was: Code:
File "./hearse.py", line 169, in getSongInfo Does anyone have any idea why this might be happening? Thanks a lot. EDIT: Hm, I thought of running the following line while the programme is still running: Code:
ls -l /proc/`ps aux | grep hearse | egrep -v grep | awk '{print $2}'`/fd | less |
why don't you show what your code looks like?
|
Goodness I feel like a fool... Sorry, I should have done that first :) it was late at night, and I didn't think of doing so. When I started stripping the code down for posting, I discovered the troublesome piece of code - I was asking it to listen to the gstreamer pipeline's bus, but wasn't removing the watcher or disconnecting the bus in my cleanup code for the music player class :)
Well, thanks for the prompting |
All times are GMT -5. The time now is 10:31 AM. |