emrgnt-cmplxty / automata

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

Command not found: automata #517

Open eriknomitch opened 11 months ago

eriknomitch commented 11 months ago

After following the README using poetry it seems like there isn't an automata executable.

Error

Installing dependencies from lock file

No dependencies to install or update

Installing the current project: automata (0.1.0)

~/.repositories/automata main*
TM:1 VM:0
❯ poetry run automata configure
Command not found: automata

~/.repositories/automata main*
TM:1 VM:0
❯ which poetry
/Users/erik/.asdf/shims/poetry

Additional Information

FYI I'm using asdf for my python install which supplies the shim for poetry but theoretically that shouldn't matter. As you can see below, the poetry virtualenv for automata is in my PATH

TM:1 VM:0
❯ poetry run python
Python 3.11.4 (main, Jul 19 2023, 06:42:23) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.getenv("PATH"))
/Users/erik/Library/Caches/pypoetry/virtualenvs/automata-rXuOnyMS-py3.11/bin:/Users/erik/.asdf/plugins/python/shims:/Users/erik/.asdf/installs/python/3.11.4/bin:/opt/homebrew/opt/postgresql@15/bin:/usr/local/heroku/bin:/Users/erik/.zplug/bin:/Users/erik/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/opt/homebrew/opt/postgresql@15/bin:/usr/local/heroku/bin:/usr/local/sbin:/Users/erik/.bin/bin:/Users/erik/.bin/.bin:/Users/erik/.bin/bin-Darwin:/Users/erik/.gexecute:/Users/erik/.android/bin:/Users/erik/.android/platform-tools:/Users/erik/.neo4j-bin:/Users/erik/.repositories/mkdir-scripts/bin:/Users/erik/.local/bin:/Users/erik/.repositories/g/bin:/Users/erik/.repositories/host-setup/bin:/Users/erik/.repositories/tunnel/bin:/Users/erik/.repositories/git-submodule-tools/bin:/Users/erik/.repositories/g/bin:/Users/erik/.repositories/host-setup/bin:/Users/erik/.repositories/tunnel/bin:/Users/erik/.repositories/git-submodule-tools/bin

Thanks,

Erik

ctaceygreen commented 11 months ago

Looks like this commit removed the [tool.poetry.scripts] from the pyproject.toml. From what I can tell, that would stop poetry run automata configure ever working.

That being said, it's not as simple as just re-adding that line to the pyproject.toml. I tried, and it's then failing for other reasons. Will leave this to someone who understands more of what this commit was trying to achieve, as it's modified a lot of files!

NolanTrem commented 10 months ago

Hey @eriknomitch and @ctaceygreen, I just stumbled across this discussion and thought I might chime in.

The Automata slim retooling took the Automata project and essentially stripped it down to a barebones version. This was done when benchmarking performance in this repo. It seemed like there was some underlying discrepancy when trying to replicate OpenAI benchmarks, so we wanted to ensure that there was nothing in the project was causing this and it was solely the model endpoints.

Last I checked, this branch should be functional, and you should be able to install and run everything as detailed in the Readme. It does seem from #518 that there is an issue with Chroma, so updating that dependency is likely needed.

Let me know if this works for you, and if not I'm happy to help!