https://pantsbuild.org/ logo
#development
Title
# development
c

careful-area-84205

02/26/2020, 6:55 PM
Hi @hundreds-father-404, I got
configparser.ConfigParser
error in internal CI, and not sure if it’s related to TOML config parser
Copy code
Exception caught: (pants.engine.scheduler.ExecutionError)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 393, in execute
    exit_code = self._wrap_coverage(self._wrap_profiling, self._execute)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 325, in _wrap_coverage
    return runner(*args)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 356, in _wrap_profiling
    return runner(*args)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 438, in _execute
    return self.execute_entry(self._pex_info.entry_point)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 535, in execute_entry
    return runner(entry_point)
  File "/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex/.bootstrap/pex/pex.py", line 550, in execute_pkg_resources
    return runner()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/pants_loader.py", line 94, in main
    PantsLoader.run()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/pants_loader.py", line 90, in run
    cls.load_and_execute(entrypoint)
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/pants_loader.py", line 83, in load_and_execute
    entrypoint_main()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/pants_exe.py", line 32, in main
    PantsRunner(start_time=start_time).run()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/pants_runner.py", line 115, in run
    return runner.run()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/local_pants_runner.py", line 293, in run
    self._run()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/local_pants_runner.py", line 388, in _run
    engine_result = self._maybe_run_v2()
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/bin/local_pants_runner.py", line 353, in _maybe_run_v2
    specs=self._specs,
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/init/engine_initializer.py", line 247, in run_goal_rules
    exit_code = self.scheduler_session.run_goal_rule(goal_product, params)
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/scheduler.py", line 501, in run_goal_rule
    self._trace_on_error([exc], request)
  File "/Users/pliu/workspace/source/.pex/installed_wheels/8a33374a791e698559bb27bf5c0d3fe995285da2/pantsbuild.pants-1.26.0.dev1+gitf3a0599f-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/scheduler.py", line 476, in _trace_on_error
    "{} encountered:\n{}".format(exception_noun, cumulative_trace), unique_exceptions,
Copy code
Exception message: 1 Exception encountered:
Computing Select((<pants.engine.console.Console object at 0x118994358>, AddressSpecs(dependencies=(SingleAddress(directory='clientapps/search/src/test/scala', name='scala'),), matcher=AddressSpecsMatcher(tags=(), exclude_patterns=())), InteractiveRunner(_scheduler=<pants.engine.scheduler.SchedulerSession object at 0x116e9e668>), OptionsBootstrapper(env_tuples=(), bootstrap_args=('-ldebug', '--print-exception-stacktrace'), args=('/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex', '-ldebug', '--print-exception-stacktrace', 'test', 'clientapps/search/src/test/scala:scala'), config=_ChainedConfig(chained_configs=(_SingleFileConfig(config_path='/Users/pliu/.pants.rc', content_digest='fb643822796df960106ab14e279e60d7f7c97a12', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c5ddd8>)), _SingleFileConfig(config_path='/Users/pliu/workspace/source/pants.ini', content_digest='3af819cd46ee329ba38618adec72b7216ab2f2b3', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c51208>))))), Workspace(_scheduler=<pants.engine.scheduler.SchedulerSession object at 0x116e9e668>)), Test)
  Computing Task(pants.rules.core.test:167:run_tests(), (<pants.engine.console.Console object at 0x118994358>, AddressSpecs(dependencies=(SingleAddress(directory='clientapps/search/src/test/scala', name='scala'),), matcher=AddressSpecsMatcher(tags=(), exclude_patterns=())), InteractiveRunner(_scheduler=<pants.engine.scheduler.SchedulerSession object at 0x116e9e668>), OptionsBootstrapper(env_tuples=(), bootstrap_args=('-ldebug', '--print-exception-stacktrace'), args=('/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex', '-ldebug', '--print-exception-stacktrace', 'test', 'clientapps/search/src/test/scala:scala'), config=_ChainedConfig(chained_configs=(_SingleFileConfig(config_path='/Users/pliu/.pants.rc', content_digest='fb643822796df960106ab14e279e60d7f7c97a12', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c5ddd8>)), _SingleFileConfig(config_path='/Users/pliu/workspace/source/pants.ini', content_digest='3af819cd46ee329ba38618adec72b7216ab2f2b3', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c51208>))))), Workspace(_scheduler=<pants.engine.scheduler.SchedulerSession object at 0x116e9e668>)), Test, false)
    Computing Task(pants.rules.core.test:241:coordinator_of_tests(), (AddressWithOrigin(address=Address(clientapps/search/src/test/scala, scala), origin=SingleAddress(directory='clientapps/search/src/test/scala', name='scala')), OptionsBootstrapper(env_tuples=(), bootstrap_args=('-ldebug', '--print-exception-stacktrace'), args=('/Users/pliu/.cache/pants/pex/bin/pants.pex/1.26.0.dev1-gitf3a0599f-md5c20b0066/pants-1.26.0.dev1-gitf3a0599f-md5c20b0066.pex', '-ldebug', '--print-exception-stacktrace', 'test', 'clientapps/search/src/test/scala:scala'), config=_ChainedConfig(chained_configs=(_SingleFileConfig(config_path='/Users/pliu/.pants.rc', content_digest='fb643822796df960106ab14e279e60d7f7c97a12', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c5ddd8>)), _SingleFileConfig(config_path='/Users/pliu/workspace/source/pants.ini', content_digest='3af819cd46ee329ba38618adec72b7216ab2f2b3', values=_IniValues(parser=<configparser.ConfigParser object at 0x112c51208>)))))), AddressAndTestResult, true)
      Throw()
        Traceback (no traceback):
          <pants native internals>
        Exception:
h

hundreds-father-404

02/26/2020, 6:57 PM
This is with Twitter? You’re not using any TOML, right? It looks ike Pants is correctly detecting that this is INI so I don’t think TOML is related:
values=_IniValues(parser=<configparser.ConfigParser object at 0x112c51208>))
c

careful-area-84205

02/26/2020, 6:58 PM
yes, that’s right. ok thanks