-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
AttributeError: 'FetchNode' object has no attribute 'update_state' #762
Comments
Please share me the code |
from scrapegraphai.graphs import SmartScraperGraph graph_config = { string = "any str" user_prompt ="get all products in this" Create a SmartScraperGraph objectsmart_scraper_graph = SmartScraperGraph( result = smart_scraper_graph.run() |
ok you should try with the new scripts. |
This is the relevant example code: https://github.com/ScrapeGraphAI/Scrapegraph-ai/blob/main/examples/local_models/smart_scraper_ollama.py |
Thanks for the answer. |
Ok please cann you make the pr? |
My pleasure. |
Hi, |
@MahdiSepiRashidi you have to do the pull request on the ScrapegraphAI org, I have not seen it |
scrapegraphai = "v1.30.0-beta.4"
gives me the following error
|
Describe the bug
in File "scrapegraphai\nodes\fetch_node.py" , clas FetchNode nor in BaseNode which is the parent of the class FerchNode there is no method defined as update_state(), although it has been used in both FetchNode.handle_local_source() and FetchNode.handle_web_source()
full error: File "scrapegraphai\nodes\fetch_node.py", line 233, in handle_local_source
return self.update_state(state, compressed_document)
^^^^^^^^^^^^^^^^^
AttributeError: 'FetchNode' object has no attribute 'update_state'
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: