[issue21968] 'abort' object is not callable
Apple Grew added the comment: Oops. I totally missed this. Thanks for pointing this out. I would have never found this. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21968 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21968] 'abort' object is not callable
New submission from Apple Grew: I am sometimes getting the following error from imaplib. Traceback (most recent call last): File client.py, line 105, in get_new_mail_uids result, data = retryableCall(lambda : mail.uid('search', None, UNSEEN), retries, delay) # search and return uids instead File client.py, line 25, in retryableCall return f() File client.py, line 105, in result, data = retryableCall(lambda : mail.uid('search', None, UNSEEN), retries, delay) # search and return uids instead File /usr/lib/python2.6/imaplib.py, line 753, in uid typ, dat = self._simple_command(name, command, *args) File /usr/lib/python2.6/imaplib.py, line 1060, in _simple_command return self._command_complete(name, self._command(name, *args)) File /usr/lib/python2.6/imaplib.py, line 893, in _command_complete self._check_bye() File /usr/lib/python2.6/imaplib.py, line 808, in _check_bye raise self.abort(bye[-1]) TypeError: 'abort' object is not callable -- components: Library (Lib) messages: 222879 nosy: Apple Grew priority: normal severity: normal status: open title: 'abort' object is not callable type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21968 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21968] 'abort' object is not callable
Apple Grew added the comment: That is the problem. I don't assign anything to that. I in fact grepped my code for the word abort but could find none, except in the following code block. def retryableCall(f, retries, delay): while True: try: return f() except imaplib.IMAP4_SSL.abort, imaplib.IMAP4.abort: if retries 0: retries -= 1 try: mail.shutdown() except Exception, e: if verbose: print 'Error in shutting down mail.', e print e time.sleep(delay) open_connection(non_retryable=True) else: raise except imaplib.IMAP4_SSL.readonly, imaplib.IMAP4.readonly: if retries 0: retries -= 1 time.sleep(delay) else: raise -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21968 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21968] 'abort' object is not callable
Apple Grew added the comment: Yes, I actually doing - print '', self.abort, from _init_, and other methods I am invoking. However, that seems to print nothing! I don't know why. My codes which is using impalib is able to print stuffs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21968 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15739] Python crashes with Bus error: 10
New submission from Apple Grew: Python crashes when I try to access (by sending http request from borwser) my Django application. OS: Mac OSX Lion Python version: 2.7.1 (This was pre-bundled with OS and not a MacPort). There isn't a simple test case but I do have an open source app which where I am able to replicate this always on my system. 0. Make sure you have Django 1.4 installed. 1. Download the code at https://github.com/applegrew/django-select2/tree/v1.1-PythonCrasher 2. cd to django-select2/testapp folder. 3. Use python manage.py runserver to run the server. 4. Now try accessing http://127.0.0.1:8000/ . It should crash immediately. Lines which seem to cause the crash. Follow the following instructions and the application won't crash again. 1. Open django_select2/fields.py. 2. Comment line 128, uncomment line 129. 3. Uncomment line 156 and comment lines 158 and 159. 4. Now run the app again. This time it should work. -- components: Interpreter Core files: Process Python.txt messages: 168660 nosy: Apple Grew priority: normal severity: normal status: open title: Python crashes with Bus error: 10 type: crash versions: Python 2.7 Added file: http://bugs.python.org/file26929/Process Python.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15739] Python crashes with Bus error: 10
Apple Grew added the comment: Well I tried with Python2.6 (MacPort) now. It too crashes with Bus error. I guess this has something to do with OSX ports. Please investigate. Whatever it maybe, but the process must not crash like that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15739] Python crashes with Bus error: 10
Apple Grew added the comment: If you believe this is impossible then possibly there could be a memory overflow issue which triggers this error in OSX builds. In other builds it may not cause that problem or don't share the same faulty code. -- assignee: - ronaldoussoren components: +Macintosh -Interpreter Core nosy: +ronaldoussoren versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15739] Python crashes with Bus error: 10
Apple Grew added the comment: Thanks. I tested with 2.7.3 (macport) and it indeed works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com