plain-engine-91215
01/22/2023, 1:57 PMThe target lib/modules/serviceA/controller.py imports `sqlalchemy.text`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['services/serviceA:poetry#SQLAlchemy', 'services/serviceB:poetry#SQLAlchemy', 'services/serviceC:poetry#SQLAlchemy'].
This is actually just a warning but ultimately it leads to an error like:
ModuleNotFoundError: No module named 'flask_sqlalchemy'
I think somehow I need to specify that all tests need to use only the main PyProject.toml file but I'm not sure how I do that. Currently I'm setting my source as:
[source]
marker_filenames = ["pyproject.toml"]
Please advise on how I can go about solving this problem. Thanks in advance.