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
Unexpected logging outputs after setting log level to debug. #10946
Comments
First of all, you should update to parso 0.1.1 in case you're receiving this messages in ROOT level (like I did). This is related to davidhalter/parso#9
|
I have same issue - with parso 0.1.1 and ipython 6.2.1 (django shell console) edit: |
I downgraded to ipython 5.2.1 to get around this. This may not be an option for you, but it worked for me as a stopgap until this is fixed in ipython. |
5.5.0 worked for me too |
I had the same issue with ptpython. vgavro's solution fixed it for me; I put that line in the beginning of ~/.local/lib/python2.7/site-packages/parso/python/diff.py |
Thanks ! This has been doing my head in. I still get some messages about pickle, even with the fix, but downgrading works well. |
I workaround this problem by add the following line in my ipython_config.py c.Application.log_level = logging.INFO But I think it is only a workaround, we do not need any more configuration for fixing this flaw. |
I have the same issue with ipython 6.2.1 that I just pip installed. |
This issue get resolved for me after upgrading to the latest version ( |
I guess this issue can be closed! |
Sounds good to me, I haven't seen it in a while, we can reopen if it reappears. |
I updated Ipython to |
I have this issue on Anaconda with IPython 7.2.0. and Scrapy Shell (Scrapy's version 1.5.1). |
The issue came back with ipython 7.2 |
Downgrading to ipython 6.5.0 fixed the problem Will wait until this is fix in the latest |
Get unexpected logging when press Tab.
vgavro's answer fixes this issue for me. |
Same problem with ipython 7.2.0 parso 0.3.4 |
Still have this issue with iptyhon 7.4.0 and scrapy shell
works, but i cant make it work during starting of the shell. Looks like scapy don't loads default_profile |
Reappears in IPython 7.8.0 |
Reproduced today :( |
It might be a good idea to just disable the parso logger in IPython altogether. I don't really think that it is needed in any case. When people are enabling logging, they usually want to see the logs about the stuff they import and not the stuff that IPython imports. |
That users change log level in REPL SHELL is a usual thing. How about making debug settings of shell other places to avoid effecting by log level settings. |
I always disable the parso log every time when I use the console for debugging, which is very inconvenient and unproductive. I think this should be fixed. |
This also happens for me in IPython version 7.9.0 and scrapy 1.8.0. |
As a workaround you can configure import logging
logging.getLogger('parso').setLevel(logging.WARNING) |
This should probably be part of IPython. Someone of you should just do a pull request there. |
Here's a workaround that works for me:
import logging
for lib in ("asyncio", "parso"):
logging.getLogger(lib).setLevel(logging.WARNING)
export PYTHONSTARTUP="$HOME/pythonstartup.py" (I included |
This also happens with IPython 8.0.1/Python 3.10. How far down must I downgrade? This is driving me crazy. |
@Ashlett's workaround isn't working for me btw, neither is setting anything in the ipython config. Neither is
when in IPython itself. I do NOT want to change loglevel for everything, I just want to shut up parso, asyncio, blib2to3, and the list just keeps growing. |
ipython==8.14.0
|
I suggest to put that line ( https://github.com/ipython/ipython/blob/main/IPython/core/logger.py It is imported by interactiveshell.py. Though I didn't test it. Does someone want to make a PR? |
I made a PR: #14119 |
This PR closes #10946. We set explicitely the log level of parso so that global changes to log level do not trigger parso logging.
I got unexcepted outputs to console after set log level to debug while using tab to autocomplete, and it breaks my typing.
Here's my screenshot:
Reproduce:
Version info
The text was updated successfully, but these errors were encountered: