incalculable-hydrogen-44003
11/04/2022, 4:28 PMincalculable-hydrogen-44003
11/04/2022, 4:29 PMInvalid option 'inits' under [python-infer]
witty-crayon-22786
11/04/2022, 4:30 PMincalculable-hydrogen-44003
11/04/2022, 4:30 PMwitty-crayon-22786
11/04/2022, 4:31 PMwitty-crayon-22786
11/04/2022, 4:31 PMDeprecated, is scheduled to be removed in version: 2.14.0.dev1.
Use the more powerful option. For identical behavior, set to âalwaysâ. Otherwise, we recommend the default of[python-infer].init_files
(simply delete the optioncontent_only
to trigger the default).[python-infer].inits
incalculable-hydrogen-44003
11/04/2022, 4:32 PMincalculable-hydrogen-44003
11/04/2022, 4:35 PMpython can't Pants cannot infer owners for the following imports in the target
warning because of Django probincalculable-hydrogen-44003
11/04/2022, 4:36 PMhappy-kitchen-89482
11/04/2022, 4:39 PMincalculable-hydrogen-44003
11/04/2022, 4:40 PMincalculable-hydrogen-44003
11/04/2022, 4:44 PMwitty-crayon-22786
11/04/2022, 4:49 PMwitty-crayon-22786
11/04/2022, 4:49 PMUsually when an import cannot be inferred, it represents an issue like Pants not being properly configured, e.g. targets not set up. Often, missing dependencies will result in confusing runtime errors like, so this option can be helpful to error more eagerly.ModuleNotFoundError
To ignore any false positives, either addto the line of the import or put the import inside a# pants: no-infer-dep
block.try: except ImportError:
incalculable-hydrogen-44003
11/04/2022, 4:50 PMwitty-crayon-22786
11/04/2022, 4:52 PMincalculable-hydrogen-44003
11/04/2022, 5:00 PMcurved-television-6568
11/04/2022, 5:05 PMUnfortunately there are hundreds of them. Django does a lot of magic importingIs that imports for 3rd party deps? If so, you may be able to address them with a proper fix by providing module_mapping config to your
python_requirements
target.