Skip to content
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

Issue while running the colab notebook on ploomber examples #741

Closed
idomic opened this issue May 5, 2022 · 3 comments
Closed

Issue while running the colab notebook on ploomber examples #741

idomic opened this issue May 5, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@idomic
Copy link
Contributor

idomic commented May 5, 2022

File "/usr/local/lib/python3.7/dist-packages/ploomber/__init__.py", line 2, in <module>
    from ploomber.dag.dag import DAG
  File "/usr/local/lib/python3.7/dist-packages/ploomber/dag/dag.py", line 93, in <module>
    from ploomber.dag.dagclients import DAGClients
  File "/usr/local/lib/python3.7/dist-packages/ploomber/dag/dagclients.py", line 4, in <module>
    from ploomber.tasks.abc import Task
  File "/usr/local/lib/python3.7/dist-packages/ploomber/tasks/__init__.py", line 6, in <module>
    from ploomber.tasks.notebook import NotebookRunner, ScriptRunner
  File "/usr/local/lib/python3.7/dist-packages/ploomber/tasks/notebook.py", line 15, in <module>
    from nbconvert.exporters.webpdf import WebPDFExporter
ModuleNotFoundError: No module named 'nbconvert.exporters.webpdf'
[Errno 2] No such file or directory: 'first-pipeline'
/content
total 4
drwxr-xr-x 1 root root 4096 May  3 13:42 sample_data

ploomber, version 0.18.1

@edublancas
Copy link
Contributor

I saw something like this the other day. can you check which version of nbconvert is running? I saw a similar error with version 6.1.0. I think the solution is to check what minimum version we support and pin it

@idomic idomic added the good first issue Good for newcomers label May 11, 2022
@idomic
Copy link
Contributor Author

idomic commented May 12, 2022

The version is nbconvert==5.6.1, on 6.5.0 it works but then it requires an update to jinja as well.

@edublancas
Copy link
Contributor

alright, I fixed it so ploomber works with nbconvert 5.6.1 (and older versions)

neelasha23 pushed a commit to neelasha23/ploomber that referenced this issue May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants