Issue
I'm using scrapy shell inside virtualenv. IPython is installed inside virtualenv. When I start scrapy shell using
scrapy shell 'https://example.com'
and press tab for autocomplete suggestions, it shows a lot of debug information. How can I disable this?
In [1]: from scra2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser start
2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser calculated
2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff: line_lengths old: 1, new: 1
2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff replace old[1:1] new[1:1]
2018-03-23 10:05:45 [parso.python.diff] DEBUG: parse_part from 1 to 1 (to 0 in part parser)
2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser end
Solution
https://github.com/ipython/ipython/issues/10946 looks like it's reported bug here.
In case you need debug logging in ipython, try to
logging.getLogger('parso.cache').disabled=True
logging.getLogger('parso.cache.pickle').disabled=True
and keep wait for parso update
Answered By - Artem Baskakov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.