#Cant deploy agents. Cannot import 'AgentResponse' issue, please help

1 messages · Page 1 of 1 (latest)

strong spade
#

Found this in console logs happening again and again
ImportError: cannot import name 'AgentResponse' from 'line.events' (/usr/local/lib/python3.10/site-packages/line/events.py)
Runner failed with exit code: 1
Traceback (most recent call last):
File "/pkg/_runtime/container_io_manager.py", line 740, in handle_user_exception
yield

#

Once again i cant deploy either via CLI or repo push. Critical issue

cobalt hemlock
#

Hey @strong spade apologies about the disruption here! You'll need to pin cartesia-line==0.1.12 in your agent's pyproject.toml and re-deploy.

We recently released v0.2.0 of the SDK, which introduces breaking changes. If your project doesn't pin the SDK version then you may be unknowingly getting upgraded to the latest version.

strong spade
#

oh!

#

can this be added to the requirements.txt?

cobalt hemlock
#

yes, that works too!

strong spade
#

i dont see a pyproject.toml in my repo

cobalt hemlock
#

you can replace cartesia-line with cartesia-line==0.1.12 in your requirements.txt

strong spade
#

thanks so much