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

[Bug] Error running Run_your_first_transform_colab.ipynb in colab. #975

Open
1 of 2 tasks
echinmay opened this issue Jan 27, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] Error running Run_your_first_transform_colab.ipynb in colab. #975

echinmay opened this issue Jan 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@echinmay
Copy link

Search before asking

  • I searched the issues and found no similar issues.

Component

Other

What happened + What you expected to happen

I am trying to run examples/notebooks/Run_your_first_transform_colab.ipynb in colab.

I see the following error -

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 0>()
----> 1 from dpk_pdf2parquet.transform_python import Pdf2Parquet
2 from dpk_pdf2parquet.transform import pdf2parquet_contents_types

4 frames
/usr/local/lib/python3.11/dist-packages/docling/models/ds_glm_model.py in
4 from typing import List, Union
5
----> 6 from deepsearch_glm.nlp_utils import init_nlp_model
7 from deepsearch_glm.utils.doc_utils import to_docling_document
8 from deepsearch_glm.utils.load_pretrained_models import load_pretrained_nlp_models

ModuleNotFoundError: No module named 'deepsearch_glm.nlp_utils'


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Reproduction script

Click on the link -

(https://github.com/IBM/data-prep-kit/blob/dev/examples/notebooks/Run_your_first_transform_colab.ipynb)

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 0>()
----> 1 from dpk_pdf2parquet.transform_python import Pdf2Parquet
2 from dpk_pdf2parquet.transform import pdf2parquet_contents_types

4 frames
/usr/local/lib/python3.11/dist-packages/docling/models/ds_glm_model.py in
4 from typing import List, Union
5
----> 6 from deepsearch_glm.nlp_utils import init_nlp_model
7 from deepsearch_glm.utils.doc_utils import to_docling_document
8 from deepsearch_glm.utils.load_pretrained_models import load_pretrained_nlp_models

ModuleNotFoundError: No module named 'deepsearch_glm.nlp_utils'


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Anything else

Issue occurs everytime.

OS

Other

Python

3.11.x

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@echinmay echinmay added the bug Something isn't working label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant