chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
748 stars 127 forks source link

Cannot install vtracer #1162

Open kexuejin opened 1 month ago

kexuejin commented 1 month ago
chaquopy {
    defaultConfig {
        pip {
            install("vtracer") 
        }
    } 
}
> Task :app:generateDebugPythonRequirements
Chaquopy: Installing for arm64-v8a
Looking in indexes: https://pypi.org/simple, https://chaquo.com/pypi-13.1
Collecting fonttools
  Using cached fonttools-4.51.0-py3-none-any.whl (1.1 MB)
Collecting opentypesvg
  Using cached opentypesvg-1.1.5-py3-none-any.whl (14 kB)
Collecting lxml
  Using cached https://chaquo.com/pypi-13.1/lxml/lxml-4.6.3-0-cp38-cp38-android_21_arm64_v8a.whl (1.4 MB)
Collecting CairoSVG
  Using cached CairoSVG-2.7.1-py3-none-any.whl (43 kB)
Collecting vtracer
  Using cached vtracer-0.6.11.tar.gz (24 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command:  ../chaquopi_test-main/app/build/python/env/debug/bin/python  ../chaquopi_test-main/app/build/python/env/debug/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/zq/nhh_trg9551g97lhjg0gqtg40000gn/T/tmp_h19ts_s
         cwd: /private/var/folders/zq/nhh_trg9551g97lhjg0gqtg40000gn/T/pip-install-u4ni_d1o/vtracer
    Complete output (6 lines):

    Cargo, the Rust package manager, is not installed or is not on PATH.
    This package requires Rust and Cargo to compile extensions. Install it through
    the system's package manager or via https://rustup.rs/

    Checking for Rust toolchain....
    ----------------------------------------
ERROR: Failed to install vtracer from https://files.pythonhosted.org/packages/e8/ad/2c89d6f2858ec8a1ac093144ebe6cfefc9307920ce95ad4ff045bb72b228/vtracer-0.6.11.tar.gz#sha256=407e147362366e14e2666155bf328814bdc345899a6cce18a7729724ff25c01e.
mhsmith commented 3 weeks ago

Unfortunately it won't be possible to use this package until we have proper support for Rust (#1030).

If anyone else wants this package too, let us know by clicking the thumbs-up button above.