Comments (4)
Did you try these steps?
git submodule sync
git submodule update --init
from executorch.
Yes, I have done these steps, and tried on two computers.
from executorch.
I just did a clone of the main branch and installation on a clean conda environment and it is working just fine for me.
from executorch.
using conda,
conda create -yn executorch python=3.10.0
conda activate executorch
instead of
python3 -m venv .executorch
source .executorch/bin/activate
./install_requirements.sh can finish
there are some errors like below:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pandas 2.2.1 requires numpy<2,>=1.22.4; python_version < "3.11", but you have numpy 2.0.0b1 which is incompatible.
python3 -m examples.portable.scripts.export --model_name="add" works fine
Building runtime failed
/tmp/buck2 build //examples/portable/executor_runner:executor_runner --show-output
error as below:
(executorch) xiaokz@u84faae0ef1b250:~/execu/executorch$ /tmp/buck2 build //examples/portable/executor_runner:executor_runner --show-output
From load
at implicit location
Caused by:
0: From load
at third-party/prelude/prelude.bzl:8:6-29
1: From load
at third-party/prelude/native.bzl:15:6-45
2: From load
at third-party/prelude/apple/apple_macro_layer.bzl:8:6-32
3: Error evaluating module: prelude//apple/apple_bundle_config.bzl
4: error: Variable typing
not found
--> third-party/prelude/apple/apple_bundle_config.bzl:14:40
|
14 | def apple_bundle_config() -> dict[str, typing.Any]:
| ^^^^^^
|
Build ID: d78a0afb-1e63-48e5-9d36-f372fa112850
Jobs completed: 3. Time elapsed: 0.0s.
BUILD FAILED
Try Cmake, also has errors:
(executorch) xiaokz@u84faae0ef1b250:~/execu/executorch/cmake-out$ cmake -DBUCK2=/tmp/buck2 ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- executorch: Generating source lists
-- executorch: Generating source file list /home/ANT.AMAZON.COM/xiaokz/execu/executorch/cmake-out/executorch_srcs.cmake
Error while generating /home/ANT.AMAZON.COM/xiaokz/execu/executorch/cmake-out/executorch_srcs.cmake. Exit code: 1
Output:
Error:
Traceback (most recent call last):
File "/home/ANT.AMAZON.COM/xiaokz/execu/executorch/build/extract_sources.py", line 79, in run
cp: subprocess.CompletedProcess = subprocess.run(
File "/home/ANT.AMAZON.COM/xiaokz/anaconda3/envs/executorch/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/buck2', 'cquery', "inputs(deps('//runtime/executor:program'))"]' returned non-zero exit status 2.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ANT.AMAZON.COM/xiaokz/execu/executorch/build/extract_sources.py", line 235, in
main()
File "/home/ANT.AMAZON.COM/xiaokz/execu/executorch/build/extract_sources.py", line 220, in main
target_to_srcs[name] = sorted(target.get_sources(graph, runner))
File "/home/ANT.AMAZON.COM/xiaokz/execu/executorch/build/extract_sources.py", line 133, in get_sources
sources: set[str] = set(runner.run(["cquery", query]))
File "/home/ANT.AMAZON.COM/xiaokz/execu/executorch/build/extract_sources.py", line 84, in run
raise RuntimeError(ex.stderr.decode("utf-8")) from ex
RuntimeError: [2024-03-13T20:43:05.877-07:00] Build ID: 78e55616-e21d-4cf8-bb7c-fcb7ae5aa61d
[2024-03-13T20:43:05.877-07:00] File changed: root//cmake-out
[2024-03-13T20:43:05.877-07:00] File changed: root//cmake-out/CMakeFiles
[2024-03-13T20:43:05.877-07:00] File changed: root//cmake-out/CMakeFiles/CMakeOutput.log
[2024-03-13T20:43:05.877-07:00] 82 additional file change events
[2024-03-13T20:43:05.889-07:00] Command failed:
[2024-03-13T20:43:05.889-07:00] From load
at implicit location
[2024-03-13T20:43:05.889-07:00]
[2024-03-13T20:43:05.889-07:00] Caused by:
[2024-03-13T20:43:05.889-07:00] 0: From load
at third-party/prelude/prelude.bzl:8:6-29
[2024-03-13T20:43:05.889-07:00] 1: From load
at third-party/prelude/native.bzl:15:6-45
[2024-03-13T20:43:05.889-07:00] 2: From load
at third-party/prelude/apple/apple_macro_layer.bzl:8:6-32
[2024-03-13T20:43:05.889-07:00] 3: Error evaluating module: prelude//apple/apple_bundle_config.bzl
[2024-03-13T20:43:05.889-07:00] 4: error: Variable typing
not found
[2024-03-13T20:43:05.889-07:00] --> third-party/prelude/apple/apple_bundle_config.bzl:14:40
[2024-03-13T20:43:05.889-07:00] |
[2024-03-13T20:43:05.889-07:00] 14 | def apple_bundle_config() -> dict[str, typing.Any]:
[2024-03-13T20:43:05.889-07:00] | ^^^^^^
[2024-03-13T20:43:05.889-07:00] |
[2024-03-13T20:43:05.889-07:00]
CMake Error at build/Utils.cmake:116 (message):
executorch: source list generation failed
Call Stack (most recent call first):
CMakeLists.txt:181 (extract_sources)
from executorch.
Related Issues (20)
- Qualcomm AI Engine Direct - support 4bit quantization HOT 1
- buck2 build failure HOT 7
- Unable to run the iOS demo app HOT 4
- ImportError: cannot import name '_transform' from 'executorch.exir.program._program' HOT 3
- AttributeError: module 'mpmath' has no attribute 'rational' HOT 1
- How do you get executorch to run within Mbed OS? HOT 3
- mpmath package version HOT 1
- ExecuTorch: Failed to install inmemoryfs extension. HOT 6
- How to analyze executorch .pte file performance? HOT 6
- Operator torch._ops.quantized_decomposed.quantize_per_tensor.default is not Aten Canonical HOT 4
- Move Arm bare-metal platform builds to C++17, and include arm builds and aot flow in standard precommits HOT 1
- ’xnn_executor_runner' is missing in the documentation 'Building and Running ExecuTorch with XNNPACK Backend'
- Unknown target `generated_lib_all_ops` from package `root//kernels/portable`. HOT 5
- The core has been dumped after alternately reasoning three times about the two preloaded models
- nn.BatchNorm2d is not supported at exir.to_edge HOT 9
- How to perform inference and gathering accuracy metrics on executorch model
- For the Runtime build for QNN
- Fix flaky test TestQuantLoweringCustomBackendPass
- ModuleNotFoundError: No module named 'executorch.extension.pytree.pybindings' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from executorch.