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
"Exception occurred: pop from empty list" #47
Comments
Hi @shreyashankar, thanks so much for opening an issue. As you mentioned, these cryptic back-end error messages won't affect your ability to get work done etc, but they are definitely an annoyance. I'm unfortunately having trouble reproducing the issue. This project is still a little bit in wild west land, so it's possible it was hotfixed already and should start behaving after an upgrade. What version are you on? (Latest is 0.0.56). You can check by running the following: >>> import nbsafety
>>> nbsafety.version.__version__
'0.0.56' |
(Also, it might go away after running |
|
Woops! I should have suggested That's very interesting that the broken behavior is present on 0.0.56. Based on the example code to reproduce, I believe this is related to a stack unwinding mechanism used by nbsafety, in which case there could be some platform-dependent behavior depending on whether one is on Windows and which exact version of Python is being used. Toward this end, I've tried testing on Windows, Ubuntu, and MacOS for all of 3.6, 3.7, 3.8, and 3.9, and unfortunately no dice. I bet I could reproduce if I knew the Python minor revision though. Along those lines, could I trouble you for: Finally, I made an educated guess and published a new version, which can be installed via Either way thank you so much for trying out nbsafety and for taking the time to open the issue in the first place! As you can probably see it's pretty tricky to support this functionality in a performant manner across a lot of different environments, so the more folks who take the time to report bugs, the less we're operating with a blindfold during development :) |
I just upgraded to |
Awesome! Glad the fix did the trick. |
I don't know how to print the call stack in a Jupyterhub notebook, so unfortunately my explanation may not be super helpful. I'm noticing the error
Exception occurred: pop from empty list
when running a cell that seems to have acceptable logic, and this error doesn't show up when working with a non-nbsafety / regular Jupyter notebook.I am still able to do my work if I ignore the error, but I just thought I'd make the issue :)
The text was updated successfully, but these errors were encountered: