witty-breakfast-55011
07/26/2025, 2:14 PMwitty-breakfast-55011
07/26/2025, 2:16 PMpython_requirements(
source="requirements/default.txt",
module_mapping={
"confluent_kafka": ["confluent-kafka"],
"confluent_kafka.schema_registry": ["confluent-kafka"],
"confluent_kafka.schema_registry.avro": ["confluent-kafka"],
"confluent_kafka.schema_registry.json_schema": ["confluent-kafka"],
"confluent_kafka.schema_registry.serde": ["confluent-kafka"],
"discord": ["discord.py"],
},
)
python_requirements(
name="pants-plugins",
resolve="pants-plugins",
source="requirements/pants.txt",
)
my source is defined like this (using a macro:
python_sources(
name="sources",
description=description,
sources=[
f"{name}/**/*.py",
f"!{name}/resources/**/*.py",
f"!{name}/schemas/**/*.py",
f"!{name}/tests/**/*.py",
],
dependencies=kwargs.get("dependencies", ()),
resolve=resolve,
)
pex_binary(
name="pex-binary",
description=f"PEX application for {name}",
entry_point=kwargs["binary_entry_point"],
dependencies=binary_dependencies,
args=kwargs.get("binary_args", []),
resolve=resolve,
)
witty-breakfast-55011
07/26/2025, 2:16 PM17:06:39.39 [WARN] Pants cannot infer owners for the following imports in the target libs/python/app_utils/app_utils/base_kafka_consumer_app.py:../sources:
* confluent_kafka.Message (line: 12)
If you do not expect an import to be inferable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/2.27/docs/using-pants/troubleshooting-common-issues#import-errors-and-missing-dependencies> for common problems.
17:06:39.49 [WARN] Pants cannot infer owners for the following imports in the target libs/python/kafka_utils/kafka_utils/kafka_schema_serialization.py:../sources:
* confluent_kafka.schema_registry.Schema (line: 3)
* confluent_kafka.schema_registry.SchemaRegistryClient (line: 3)
* confluent_kafka.schema_registry.SchemaRegistryError (line: 3)
* confluent_kafka.schema_registry.avro.AvroDeserializer (line: 4)
* confluent_kafka.schema_registry.avro.AvroSerializer (line: 4)
* confluent_kafka.schema_registry.json_schema.JSONDeserializer (line: 5)
* confluent_kafka.schema_registry.json_schema.JSONSerializer (line: 5)
* confluent_kafka.schema_registry.serde.BaseDeserializer (line: 6)
* confluent_kafka.schema_registry.serde.BaseSerializer (line: 6)
witty-breakfast-55011
07/26/2025, 2:17 PMwitty-breakfast-55011
07/26/2025, 2:17 PMwide-midnight-78598
07/26/2025, 2:19 PMwitty-breakfast-55011
07/26/2025, 2:25 PMhappy-kitchen-89482
07/26/2025, 4:11 PMhappy-kitchen-89482
07/26/2025, 4:11 PM"confluent-kafka": ["confluent_kafka"],
I think?happy-kitchen-89482
07/26/2025, 4:12 PMwitty-breakfast-55011
07/26/2025, 4:23 PMwide-midnight-78598
07/26/2025, 6:31 PM"opentelemetry-api": (
"opentelemetry._logs",
"opentelemetry.attributes",
"opentelemetry.baggage",
"opentelemetry.context",
"opentelemetry.environment_variables",
"opentelemetry.metrics",
"opentelemetry.propagate",
"opentelemetry.propagators",
"opentelemetry.trace",
"opentelemetry.util",
"opentelemetry.version",
),
fast-nail-55400
07/26/2025, 8:57 PMhappy-kitchen-89482
07/26/2025, 9:13 PMwitty-breakfast-55011
07/27/2025, 5:38 AM