Closed
Description
Hi Everyone,
My current folder structure is as follows:
WORKSPACE
analysis/
analysis/analysis.py
analysis/BUILD
analysis/analyzers/average.py
analysis/analyzers/BUILD
I am trying to import all the analyzers in my analysis.py
file, and the two BUILD rules look as follows:
py_binary(
name = "analysis",
srcs = ["analysis.py"],
deps = [
"//analysis/analyzers",
requirement("pandas"),
requirement("plotly"),
],
)
py_library(
name = "analyzers",
srcs = ["average.py"],
deps = [
requirement("pandas"),
],
)
It seems like I have tried every way of attempting to import analyzers
into my analysis.py
file, including;
import analyzers
import analysis.analyzers
from analysis import analyzers
from analysis.analyzers import analyzers
from analysis.analyzers import average
along with those combinations with my WORKSPACE name.
Am I missing something obvious? thanks!