mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
fix(BurrBrige): dynamic imports
This commit is contained in:
parent
83e71df2e2
commit
7789663338
@ -11,12 +11,13 @@ import inspect
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import burr
|
import burr
|
||||||
|
from burr import tracking
|
||||||
|
from burr.core import Application, ApplicationBuilder, State, Action, default, ApplicationContext
|
||||||
|
from burr.lifecycle import PostRunStepHook, PreRunStepHook
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError("burr package is not installed. Please install it with 'pip install scrapegraphai[burr]'")
|
raise ImportError("burr package is not installed. Please install it with 'pip install scrapegraphai[burr]'")
|
||||||
|
|
||||||
from burr import tracking
|
|
||||||
from burr.core import Application, ApplicationBuilder, State, Action, default, ApplicationContext
|
|
||||||
from burr.lifecycle import PostRunStepHook, PreRunStepHook
|
|
||||||
|
|
||||||
|
|
||||||
class PrintLnHook(PostRunStepHook, PreRunStepHook):
|
class PrintLnHook(PostRunStepHook, PreRunStepHook):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user