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
Cannot load notebooks: ModuleNotFoundError: Error processing dotted path #878
Comments
As a temporary measure, you may disable the extension with:
Here's what's happening: When installing the extension, ploomber runs a function whenever you open any notebook; then, it checks if such notebook belongs to the Since ploomber needs to determine if the current notebooks belong or not to a pipeline, it needs to load your pipeline. It seems like during this loading process; something is breaking and it fails to load
First in the same folder that contains your |
Thanks, it worked for jupyter notebook but not for jupyterlab I disabled it for jupyterlab, and when I run The funny part is I don't even remember installing ploomber extension... |
Ok, thanks for the feedback. The ploomber extension activates when you run It's weird that disabling it didn't turn it off on jupyter, but many users have experienced issues with this in the past (not being able to activate it, the extension doesn't show up, etc). So who knows what's happening. this is a pretty bad bug so we'll get to it. I'll work on it this week. |
Wouldn't disabling automatic installation of the extension basically solve the problem? I would prefer to have the option to install the extension myself, and temporarily the biggest problem will go away I didn't even know that I had this extension until it failed 😄 |
good point. the problem is that if the extension doesn't enable automatically, then most people will never find it. so I think it's best to have it turned on but we should ensure it doesn't break Jupyter. |
I'm trying to debug this but I'm unable to reproduce it. Does |
Yes. Basically the pipeline is broken. |
Yeah, I agree. We'll fix this as soon as possible. It's pretty bad that ploomber is breaking jupyter just because the pipeline isn't loading. I'll try to reproduce and follow up with more questions if needed Notes for when we fix this, the problem is when accessing ploomber/src/ploomber/jupyter/manager.py Line 199 in 6986b5f
|
@lambdaofgod can you install from git and let me know if the error persists? pip uninstall ploomber -y
pip install git+https://github.com/ploomber/ploomber@master |
How should we handle the exception in the |
@94rain before you start working on this, ensure you get the latest version from master since I recently pushed changes to this file. I couldn't reproduce @lambdaofgod error, but the overall problem is that we should catch any exceptions raised by load_dag. ploomber/src/ploomber/jupyter/manager.py Line 268 in 48b5ac0
so on a second thought, the solution should be more general (as opposed to only covering the something like this should work: def _load_dag(self, ...):
# actual implpementation
def load_dag(self, ...):
try:
self._load_dag(...)
except Exception as e:
# log exception along with the message
# a problem happened when loading your pipeline I'm unsure if this would case any side-effects so let's get this change done and then see if any tests break |
what we want if the |
I just opened a PR #923 (with all tests passing) that hopefully will fix this. |
I can confirm this is fixed. Thanks! |
@lambdaofgod feel free posting our delivery speed in socials 2 weeks from bug to production 😁🙌 |
I have a notebook folder in ploomber project and ploomber tries to run something so I can't even load the notebook (which BTW is not referenced in pipeline.yaml in any way)
What happened? How is it possible that ploomber breaks jupyter?
Error message
The text was updated successfully, but these errors were encountered: