Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when receive message #87

Open
ghost opened this issue Jul 9, 2016 · 5 comments
Open

Error when receive message #87

ghost opened this issue Jul 9, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 9, 2016

Hello,
First i was having AssertionErr then i fixed it from this link by the code:
You have to go to /usr/lib/python2.7/ and open the file asyncore.py In the file, find the line 199 and change def loop(timeout=30.0, use_poll=False, map=None, count=None): to def loop(timeout=30.0, use_poll=True, map=None , count=None):

After doing this i am having an Bad filedescriptor``

Err_Log
self.stack.loop(timeout=0.5, discrete=0.5) File "/usr/local/lib/python2.7/dist-packages/yowsup/stacks/yowstack.py", line 188, in loop asyncore.loop(*args, **kwargs) File "/usr/lib/python2.7/asyncore.py", line 216, in loop poll_fun(timeout, map) File "/usr/lib/python2.7/asyncore.py", line 145, in poll r, w, e = select.select(r, w, e, timeout) error: (9, 'Bad file descriptor') _server.py_ [INFO][2016-07-09 16:17:42,580] Restarting.. _server.py_ [INFO][2016-07-09 16:17:42,581] ################################################## _server.py_ [INFO][2016-07-09 16:17:42,581] Server started. Phone number: *********** _server.py_ [INFO][2016-07-09 16:17:42,581] ################################################## _server.py_ [ERROR][2016-07-09 16:17:42,581] Unexpected Exception: Traceback (most recent call last): File "src/server.py", line 38, in start self.stack.loop(timeout=0.5, discrete=0.5) File "/usr/local/lib/python2.7/dist-packages/yowsup/stacks/yowstack.py", line 188, in loop asyncore.loop(*args, **kwargs) File "/usr/lib/python2.7/asyncore.py", line 216, in loop poll_fun(timeout, map) File "/usr/lib/python2.7/asyncore.py", line 145, in poll r, w, e = select.select(r, w, e, timeout) error: (9, 'Bad file descriptor') _server.py_ [INFO][2016-07-09 16:17:42,582] Restarting.. _server.py_ [INFO][2016-07-09 16:17:42,582] ####################################

@ghost
Copy link

ghost commented Jul 10, 2016

The fix that you quoted is for Bad file descriptor

@ghost
Copy link
Author

ghost commented Jul 10, 2016

So, what should i do ?

@ghost
Copy link

ghost commented Jul 14, 2016

Are you sure that you modified /usr/lib/python2.7/asyncore.py?

@ghost
Copy link
Author

ghost commented Jul 16, 2016

yea i did

@ghost
Copy link
Author

ghost commented Dec 2, 2016

What to do ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants