Hi - Thank you for your quick response.
I checked 1-3: everything seems to be fine:
- I can build manually and see all files
-
workspace.file_pathโ
contains the files
So I provide additional information.
Folder Tree
ยช .gitignore
ยช AGENTS.md
ยช CLAUDE.md
ยช databricks.yml
ยช pyproject.toml
ยช README.md
ยช uv.lock
+---fixtures
ยช .gitkeep
ยช
+---resources
ยช pipelinewithpackage_etl.pipeline.yml
ยช
+---src
ยช ยช sample_notebook.ipynb
ยช ยช
ยช +---pipelinewithpackage
ยช ยช main.py
ยช ยช taxis.py
ยช ยช __init__.py
ยช ยช
ยช +---pipelinewithpackage_etl
ยช ยช README.md
ยช ยช
ยช +---explorations
ยช ยช sample_exploration.ipynb
ยช ยช
ยช +---transformations
ยช sample_trips_pipelinewithpackage.py
ยช sample_zones_pipelinewithpackage.py
ยช
+---tests
conftest.py
sample_taxis_test.py
My Pipeline code (where I get the error):
from pyspark import pipelines as dp
from pyspark.sql.functions import col
from pipelinewithpackage import taxis
# This file defines a sample transformation.
# Edit the sample below or add new transformations
# using "+ Add" in the file browser.
@dp.table
def sample_trips_pipelinewithpackage():
return spark.read.table("samples.nyctaxi.trips")
Pyproject.toml
[project]
name = "pipelinewithpackage"
version = "0.0.1"
authors = [{ name = "xxxx" }]
requires-python = ">=3.10,<3.13"
dependencies = [
# Any dependencies for jobs and pipelines in this project can be added here
# See also https://docs.databricks.com/dev-tools/bundles/library-dependencies
#
# LIMITATION: for pipelines, dependencies are cached during development;
# add dependencies to the 'environment' section of your pipeline.yml file instead
]
[dependency-groups]
dev = [
"pytest",
"ruff",
"databricks-dlt",
"databricks-connect>=15.4,<15.5",
"ipykernel",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pipelinewithpackage"]
[project.scripts]
main = "pipelinewithpackage.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
Just FYI:
This is, how it looks in my settings
