<#18055 Pants reports tomllib as a unowned depende...
# github-notifications
q
#18055 Pants reports tomllib as a unowned dependency for a Python `3.11.*` IC. Issue created by jsirois Looks like:
Copy code
05:56:35.60 [WARN] Pants cannot infer owners for the following imports in the target science/config.py:

  * tomllib (line: 4)

If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.15/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
The issue is ~by design from #13491 which freezes in a global list from Python 3.10. Either that list has to be added to, or, it seems better, the list should be generated by a rule that runs a Python Process using the target Python > 3.10 interpreter in-question when the interpreter in question is of version > 3.10. pantsbuild/pants