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

Error deploying GraphRAG Backend container #203

Open
richross opened this issue Nov 26, 2024 · 0 comments
Open

Error deploying GraphRAG Backend container #203

richross opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@richross
Copy link

Describe the bug
I am deploying the GraphRAG Accelerator solution in my Azure tenant.

I downloaded the repo from GitHub.
I reopened the repo in VS Code in a devcontainer.
I followed the Deployment Guide Quickstart to set the variables (required variables only).
I opened a bash terminal in VS Code and used the command
bash ./deploy.sh -p deploy.parameters.json
to launch the deployment.

All of the Azure components deployed successfully.

The deploy.sh script is failing at the deployDockerImageToACR step. I get the following relevant output:

  **- Installing nltk (3.9.1)**
  - Installing nodeenv (1.9.1)
  - Installing notebook (7.2.2)
  - Installing openai (1.52.1)
  - Installing opentelemetry-sdk (1.27.0)
  - Installing pluggy (1.5.0)
  - Installing pyaml-env (1.2.1)
  - Installing pycodestyle (2.12.1)
  - Installing pyflakes (3.2.0)
  - Installing starlette (0.41.0)
  - Installing swifter (1.4.0)
  - Installing tenacity (9.0.0)
  - Installing textual (0.78.0)
  - Installing tiktoken (0.7.0)
  - Installing uvloop (0.20.0)
  - Installing virtualenv (20.27.0)
  - Installing adlfs (2024.7.0)
  - Installing applicationinsights (0.11.10)
  - Installing azure-monitor-opentelemetry-exporter (1.0.0b31)
  - Installing fastapi (0.115.3)
  - Installing detect-secrets (1.5.0)
  - Installing azure-cosmos (4.7.0)
  - Installing flake8 (7.1.1)
  - Installing graphrag (0.3.3)
  - Installing jupyter (1.1.1)
  - Installing kubernetes (31.0.0)
  - Installing pre-commit (4.0.1)
  - Installing pytest (8.3.3)
  - Installing python-multipart (0.0.12)
  - Installing ruff (0.7.0)
  - Installing uvicorn (0.32.0)
  - Installing wikipedia (1.4.0)

Removing intermediate container 6dd752db32f1
 ---> 2d680fa9f844
Step 10/13 : RUN python -m nltk.downloader punkt averaged_perceptron_tagger maxent_ne_chunker words wordnet
 ---> Running in b7602d6143dd
/usr/local/bin/python: Error while finding module specification for 'nltk.downloader' (ModuleNotFoundError: No module named 'nltk')
The command '/bin/sh -c python -m nltk.downloader punkt averaged_perceptron_tagger maxent_ne_chunker words wordnet' returned a non-zero code: 1
2024/11/26 11:17:37 Container failed during run: build. No retries remaining.
failed to run step ID: build: exit status 1

Run ID: ch3 failed after 1m21s. Error: failed during run, err: exit status 1
Run failed

It is failing on the python command from the Dockerfile-backend line 21.
The error states there is no module nltk.
According to the output from the container build, It did install nltk version 3.9.1.

Please let me know if there is any additional information I can provide to troubleshoot this. I looked through the existing issues and did not see anything related to this error.

Thanks for your help!

@richross richross added the bug Something isn't working label Nov 26, 2024
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