You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
jsirois
changed the title
Pants reports tomllib as a unowned dependency.
Pants reports tomllib as a unowned dependency for a Python 3.11.* IC.
Jan 22, 2023
I don't remember which (if any) modules have been removed from stdlib, but it might be safer to union the stdlib from ALL versions of Python to ward against removed modules.
EDIT: Oh you mean run a Python process in a rule on the user's behalf. Not a process to generate this static list? Yeah that'd work too. I'd +1 that.
Looks like:
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.
The text was updated successfully, but these errors were encountered: