From 37b6ba08ae9972240fc00a15efe43233fd093f3b Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Mon, 7 Oct 2024 10:22:17 +0200 Subject: [PATCH] fix: import error --- pyproject.toml | 2 +- requirements-dev.lock | 2 ++ requirements.lock | 2 ++ scrapegraphai/graphs/script_creator_graph.py | 3 ++- scrapegraphai/graphs/smart_scraper_multi_concat_graph.py | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1874b877..d4820abc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "undetected-playwright>=0.3.0", "google>=3.0.0", "langchain-ollama>=0.1.3", - + "simpleeval>=1.0.0", "semchunk==2.2.0", "transformers==4.44.2", "qdrant-client>=1.11.3", diff --git a/requirements-dev.lock b/requirements-dev.lock index 3423cef0..b33667db 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -445,6 +445,8 @@ setuptools==75.1.0 # via grpcio-tools sf-hamilton==1.73.1 # via burr +simpleeval==1.0.0 + # via scrapegraphai six==1.16.0 # via python-dateutil smmap==5.0.1 diff --git a/requirements.lock b/requirements.lock index 8949648a..8b2b7244 100644 --- a/requirements.lock +++ b/requirements.lock @@ -328,6 +328,8 @@ sentencepiece==0.2.0 # via mistral-common setuptools==75.1.0 # via grpcio-tools +simpleeval==1.0.0 + # via scrapegraphai six==1.16.0 # via python-dateutil sniffio==1.3.1 diff --git a/scrapegraphai/graphs/script_creator_graph.py b/scrapegraphai/graphs/script_creator_graph.py index f6a884a1..6f158403 100644 --- a/scrapegraphai/graphs/script_creator_graph.py +++ b/scrapegraphai/graphs/script_creator_graph.py @@ -8,7 +8,8 @@ from .abstract_graph import AbstractGraph from ..nodes import ( FetchNode, ParseNode, - GenerateScraperNode + GenerateScraperNode, + ConditionalNode ) class ScriptCreatorGraph(AbstractGraph): diff --git a/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py b/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py index cc1a7003..0bd84a55 100644 --- a/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py +++ b/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py @@ -15,7 +15,7 @@ from ..nodes import ( ) from ..utils.copy import safe_deepcopy -class SmartScraperMultiCondGraph(AbstractGraph): +class SmartScraperMultiConcatGraph(AbstractGraph): """ SmartScraperMultiConditionalGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt.