Skip to content
This repository

IPython Crash Report (0.10.2) #632

Closed
agonzalezro opened this Issue · 2 comments

2 participants

Alexandre González Min RK
Alexandre González

Running ipdb.set_trace() I got the following crash. If you need more info, please, let me know.


IPython post-mortem report

IPython version: 0.10.2 

Platform info  : os.name -> posix, sys.platform -> linux2

***************************************************************************

Current user configuration structure:

{'Version': 0,
 '__allownew': False,
 'alias': [],
 'args': [],
 'autocall': 1,
 'autoedit_syntax': 0,
 'autoexec': [],
 'autoindent': 1,
 'automagic': 1,
 'banner': 1,
 'c': '',
 'cache_size': 1000,
 'classic': 0,
 'color_info': 1,
 'colors': 'Linux',
 'confirm_exit': 1,
 'debug': 0,
 'deep_reload': 0,
 'editor': 'vi',
 'embedded': False,
 'execfile': [],
 'execute': [''],
 'gthread': 0,
 'help': 0,
 'import_all': [],
 'import_mod': [],
 'import_some': [[]],
 'include': [],
 'interact': 0,
 'ipythondir': u'/home/alex/.ipython',
 'log': 0,
 'logfile': '',
 'logplay': '',
 'magic_docstrings': 0,
 'messages': 1,
 'multi_line_specials': 1,
 'nosep': 0,
 'object_info_string_level': 0,
 'opts': Struct({'__allownew': True}),
 'pdb': 0,
 'pprint': 1,
 'profile': '',
 'prompt_in1': 'In [\\#]: ',
 'prompt_in2': '   .\\D.: ',
 'prompt_out': 'Out[\\#]: ',
 'prompts_pad_left': 1,
 'pydb': 0,
 'pylab': 0,
 'pylab_import_all': 1,
 'q4thread': 0,
 'qthread': 0,
 'quick': 0,
 'quiet': 0,
 'rcfile': 'ipythonrc',
 'readline': 1,
 'readline_merge_completions': 1,
 'readline_omit__names': 0,
 'readline_parse_and_bind': ['tab: complete',
                             '"\\C-l": possible-completions',
                             'set show-all-if-ambiguous on',
                             '"\\C-o": tab-insert',
                             '"\\M-i": "    "',
                             '"\\M-o": "\\d\\d\\d\\d"',
                             '"\\M-I": "\\d\\d\\d\\d"',
                             '"\\C-r": reverse-search-history',
                             '"\\C-s": forward-search-history',
                             '"\\C-p": history-search-backward',
                             '"\\C-n": history-search-forward',
                             '"\\e[A": history-search-backward',
                             '"\\e[B": history-search-forward',
                             '"\\C-k": kill-line',
                             '"\\C-u": unix-line-discard'],
 'readline_remove_delims': '-/~',
 'screen_length': -2,
 'separate_in': '\n',
 'separate_out': '',
 'separate_out2': '',
 'system_header': 'IPython system call: ',
 'system_verbose': 0,
 'term_title': 1,
 'tk': 0,
 'upgrade': 0,
 'wildcards_case_sensitive': 1,
 'wthread': 0,
 'wxversion': '0',
 'xmode': 'Context'}

***************************************************************************

Crash traceback:

---------------------------------------------------------------------------
Exception                                    Python 2.7.1+: /usr/bin/python
                                                   Fri Jul 29 10:31:49 2011
A problem occured executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.

/home/alex/Desktop/test_double_print.py in <module>()
      8 callback = 'http://testserver/API/oauth/request_token/'
      9 request_token_url = '%s/API/oauth/request_token' % server
     10 access_token_url = '%s/API/oauth/access_token' % server
     11 authorize_url = '%s/API/oauth/authorize' % server
     12 """
     13 consumer_key = 'AUjT9dA'
     14 consumer_secret = 'CNFdhfkUev5cR89Zvc'
     15 request_token_url = 'https://api.twitter.com/oauth/request_token'
     16 access_token_url = 'https://api.twitter.com/oauth/access_token'
     17 authorize_url = 'https://api.twitter.com/oauth/authorize'
     18 """
     19 
     20 consumer = oauth.Consumer(consumer_key, consumer_secret)
     21 client = oauth.Client(consumer)
     22 
---> 23 resp, content = client.request(request_token_url, "GET")
        global resp = {'date': 'Fri, 29 Jul 2011 08:31:49 GMT', 'set-cookie': 'sessionid=dfb65084dca830abbeab4388e1208cc2; expires=Fri, 12-Aug-2011 08:31:49 GMT; Max-Age=1209600; Path=/', 'status': '400', 'content-type': 'text/html; charset=utf-8', 'server': 'WSGIServer/0.1 Python/2.7.1+'}
        global content = 'Could not verify OAuth request.'
        global client.request = <bound method Client.request of <oauth2.Client object at 0x2862b50>>
        global request_token_url = 'http://localhost:8000/API/oauth/request_token'
     24 if resp['status'] != '200':
     25     raise Exception("Invalid response %s." % resp['status'])
     26 
     27 request_token = dict(urlparse.parse_qsl(content))
     28 
     29 print "Go to the following link in your browser:"
     30 print "%s?oauth_token=%s" % (authorize_url, request_token['oauth_token'])
     31 print
     32 
     33 
     34 
     35 
     36 
     37 
     38 

Exception: Invalid response 400.

***************************************************************************

History of session input:

*** Last line of input (may not be in above history):```
Min RK
Owner

Is this reproducible with current (0.11 or git) IPython?

Alexandre González

I've just tried and I can't reproduce it. I suppose that is fixed! Thanks!

Alexandre González agonzalezro closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.