https://pantsbuild.org/ logo
#general
Title
# general
e

enough-analyst-54434

01/19/2021, 6:19 PM
... but plowing ahead to the error you just presented - it just means you have a python package under multiple source roots and the package has different
__init__.py
contents in different source roots. That is not good from a Python perspective - nothing to do with Pants. I can explain why its not good if that's not clear - just speak up. To be more concrete though, an example: Say you have these source roots:
Copy code
a/root1
a/root2
a/root3
Under the first two you have the same Python package `bob`:
Copy code
a/root1/bob/
  __init__.py
  jake.py
a/root2/bob/
  __init__py
  jane.py
I'm claiming
a/root1/bob/__init__.py
and
a/root2/bob/__init__.py
have different contents and Pants is complaining (rightly) about that.