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

Dockerfile issues when trying to build the repo using .devcontainer #14631

Closed
1 of 14 tasks
SavvasMohito opened this issue Dec 12, 2023 · 3 comments · Fixed by #15251
Closed
1 of 14 tasks

Dockerfile issues when trying to build the repo using .devcontainer #14631

SavvasMohito opened this issue Dec 12, 2023 · 3 comments · Fixed by #15251
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@SavvasMohito
Copy link
Contributor

System Info

Hello, after forking and cloning the repo on my machine, I tried to open it using docker and specifically in VS Code with the option to "Reopen in Container". While building, the final command of dev.Dockerfile resulted in the following error:

#0 1.241 Directory ../core does not exist

After investigating, I found out that the issue lies in pyproject.toml which is using relative paths like ../core and ../community in some occasions. Additionally, even after replacing ../ with libs/ (which I am not sure if it breaks something else), the actual core and community directories are never copied over in dev.Dockerfile. These should also be copied in the created docker container, similarly to line 41.

After making these two changes, the container was successfully built. I'll check out whether the change of paths in pyproject.toml is affecting any other files, and if not I will create a PR for this.

Who can help?

No response

Information

  • The official example notebooks/scripts
  • My own modified scripts

Related Components

  • LLMs/Chat Models
  • Embedding Models
  • Prompts / Prompt Templates / Prompt Selectors
  • Output Parsers
  • Document Loaders
  • Vector Stores / Retrievers
  • Memory
  • Agents / Agent Executors
  • Tools / Toolkits
  • Chains
  • Callbacks/Tracing
  • Async

Reproduction

Steps to reproduce:

  1. Fork and clone the repo on your machine
  2. Open it with VS Code (with Dev Containers extension installed)
  3. Run the VS Code command: "Dev Containers: Rebuild Container"

Expected behavior

Build the development docker container without errors

Copy link

dosubot bot commented Dec 12, 2023

🤖

It's great to hear that you were able to identify the issue and come up with a solution for the Dockerfile problem. Your initiative to fix the relative paths in pyproject.toml and ensure that the core and community directories are properly copied over in the dev.Dockerfile is commendable.

Creating a pull request with your proposed changes would be a valuable contribution to the LangChain project. It's important to ensure that the changes don't affect any other files, as you mentioned. Once you've confirmed that, feel free to proceed with creating the PR.

Thank you for your willingness to contribute to LangChain! If you have any further questions or need assistance with the PR creation process, feel free to ask.


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Dec 12, 2023
@aduston
Copy link

aduston commented Dec 20, 2023

@SavvasMohito I just ran into the same issue. Are you planning on making a pull request? Thanks!

@SavvasMohito
Copy link
Contributor Author

Hi @aduston, yes I'll have a look at it this week and try to come up with a PR. Thanks for reminding me 😄

gitchrisqueen added a commit to gitchrisqueen/langchain that referenced this issue Dec 28, 2023
Fix for issue langchain-ai#14631 - dev container doesnt build
hwchase17 pushed a commit that referenced this issue Dec 28, 2023
- **Description:** Fix for issue #14631
- **Issue:** This fixes [Issue
#14631](#14631)
- **Twitter handle:** [@consultchrisq
](https://twitter.com/consultchrisq?lang=en)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
2 participants