{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/5975","repository_url":"https://api.github.com/repos/pantsbuild/pants","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/5975/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/5975/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/5975/events","html_url":"https://github.com/pantsbuild/pants/issues/5975","id":333390124,"node_id":"MDU6SXNzdWUzMzMzOTAxMjQ=","number":5975,"title":"`ApacheThriftPyGen` should always emit a `setuptools` synthetic dep","user":{"login":"jsirois","id":157586,"node_id":"MDQ6VXNlcjE1NzU4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/157586?v=4","gravatar_id":"","url":"https://api.github.com/users/jsirois","html_url":"https://github.com/jsirois","followers_url":"https://api.github.com/users/jsirois/followers","following_url":"https://api.github.com/users/jsirois/following{/other_user}","gists_url":"https://api.github.com/users/jsirois/gists{/gist_id}","starred_url":"https://api.github.com/users/jsirois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsirois/subscriptions","organizations_url":"https://api.github.com/users/jsirois/orgs","repos_url":"https://api.github.com/users/jsirois/repos","events_url":"https://api.github.com/users/jsirois/events{/privacy}","received_events_url":"https://api.github.com/users/jsirois/received_events","type":"User","site_admin":false},"labels":[{"id":22426646,"node_id":"MDU6TGFiZWwyMjQyNjY0Ng==","url":"https://api.github.com/repos/pantsbuild/pants/labels/bug","name":"bug","color":"fc2929","default":true},{"id":378083067,"node_id":"MDU6TGFiZWwzNzgwODMwNjc=","url":"https://api.github.com/repos/pantsbuild/pants/labels/python","name":"python","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T18:45:55Z","updated_at":"2018-06-18T20:02:12Z","closed_at":null,"author_association":"MEMBER","body":"Since the code generation adjusts `__init__.py`'s in intermediate packages to declare a namespace, the synthetic targets that have these modified packages should also have a `setuptools` dep.\r\n\r\nDiscovered debugging #5972."},"comment":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/comments/398177356","html_url":"https://github.com/pantsbuild/pants/issues/5975#issuecomment-398177356","issue_url":"https://api.github.com/repos/pantsbuild/pants/issues/5975","id":398177356,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODE3NzM1Ng==","user":{"login":"cosmicexplorer","id":1305167,"node_id":"MDQ6VXNlcjEzMDUxNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/1305167?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T20:02:12Z","updated_at":"2018-06-18T20:02:12Z","author_association":"CONTRIBUTOR","body":"I just saw this while debugging #5815 which may be related -- I can't repro after a `clean-all`:\r\n```\r\n> ./pants run testprojects/src/python/python_distribution/ctypes:bin                                                                                                                                                                          \r\n\r\n12:44:01 00:00 [main]                                                                                                                                               \r\n               (To run a reporting server: ./pants server)                                                                                                                                                                                     \r\n12:44:01 00:00   [setup]                                                                                                                                                        \r\n12:44:02 00:01     [parse]                                                                                                                                                              \r\n               Executing tasks in goals: jvm-platform-validate -> native-compile                                                                                                                                                                -> bootstrap -> imports -> unpack-jars -> deferred-sources -> link -> gen -> re                                                                                                                                                               solve -> resources -> compile -> pyprep -> binary -> run                                                                                                                                                                                       \r\n12:44:02 00:01   [jvm-platform-validate]                                                                                                                                                                                                       \r\n12:44:02 00:01     [jvm-platform-validate]                                                                                                                                                                                                     \r\n12:44:02 00:01   [native-compile]                                                                                                                                                                                   \r\n12:44:02 00:01     [c-for-ctypes]                                                                                                                                                                                   \r\n12:44:02 00:01     [cpp-for-ctypes]                                                                                                                                                                                         \r\n12:44:02 00:01   [bootstrap]                                                                                                                                                                    \r\n12:44:02 00:01     [substitute-aliased-targets]                                                                                                                                                                                                \r\n12:44:02 00:01     [jar-dependency-management]                                                                                                                                                                                                 \r\n12:44:02 00:01     [bootstrap-jvm-tools]                                                                                                                                                                                                       \r\n12:44:02 00:01     [provide-tools-jar]                                                                                                                                                                                                  \r\n12:44:02 00:01   [imports]                                                                                                                                                              \r\n12:44:02 00:01     [ivy-imports]                                                                                                                                                                                \r\n12:44:02 00:01   [unpack-jars]                                                                                                                                                                          \r\n12:44:02 00:01     [unpack-jars]                                                                                                                                                                                \r\n12:44:02 00:01   [deferred-sources]                                                                                                                                                                                         \r\n12:44:02 00:01     [deferred-sources]                                                                                                                                                                                               \r\n12:44:02 00:01   [link]                                                                                                                                                     \r\n12:44:02 00:01     [shared-libraries]                                                                                                                                                                                               \r\n12:44:02 00:01   [gen]                                                                                                                                                  \r\n12:44:02 00:01     [antlr-java]                                                                                                                                                                             \r\n12:44:02 00:01     [antlr-py]                                                                                                                                                                       \r\n12:44:02 00:01     [jaxb]                                                                                                                                                           \r\n12:44:02 00:01     [protoc]                                                                                                                                                                 \r\n12:44:02 00:01     [ragel]                                                                                                                                                              \r\n12:44:02 00:01     [thrift-java]                                                                                                                                                                                \r\n12:44:02 00:01     [thrift-py]                                                                                                                                                                          \r\n12:44:02 00:01     [wire]                                                                                                                                                           \r\n12:44:02 00:01     [avro-java]                                                                                                                                                                          \r\n12:44:02 00:01     [go-thrift]                                                                                                                                                                          \r\n12:44:02 00:01     [go-protobuf]                                                                                                                                                                                \r\n12:44:02 00:01     [jax-ws]                                                                                                                                                                 \r\n12:44:02 00:01     [scrooge]                                                                                                                                                                    \r\n12:44:02 00:01     [thrifty]                                                                                                                                                                    \r\n12:44:02 00:01   [resolve]                                                                                                                                                              \r\n12:44:02 00:01     [ivy]                                                                                                                                                        \r\n12:44:02 00:01     [coursier]                                                                                                                                                                       \r\n12:44:02 00:01     [go]\r\n12:44:02 00:01     [scala-js-compile]                                                                                                                                                                                               \r\n12:44:02 00:01     [scala-js-link]                                                                                                                                                                                      \r\n12:44:02 00:01     [node]                                                                                                                                                           \r\n12:44:02 00:01   [resources]                                                                                                                                                                    \r\n12:44:02 00:01     [prepare]                                                                                                                                                                    \r\n12:44:02 00:01     [services]                                                                                                                                                                       \r\n12:44:02 00:01   [compile]                                                                                                                                                              \r\n12:44:02 00:01     [node]                                                                                                                                                           \r\n12:44:02 00:01     [compile-jvm-prep-command]                                                                                                                                                                                                  \r\n12:44:02 00:01       [jvm_prep_command]                                                                                                                                                                                                     \r\n12:44:02 00:01     [compile-prep-command]                                                                                                                                                                                                      \r\n12:44:02 00:01     [compile]                                                                                                                                                                    \r\n12:44:02 00:01     [zinc]                                                                                                                                                           \r\n12:44:02 00:01     [javac]                                                                                                                                                              \r\n12:44:02 00:01     [cpp]                                                                                                                                                        \r\n12:44:02 00:01     [errorprone]                                                                                                                                                                             \r\n12:44:02 00:01     [findbugs]                                                                                                                                                                       \r\n12:44:02 00:01     [go]                                                                                                                                                     \r\n12:44:03 00:02   [pyprep]                                                                                                                                                           \r\n12:44:03 00:02     [interpreter]                                                                                                                                                                                \r\n12:44:03 00:02     [build-local-dists]                                                                                                                                                                                                  \r\n12:44:03 00:02     [requirements]                                                                                                                                                                                   \r\n                   Invalidated 1 target.                                                                                                                                                                                                       \r\n               Waiting for background workers to finish.                                                                                                                                                                                       \r\n12:44:03 00:02   [complete]                                                                                                                                                                 \r\n               FAILURE                                                                                                                                                                                                                         \r\nException caught: (<type 'exceptions.RuntimeError'>)                                                                                                                                                                                           \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_loader.py\",                                                                                                                                                                line 73, in <module>                                                                                                                                            \r\n    main()                                                                                                              \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_loader.py\",                                                                                                                                                                line 69, in main\r\n    PantsLoader.run()                                                                                                                                               \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_loader.py\",                                                                                                                                                                line 65, in run                                                                                                                             \r\n    cls.load_and_execute(entrypoint)                                                                                                                                                                                            \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_loader.py\",                                                                                                                                                                line 58, in load_and_execute                                                                                                                                                                    \r\n    entrypoint_main()                                                                                                                                               \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_exe.py\", lin                                                                                                                                                               e 39, in main                                                                                                                       \r\n    PantsRunner(exiter, start_time=start_time).run()                                                                                                                                                                                           \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/pants_runner.py\",                                                                                                                                                                line 53, in run                                                                                                                             \r\n    return runner.run()                                                                                                                                                     \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/local_pants_runner                                                                                                                                                               .py\", line 46, in run                                                                                                                                               \r\n    self._run()                                                                                                                             \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/local_pants_runner                                                                                                                                                               .py\", line 94, in _run                                                                                                                                                  \r\n    goal_runner_result = goal_runner.run()                                                                                                                                                                                                     \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/goal_runner.py\", l                                                                                                                                                               ine 226, in run                                                                                                                             \r\n    result = self._execute_engine()                                                                                                                                                                                         \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/bin/goal_runner.py\", l                                                                                                                                                               ine 214, in _execute_engine                                                                                                                                                                 \r\n    result = engine.execute(self._context, self._goals)                                                                                                                                                                                        \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/engine/legacy_engine.p                                                                                                                                                               y\", line 26, in execute                                                                                                                                                     \r\n    self.attempt(context, goals)                                                                                                                                                                                \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/engine/round_engine.py                                                                                                                                                               \", line 233, in attempt                                                                                                                                                     \r\n    goal_executor.attempt(explain)                                                                                                                                                                                      \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/engine/round_engine.py                                                                                                                                                               \", line 49, in attempt                                                                                                                                                  \r\n    task.execute()                                                                                                                                      \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/backend/python/tasks/r                                                                                                                                                               esolve_requirements.py\", line 28, in execute                                                                                                                                                                                                   \r\n    pex = self.resolve_requirements(interpreter, self.context.targets(has_python                                                                                                                                                               _requirements))                                                                                                                             \r\n  File \"/home/cosmicexplorer/tools/pants/src/python/pants/backend/python/tasks/r                                                                                                                                                               esolve_requirements_task_base.py\", line 81, in resolve_requirements                                                                                                                                                                            \r\n    builder.freeze()                                                                                                                                            \r\n  File \"/home/cosmicexplorer/tools/pants/build-support/pants_dev_deps.venv/lib/p                                                                                                                                                               ython2.7/site-packages/pex/pex_builder.py\", line 456, in freeze                                                                                                                                                                                \r\n    self._prepare_bootstrap()                                                                                                                                                                       \r\n  File \"/home/cosmicexplorer/tools/pants/build-support/pants_dev_deps.venv/lib/p                                                                                                                                                               ython2.7/site-packages/pex/pex_builder.py\", line 415, in _prepare_bootstrap                                                                                                                                                                    \r\n    'Failed to find setuptools via %s while building pex!' % self._interpreter.b                                                                                                                                                               inary                                                                                               \r\n\r\nException message: Failed to find setuptools via /home/cosmicexplorer/tools/pant                                                                                                                                                               s/build-support/pants_dev_deps.venv/bin/python2.7 while building pex!\r\n```\r\n\r\nI can give more context but it's just call stacks through the goal runner/etc, nothing that seems interesting."}}
{"actor":{"display_login":"cosmicexplorer"}}