-
Notifications
You must be signed in to change notification settings - Fork 414
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
Marimo hangs forever when using Logur logger.remove(None) #3756
Comments
import marimo as mo
from loguru import logger
logger.remove() actually works find for me. can you try in a clean env or different python version? |
I tried creating a virtual environment using uv with just adding loguru and marimo to it. I then created a new marimo notebook with just the imports and then the logger.remove(). That didn't change anything. The logger.remove() line of code hanges forever, never completing. |
@jjAtNxtPt can you send us the output of |
|
Same issue here (reproduced with 0.11.1 and 0.11.5) using
Using 0.10.19 it works. |
My guess is this is a Windows bug. (unfortunately I don't have the ability to debug on windows). Can you run |
I did as you asked but didn't find any errors. I'm using 0.11.5 now and created a new notebook with just the imports and the logger.remove(). I let the "logger.remove()" run for a few minutes and no errors appeared before I elected to shutdown. Here's the output at the terminal:
|
The first version which shows the error is 0.11.1 for me (0.11.0 is not available on conda-forge). |
Describe the bug
I use Loguru for my message logging. Prior to last week (maybe?) I had not issues running
logger.remove()
when doing the setup for my logger when in edit mode. However, now when I run that line in edit mode the notebook hangs forever. I've attached a screenshot showing that it the cell was at 2 minutes and 46 seconds. It's now over 8 minutes. I can still use Loguru to log my messages and everything works find when I run the notebook as a script from the command line, but I just can't run this one line while in edit mode anymore. This line needs to be done so I can create a new format for the logger instead of using the defaults. If I create the new logger without this, then the logged message is printed twice.Environment
Code to reproduce
import marimo as mo
from loguru import logger
logger.remove()
The text was updated successfully, but these errors were encountered: