This message was deleted.
# ask-anything
s
This message was deleted.
i
A few thoughts here, are you using jupyter locally? this error seems unrelated to the package itself. Did you try running one of the samples? It’ll be easier to understand where’s the issue that way, since if it’ll run fine it’s not with core ploomber but probably something else is causing it
a
I am using Ploomber on aws sagemaker instance
Earlier it was working with one of my files, it was basic file only
i
Finally, if you have a specific notebook that’s already running fine and you just want to convert it into a pipeline, you can use the soorgeon tool, it’s pretty intuitive - all you need to do is set some H2 headings on the notebooks.
a
Yes, I converted using sooreon tool and spilt the notebooks into the pipelines
🙌 1
i
Can you try running the ml-basic example? We had a few users that were running on Sagemaker without issues
Ok so soorgeon ran and now you have a modular pipeline? Was the notebook running fine before it?
a
Yes, it was working
i
Is a specific task running or also no?
Also, let me know how the sample execution is going
a
Nothing is running it throws the error which I shared
i
ploomber examples -n templates/ml-basic
(It’s a pre-built pipeline)
a
This I have not tried, I was building with my ipynb file
i
Ok so please try this first it’ll give you an insight if the error was the conversion to the pipeline or the environment itself.
e
so this looks like a kernel issue: your ipynb file contains kernel information (see here), but it looks like now that kernel no longer exists or it isn't available from where you're running things. I'd recommend either modifying the kernel spec metadata manually or creating kernel with the name that appears in the error message
conda_python3
a
Thanks Eduardo, how to modify the kernel specs
Hello Edardo and Ido, can you please help me here, I was able to create the orceshestor file using sorrgeon, however it Ploomber fails to build with the modified elements, ==================================================== DAG build failed ===================================================== --------------- NotebookRunner: import-the-libraries -> MetaProduct({'nb': File('output/...raries.ipynb')}) --------------- -------------------------------- /home/ec2-user/SageMaker/tasks/import-the-libraries.ipynb -------------------------------- --------------------------------------------------------------------------- Exception encountered at "In [1]": --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-da6c937aa8cd> in <module> 1 import tensorflow as tf ----> 2 from tensorflow.keras.layers import log, e ImportError: cannot import name 'log' from 'tensorflow.keras.layers' (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/keras/api/_v2/keras/layers/__init__.py) ploomber.exceptions.TaskBuildError: Error when executing task 'import-the-libraries'. Partially executed notebook available at /home/ec2-user/SageMaker/output/import-the-libraries.ipynb ploomber.exceptions.TaskBuildError: Error building task "import-the-libraries" ==================================================== Summary (1 task) ===================================================== NotebookRunner: import-the-libraries -> MetaProduct({'nb': File('output/...raries.ipynb')}) ==================================================== DAG build failed =====================================================
i
Did you check if the code runs without ploomber? It looks like a missing import in a specific task “import-the-libraries”
👍 1