Skip to content

Commit 41977a7

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Fix CI job (#73)
Summary: Pull Request resolved: #73 Apparently in macos CI, python3 and python are pointing to different python environment. python3 -> /Library/Python/3.9/site-packages/ python -> /Users/ec2-user/runner/_work/_temp/miniconda/lib/python3.9/site-packages This diff is fixing the CI failure: ``` [2023-08-17T02:59:12.739+00:00] Local command: env -- "ASAN_OPTIONS=detect_leaks=0,detect_odr_violation=0" "GEN_DIR=GEN_DIR_DEPRECATED" "OUT=././../out" "SRCDIR=./." "SRCS=././link_torch.sh" /usr/bin/env bash -e buck-out/v2/gen/root/213ed1b7ab869379/third-party/__libtorch_gen__/sh/genrule.sh [2023-08-17T02:59:12.739+00:00] Stdout: Error: /Library/Python/3.9/site-packages/torch/lib/libtorch.dylib doesn't exist ``` Also adding `tomli` as a ci requirements due to the following error: ``` Error: Traceback (most recent call last): File "/Users/ec2-user/runner/_work/executorch/executorch/pytorch/executorch/build/extract_sources.py", line 18, in <module> import tomllib # Standard in 3.11 and later ModuleNotFoundError: No module named 'tomllib' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/ec2-user/runner/_work/executorch/executorch/pytorch/executorch/build/extract_sources.py", line 20, in <module> import tomli as tomllib ModuleNotFoundError: No module named 'tomli' CMake Error at CMakeLists.txt:101 (message): executorch: source list generation failed ``` Differential Revision: D48423480 fbshipit-source-id: 3c27255a88e00377337163a8f043e71674f5b1f3
1 parent 3644b60 commit 41977a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci/docker/requirements-ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ numpy==1.25.2
33
PyYAML==6.0.1
44
ruamel.yaml==0.17.32
55
sympy==1.12
6-
tomli==2.0.1
6+
tomli=2.0.1
77
zstd==1.5.5.1

third-party/link_torch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while getopts ":o:f:" opt; do
3333
esac
3434
done
3535

36-
LIB=$(python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')
36+
LIB=$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')
3737

3838
# delimiter ,
3939
export IFS=","

0 commit comments

Comments
 (0)