emrgnt-cmplxty / automata

Automata: A self-coding agent
Apache License 2.0
615 stars 100 forks source link

Unable to install - bash: automata: command not found #427

Closed ztxtz closed 1 year ago

ztxtz commented 1 year ago

Following installation instructions in the README results in bash: automata: command not found when running automata configure

Using docker jumps into a python console:

@ztxtz ➜ /workspaces/automata (main) $ docker run --name automata_container -it --rm -e OPENAI_API_KEY=sk-xxxx -e GITHUB_API_KEY=xxxxx ghcr.io/emrgnt-cmplxty/automata:latest
Python 3.10.12 (main, Jun 13 2023, 15:57:17) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

How to replicate:

1) Open Github codespace on the main branch 2) Follow installations instructions from README

# Initialize git submodules
git submodule update --init

# Install poetry and the project
pip3 install poetry && poetry install

# Configure the environment and setup files
automata configure
NolanTrem commented 1 year ago

Hey @ztxtz, thanks for checking out the project!

I was able to replicate the issue. This is because poetry installs in an isolated environment, so Python doesn't know where to look for the automata installation. If you run poetry run automata configure you'll see the correct and expected behavior.

I'll update the docs to reflect this—thanks again and let me know if this works for you 😁

Screenshot 2023-08-04 at 9 35 02 AM Screenshot 2023-08-04 at 9 36 07 AM
NolanTrem commented 1 year ago

Closing this for now, but please feel free to reopen if this issue isn't resolved.