Code Monkey home page Code Monkey logo

Comments (5)

ghovax avatar ghovax commented on July 17, 2024 1

Same here, same issue. I fixed it with pip3 install langchain==0.0.350.

from gpt-engineer.

gummipunkt avatar gummipunkt commented on July 17, 2024 1

Same here, same issue. I fixed it with pip3 install langchain==0.0.350.

works for me too, had also to install tkinter
brew install python-tk (on macos)

from gpt-engineer.

ruedaminute avatar ruedaminute commented on July 17, 2024

seeing the same problem also!

from gpt-engineer.

nrsmac avatar nrsmac commented on July 17, 2024

I did @ghovax 's fix but then received another import error.

Traceback (most recent call last):
  File "/Users/nrsmac/repos/inspira/venv/bin/gpt-engineer", line 5, in <module>
    from gpt_engineer.applications.cli.main import app
  File "/Users/nrsmac/repos/inspira/venv/lib/python3.11/site-packages/gpt_engineer/applications/cli/main.py", line 40, in <module>
    from gpt_engineer.applications.cli.file_selector import ask_for_files
  File "/Users/nrsmac/repos/inspira/venv/lib/python3.11/site-packages/gpt_engineer/applications/cli/file_selector.py", line 44, in <module>
    import tkinter as tk
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk

from gpt-engineer.

ErikBjare avatar ErikBjare commented on July 17, 2024

This happens because our version constraint for langchain is too relaxed.

When installed with poetry (as in CI), it works fine because the langchain version is pinned. But since the version requirement is set as >=0.0.335 anyone installing with pip would get a newer version on install, which has breaking changes.

We will restrict the langchain requirement to a specific version to avoid this in the future. We fixed the incompatibility instead.

from gpt-engineer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.