cuddly-window-48195
06/12/2020, 5:18 PMModuleNotFoundError with v2 when I try to ./pants run a particular Python target (the module not found is a package in our repo). It seems that the pex files are layed out differently between v1 and v2 (or else I’ve misconfigured things?), but the v1 puts the dependency package (“ns_python_logger”) in the root directory while v2 puts it under a path that mirrors our repo (“lib/python_logger/src/ns_python_logger”).witty-crayon-22786
06/12/2020, 5:21 PMwitty-crayon-22786
06/12/2020, 5:21 PMcuddly-window-48195
06/12/2020, 5:24 PMcuddly-window-48195
06/12/2020, 5:24 PMwitty-crayon-22786
06/12/2020, 5:25 PMBUILD file at lib/python_logger/src/ ?cuddly-window-48195
06/12/2020, 5:25 PMwitty-crayon-22786
06/12/2020, 5:25 PMwitty-crayon-22786
06/12/2020, 5:26 PMsrc , then you might be able to install that as a patternwitty-crayon-22786
06/12/2020, 5:26 PMwitty-crayon-22786
06/12/2020, 5:27 PM[source]
root_patterns = [
'src',
]cuddly-window-48195
06/12/2020, 5:27 PMwitty-crayon-22786
06/12/2020, 5:28 PMcuddly-window-48195
06/12/2020, 5:28 PMwitty-crayon-22786
06/12/2020, 5:28 PMhappy-kitchen-89482
06/12/2020, 5:29 PMwitty-crayon-22786
06/12/2020, 5:30 PM1.29.0rc4happy-kitchen-89482
06/12/2020, 5:31 PM[source]
marker_filenames: ["SOURCE_ROOT"]cuddly-window-48195
06/12/2020, 5:31 PMroot_patterns = [ '/' ] .witty-crayon-22786
06/12/2020, 5:31 PMwitty-crayon-22786
06/12/2020, 5:31 PMwitty-crayon-22786
06/12/2020, 5:31 PMhappy-kitchen-89482
06/12/2020, 5:32 PMhappy-kitchen-89482
06/12/2020, 5:32 PMwitty-crayon-22786
06/12/2020, 5:32 PMpants.ini file?happy-kitchen-89482
06/12/2020, 5:32 PMwitty-crayon-22786
06/12/2020, 5:45 PMpants.ini files can be converted into pants.toml files, and if you bump version-at-a-time you’ll get lots of (hopefully helpful) deprecation warningswitty-crayon-22786
06/12/2020, 5:46 PMcuddly-window-48195
06/12/2020, 5:47 PMcuddly-window-48195
06/12/2020, 5:48 PMwitty-crayon-22786
06/12/2020, 5:48 PMcuddly-window-48195
06/12/2020, 5:48 PMcuddly-window-48195
06/12/2020, 5:48 PMcuddly-window-48195
06/12/2020, 5:49 PM/Users/cweber/.cache/pants/setup/bootstrap-Darwin-x86_64/1.29.0_py36/bin/python: can't open file '/Users/cweber/.cache/pants/setup/bootstrap-Darwin-x86_64/1.29.0_py36/bin/pants': [Errno 2] No such file or directorycuddly-window-48195
06/12/2020, 5:50 PMwitty-crayon-22786
06/12/2020, 6:05 PMwitty-crayon-22786
06/12/2020, 6:05 PMwitty-crayon-22786
06/12/2020, 6:06 PM[source]
root_patterns = [
'src',
]
will help in this casecuddly-window-48195
06/12/2020, 7:02 PM17:51:47:253 [ERROR] 1 Exception encountered:
InvalidFieldException: Unrecognized field `source=ns_cli_deploy/cli.py` in target apps/cli_deploy/src:lexio-deploy. Valid fields for the target type `python_binary`: ['_transitive', 'always_write_cache', 'compatibility', 'dependencies', 'description', 'emit_warnings', 'entry_point', 'ignore_errors', 'inherit_path', 'no_cache', 'platforms', 'provides', 'scope', 'shebang', 'sources', 'tags', 'zip_safe'].cuddly-window-48195
06/12/2020, 7:02 PMwitty-crayon-22786
06/12/2020, 7:03 PMwitty-crayon-22786
06/12/2020, 7:03 PMcuddly-window-48195
06/12/2020, 7:04 PMwitty-crayon-22786
06/12/2020, 7:05 PMhappy-kitchen-89482
06/12/2020, 11:28 PM