<#18264 Reinstalling task(Run pants export) workin...
# github-notifications
q
#18264 Reinstalling task(Run pants export) working only '--print-stacktrace' option Issue created by studioego Describe the bug A clear and concise description of the bug. Reinstalling task(Run pants export) working only '--print-stacktrace' option This issue was found only Apple aarch64 platform. Let's Install Backend.AI
git clone <https://github.com/lablup/backend.ai>
cd <http://backend.ai|backend.ai>
./scripts/install-dev.sh
It was successfully installed. After installation processing, delete Backend.AI and reinstall Backend.AI
./scripts/delete-dev.sh
rm -r .tmp .pants.d .pants.env pants-local ~/.cache/pants
./scripts/install-dev.sh
• the error shows up
Copy code
[INFO] Installing Python...
✓ Python 3.9.16 as the Pants runtime is already installed.
✓ Python 3.10.9 as the <http://Backend.AI|Backend.AI> runtime is already installed.

[INFO] Checking Python features...
SSL support: ok
LZMA support: ok

[INFO] Bootstrapping the Pants build system...
Chosen Python 3.9.16 (from pyenv) as the local Pants interpreter
2.16.0.dev5

[INFO] Using the current working-copy directory as the installation path...

[INFO] Creating the unified virtualenv for IDEs...
14:42:06.06 [INFO] Completed: Build pex for resolve `python-kernel`
14:42:06.06 [INFO] Completed: Build pex for resolve `python-default`
14:42:06.06 [ERROR] 1 Exception encountered:

Engine traceback:
  in `export` goal

IntrinsicError: No such file or directory (os error 2)

image

However, add pants command with
--print-stacktrace
option, Reinstalling processing is done successfully. such as
Copy code
diff --git a/scripts/install-dev.sh b/scripts/install-dev.sh
index b8f3b489..a4282552 100755
--- a/scripts/install-dev.sh
+++ b/scripts/install-dev.sh
@@ -645,7 +645,7 @@ setup_environment() {
   show_info "Using the current working-copy directory as the installation path..."

   show_info "Creating the unified virtualenv for IDEs..."
-  $PANTS export \
+  $PANTS --print-stacktrace export \
     --resolve=python-default \
     --resolve=python-kernel \
     --resolve=pants-plugins \
I don't understand that Backend.AI installation will take place only after adding the additional debug argument '--print-stacktrace' to 'install-dev.sh', when reinstalling after remove Backend.AI After reinstalling failed, I've run
./pants export
.

https://user-images.githubusercontent.com/20002/218385067-2b5b8e58-2377-4fb0-9894-89e3a3632c61.png

Also, shows the Same error log. Pants version Which version of Pants are you using? 2.16.0.dev5 OS Are you encountering the bug on MacOS, Linux, or both? MacOS Ventura13.1(Apple M1) Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. Related Backend.AI Issue Link lablup/backend.ai#1046 pantsbuild/pants