-
Notifications
You must be signed in to change notification settings - Fork 233
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
Fix running the CLI directly from local source #1619
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works! Thanks for the PR, @aakrem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks I don't have this issue. Could it be that you ran the first two command in the wrong order (poetry install
then poetry shell
instead of the other way around):
(base) mahmoudmabrouk@MacBook-Pro-5 agenta-cli % poetry shell
Spawning shell within /Users/mahmoudmabrouk/Library/Caches/pypoetry/virtualenvs/agenta-UfaD-TV3-py3.9
(base) mahmoudmabrouk@MacBook-Pro-5 agenta-cli % emulate bash -c '. /Users/mahmoudmabrouk/Library/Caches/pypoetry/virtualenvs/agenta-UfaD-TV3-py3.9/bin/a
ctivate'
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 agenta-cli % poetry install
Configuration file exists at /Users/mahmoudmabrouk/Library/Preferences/pypoetry, reusing this directory.
Consider moving TOML configuration files to /Users/mahmoudmabrouk/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: agenta (0.14.2)
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 agenta-cli % cd ..
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 agenta-core % cd examples
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 examples % cd baby_name_generator
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 baby_name_generator % agenta init
? Please enter the app name
Cancelled by user
(agenta-py3.9) (base) mahmoudmabrouk@MacBook-Pro-5 baby_name_generator % ```
The first time I ran CLI on development, I encountered the error and installing setuptools solved it for me. Since then, I haven't experienced the it again. Also, a bit related to this: when you serve an llm example using CLI on development, the variant container will not start due to a missing bson dependency. You'll get: |
maybe. works without it now. |
actually am still encountring this with new fresh virtual env
|
Why this PR:
Running the CLI directly from local source is generating the following error:
Solution:
Adding the setuptools library as dev dependencies is fixing this