Skip to content

Conversation

emmaportia
Copy link

@emmaportia emmaportia commented Sep 17, 2025

why

Running quickstart.py on the currently published version of pypi throws an error:
AttributeError: 'ExtractResult' object has no attribute 'companies'

what changed

I believe this is the right kwarg, but the code following this is still not quite working -- looks to me like the inner Company objects of the list are returned as a dict not as a pydantic object so I suspect there is a bug deeper in the code that is not fully recursively transforming the objects back. I updated the schemas.py file to fix this and it is now working but I'm lacking context on how you wanted it to work originally so this may not be appropriate.

test plan

I have tested the code manually with quickstart.py

@derekmeegan
Copy link
Contributor

hey @emmaportia ! Thanks for the contribution here. I am not sure the quickstart is actually broken, though. Can you confirm you are correctly installing the stagehand package (not stagehand-py)? I just double checked the quick start instructions (installing with uv and running the example), and it ran as expected. Let me know!

@emmaportia
Copy link
Author

Nope, I was totally using the wrong package. Might be worth some messaging on that package to indicate it's no longer the right one to use (unless there's some reason 2 have both)?

@emmaportia emmaportia closed this Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants