Hello good people! I have next error when I run Pa...
# general
l
Hello good people! I have next error when I run Pants. Could someone help me to solve my issue? Thank you!
a
@hundreds-father-404 any ideas?
w
@average-vr-56795: this an issue with Twitter's python build, unfortunately. can refer you to an internal thread
a
I'm assuming that's not the case here, given Katya doesn't have a Twitter computer...
w
mm. ok.
(in particular, the openssl from homebrew aspect)
h
Sorry was afk. Yes, please try adding this to
.bashrc
and ensure you’ve ran `brew install openssl`:
Copy code
# OpenSSL hackery to get Pants working
export PATH="/usr/local/opt/openssl/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
l
@witty-crayon-22786 and @hundreds-father-404 thank you 😊
❤️ 2
h
Yay! I remember it throwing me off for an hour or so at Foursquare. In fact, I’ll make a PR to edit our contributing guide!
l
Now I remember having this issue at my Twitter laptop too. But is was long ago (for me)
h
l
I have another error 😔
Copy code
timestamp: 2019-03-18T17:50:15.805811
Exception caught: (pex.executor.NonZeroExit)
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_loader.py", line 123, in <module>
    main()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_loader.py", line 119, in main
    PantsLoader.run()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_loader.py", line 115, in run
    cls.load_and_execute(entrypoint)
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_loader.py", line 107, in load_and_execute
    entrypoint_main()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_exe.py", line 39, in main
    PantsRunner(exiter, start_time=start_time).run()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/pants_runner.py", line 62, in run
    return runner.run()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/local_pants_runner.py", line 166, in run
    self._run()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/local_pants_runner.py", line 234, in _run
    goal_runner_result = self._maybe_run_v1(run_tracker, reporting)
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/local_pants_runner.py", line 183, in _maybe_run_v1
    return goal_runner_factory.create().run()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/goal_runner.py", line 205, in run
    return self._run_goals()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/goal_runner.py", line 176, in _run_goals
    result = self._execute_engine()
  File "/Users/ekaterina/workspace/pants/src/python/pants/bin/goal_runner.py", line 164, in _execute_engine
    result = engine.execute(self._context, self._goals)
  File "/Users/ekaterina/workspace/pants/src/python/pants/engine/legacy_engine.py", line 26, in execute
    self.attempt(context, goals)
  File "/Users/ekaterina/workspace/pants/src/python/pants/engine/round_engine.py", line 234, in attempt
    goal_executor.attempt(explain)
  File "/Users/ekaterina/workspace/pants/src/python/pants/engine/round_engine.py", line 50, in attempt
    task.execute()
  File "/Users/ekaterina/workspace/pants/src/python/pants/backend/python/tasks/python_tool_prep_base.py", line 133, in execute
    interpreter = min(interpreter_cache.setup(filters=tool_subsystem.get_interpreter_constraints()))
  File "/Users/ekaterina/workspace/pants/src/python/pants/backend/python/interpreter_cache.py", line 181, in setup
    interpreters.extend(self._setup_cached(filters=filters))
  File "/Users/ekaterina/workspace/pants/src/python/pants/backend/python/interpreter_cache.py", line 142, in _setup_cached
    pi = self._interpreter_from_relpath(interpreter_dir, filters=filters)
  File "/Users/ekaterina/workspace/pants/src/python/pants/backend/python/interpreter_cache.py", line 127, in _interpreter_from_relpath
    interpreter = PythonInterpreter.from_binary(executable, include_site_extras=False)
  File "/Users/ekaterina/workspace/pants/build-support/pants_dev_deps.py37.venv/lib/python3.7/site-packages/pex/interpreter.py", line 390, in from_binary
    cls.CACHE[key] = cls._from_binary_external(binary, path_extras, include_site_extras)
  File "/Users/ekaterina/workspace/pants/build-support/pants_dev_deps.py37.venv/lib/python3.7/site-packages/pex/interpreter.py", line 338, in _from_binary_external
    stdin_payload=_generate_identity_source(include_site_extras))
  File "/Users/ekaterina/workspace/pants/build-support/pants_dev_deps.py37.venv/lib/python3.7/site-packages/pex/executor.py", line 106, in execute
    raise cls.NonZeroExit(cmd, process.returncode, stdout, stderr)

Exception message: received exit code -6 during execution of `['/Users/ekaterina/workspace/pants/build-support/pants_dev_deps.py36.venv/bin/python3.6']` while trying to execute `['/Users/ekaterina/workspace/pants/build-support/pants_dev_deps.py36.venv/bin/python3.6']`
I will be very grateful for help!
@average-vr-56795 @witty-crayon-22786 @hundreds-father-404
Thank you!
w
have you run a
clean-all
since fixing the openssl error?
👍 1
l
yes
h
Try removing your cache.
rm -rf ~/.cache/pants/python_cache/interpreters
Along with
rm -rf build-support/pants_dev_deps.venv build-support/pants_dev_deps.py{27,36,37}.venv
l
@witty-crayon-22786 and @hundreds-father-404 thank you! It is working now 😀
❤️ 1