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

Unable to import andromeda_nlp module #44

Open
abhiojha8 opened this issue Feb 21, 2024 · 0 comments
Open

Unable to import andromeda_nlp module #44

abhiojha8 opened this issue Feb 21, 2024 · 0 comments

Comments

@abhiojha8
Copy link

I am getting the below error when trying to run the first code snippet in README. The error originates from the import statement - from deepsearch_glm.nlp_utils import init_nlp_model, print_on_shell - see below for more details.

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], [line 2](vscode-notebook-cell:?execution_count=1&line=2)
      [1](vscode-notebook-cell:?execution_count=1&line=1) from deepsearch_glm.utils.load_pretrained_models import load_pretrained_nlp_models
----> [2](vscode-notebook-cell:?execution_count=1&line=2) from deepsearch_glm.nlp_utils import init_nlp_model, print_on_shell

File [~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20)
     [16](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:16) from tabulate import tabulate
     [18](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:18) from deepsearch_glm.utils.ds_utils import get_scratch_dir
---> [20](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20) from deepsearch_glm.andromeda_nlp import nlp_model
     [21](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:21) #import andromeda_nlp
     [23](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:23) def create_nlp_dir(tdir=None):

ModuleNotFoundError: No module named 'deepsearch_glm.andromeda_nlp'
@abhiojha8 abhiojha8 changed the title Not able to import andromeda_nlp module Unable to import andromeda_nlp module Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant