plain-engine-9121501/22/2023, 1:57 PM
This is actually just a warning but ultimately it leads to an error like:
The 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'].
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:
ModuleNotFoundError: No module named 'flask_sqlalchemy'
Please advise on how I can go about solving this problem. Thanks in advance.
[source] marker_filenames = ["pyproject.toml"]